List Meta ad accounts

meta_ads_list_ad_accountsRead-only

The Meta ad accounts your connection can read, and whether each one is active.

Full tool description

List Meta ad accounts with search, status filtering, single/multi-account lookup by ID, and pagination. Cached by default; pass refresh=true for latest data. Entities may optionally include recent activities.

Ask your assistant

  • Which Meta ad accounts can you see?
  • Is the EU account still active?

Parameters

Optional parameters (9)
NameTypeRequiredDescription
refresh boolean Optional Force fresh data from Meta API instead of using cache. Defaults to false (cache-first). Only set to true when you need real-time data.
cursor string Optional Pagination cursor from previous responseminLength: 1
search string Optional Search ad accounts by name (case-insensitive partial match)minLength: 1
account_id string Optional Filter by exact account ID (without act_ prefix)minLength: 1
account_ids array Optional Get multiple accounts by ID. Mutually exclusive with account_id. When provided, ignores other filters/pagination.
status integer Optional Account status code (1=Active, 2=Disabled, etc.)
limit integer Optional Number of accounts per page (default: 20, max: 100)min: 1, max: 100
include_activities boolean Optional Include recent activity log (last 7 days of changes) for each entity
connection_id string Optional Optional ID of a specific connection to use for this call. Omit to use the actor's default connection for this network. Call <platform>_list_connections to discover available connection IDs.

Call it directly

For developers wiring Hopkin into their own client or scripts. Your assistant makes this call for you.

Open-world
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "meta_ads_list_ad_accounts",
    "arguments": {}
  }
}

Examples

List all

{}

hopkin meta ad-accounts list

Search by name

{
  "search": "marketing"
}

hopkin meta ad-accounts list --search marketing

Filter by status

{
  "status": 1
}

hopkin meta ad-accounts list --status 1

Get by ID

{
  "account_id": "123456789"
}

hopkin meta ad-accounts list --account 123456789

Get multiple by IDs

{
  "account_ids": [
    "123456789",
    "987654321"
  ]
}

hopkin meta ad-accounts list --account-ids 123456789,987654321

Force refresh

{
  "refresh": true
}

hopkin meta ad-accounts list --refresh true