fb_list_campaigns
Pack: facebook_ads · Endpoint: https://gateway.pipeworx.io/facebook_ads/mcp
List campaigns in a Facebook ad account (e.g., account_id: ‘123456789’). Returns campaign names, IDs, status, and objectives.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
act_account_id | string | yes | Ad account ID with act_ prefix (e.g., “act_123456789”) |
fields | string | no | Comma-separated fields (default: “id,name,status,objective,daily_budget,lifetime_budget”) |
limit | number | no | Max results (default 25) |
Example call
Arguments
{
"act_account_id": "act_123456789"
}
curl
curl -X POST https://gateway.pipeworx.io/facebook_ads/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"fb_list_campaigns","arguments":{"act_account_id":"act_123456789"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('fb_list_campaigns', {
"act_account_id": "act_123456789"
});
More examples
{
"act_account_id": "act_987654321",
"limit": 50,
"fields": "id,name,status,objective,daily_budget,lifetime_budget,created_time"
}
Response shape
| Field | Type | Description |
|---|---|---|
data | array | List of campaigns |
paging | object | Pagination info |
error | string | Error code if connection failed |
message | string | Error message if connection failed |
Full JSON Schema
{
"type": "object",
"properties": {
"data": {
"type": "array",
"description": "List of campaigns",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Campaign ID"
},
"name": {
"type": "string",
"description": "Campaign name"
},
"status": {
"type": "string",
"description": "Campaign status"
},
"objective": {
"type": "string",
"description": "Campaign objective"
},
"daily_budget": {
"type": "number",
"description": "Daily budget in cents"
},
"lifetime_budget": {
"type": "number",
"description": "Lifetime budget in cents"
}
}
}
},
"paging": {
"type": "object",
"description": "Pagination info",
"properties": {
"cursors": {
"type": "object"
},
"next": {
"type": "string"
}
}
},
"error": {
"type": "string",
"description": "Error code if connection failed"
},
"message": {
"type": "string",
"description": "Error message if connection failed"
}
}
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"facebook_ads": {
"url": "https://gateway.pipeworx.io/facebook_ads/mcp"
}
}
}
See Getting Started for client-specific install steps.