List accounts for a connector
list_accountsList the accounts, destinations or connections for one connector.
For a marketing connector (facebook-ads, google-ads, …) this returns
the user's accounts. When the request names an account, ALWAYS pass
query: a confident name or id match comes back on its own, so you can
pass one account_id downstream instead of every account the user has.
When nothing matches confidently you get the full list back, ranked, plus
a hint — so searching costs you nothing. BigQuery, Google Sheets and sheets-source are walked one
level at a time via parent_account_id: BigQuery authorization → project → dataset → table, Google Sheets destination → spreadsheet → worksheet,
sheets-source spreadsheet → worksheet (a Google Sheets SOURCE account
is a worksheet, never a whole spreadsheet). For a third-party MCP it
returns the user's connections. For facebook-public-data (competitor
Pages) pass the page's username, numeric id or URL as query: a page
nobody has queried yet comes back as an available row whose
account_id query_data already accepts.
Every row says whether it is the end of that walk. is_leaf: false means
it is a step, NOT an account — feed its account_id back as
parent_account_id to go deeper. A row without is_leaf: false carries
an id the other tools accept; passing a step id to query_data,
execute_action or create_report is rejected. The exception is a
DESTINATION connector (google-sheets): its walk ends in a tab you write
TO. No row of it is an account for query_data or create_report; any
row of it is the account_id of that connector's own write actions, and
the leaf, split, goes into an export's destination params. Each page says
which case it is.
Each row's account_id is the opaque reference you pass verbatim to
query_data and execute_action (it binds the account's identity so it
can't be misused). The row ALSO carries readable fields for you and the
user to identify the account — name, native_account_id (the platform's
own id, e.g. act_…), company_id and source_user_id. Use these to
tell apart accounts that share a name (the same account can appear under
several companies) — but always pass the account_id downstream.
source_user_email is null on connected rows, so do not identify an
account by it. A row that is not connected carries status_for_user: the
plain wording to give the person. Never write status values or internal
terms (available, materialized, licence) to them. Pass verbose=false for compact rows: company_id and
source_user_id only where the same account repeats, and
connector/source only when they differ from the connector you asked for.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"connector": "<connector>"
},
"name": "list_accounts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | ||
| cursor | No | ||
| verbose | No | ||
| connector | Yes | ||
| page_size | No | ||
| parent_account_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||