MCPMCP Tools/Connections/list_ad_accounts

list_ad_accounts

Readconnections:read

List a connected account's ad accounts (Facebook/Instagram/LinkedIn/TikTok paid-social accounts pulled in via the connection), showing which one is currently selected for boosting posts. Use this before select_ad_account or create_boost_config.

Parameters
connectionIdstringrequired
The id of the connected account (required).
Example request
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "list_ad_accounts",
    "arguments": {
      "connectionId": "string"
    }
  }
}
Example response
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "..."
      }
    ]
  }
}

Response shape shown for illustration — the actual content depends on the tool and your data.