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

NameTypeRequiredDescription
act_account_idstringyesAd account ID with act_ prefix (e.g., “act_123456789”)
fieldsstringnoComma-separated fields (default: “id,name,status,objective,daily_budget,lifetime_budget”)
limitnumbernoMax 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

FieldTypeDescription
dataarrayList of campaigns
pagingobjectPagination info
errorstringError code if connection failed
messagestringError 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.

Regenerated from source · build May 9, 2026