x ads list ads accounts
x_ads_list_ads_accountsList all X Ads accounts the authenticated user can access, optionally filtering by comma-separated account IDs. Use it to discover or select accounts before running account-specific ad operations.
Instructions
List the ads accounts the authenticated user can access Native X fields and pagination are preserved; monetary fields ending in _micro are millionths of the account currency.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "x_ads_list_ads_accounts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account_ids | No | Optional comma-separated IDs, restricted to selected accounts. Returns all selected accounts when omitted. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | Original tool result: parsed JSON when the text is JSON, otherwise the text or multiple MCP content blocks. Provider fields depend on the selected query. |