Skip to main content
These tools help you explore your campaign structure and get performance metrics.
These tools are read-only. For one-call performance deep dives, see Journey Reports.

meta_campaigns_list

List campaigns in the active ad account.

Parameters

ParameterTypeRequiredDefaultDescription
statusstringNoALLFilter by status: ACTIVE, PAUSED, ARCHIVED, ALL
limitnumberNo25Maximum campaigns to return (1-100)
afterstringNo-Cursor for pagination

Example Prompts

Show me all my campaigns
List active campaigns only
What campaigns are currently paused?

Response

{
  "success": true,
  "account_name": "My Business Account",
  "total": 5,
  "campaigns": [
    {
      "id": "123456789",
      "name": "Summer Sale 2024",
      "status": "ACTIVE",
      "objective": "OUTCOME_SALES",
      "daily_budget": 100.00,
      "daily_budget_dollars": 100.00
    }
  ],
  "has_more": false,
  "next_cursor": null
}

meta_adsets_list

List ad sets in the active ad account.

Parameters

ParameterTypeRequiredDefaultDescription
campaign_idstringNo-Filter by specific campaign ID
statusstringNoALLFilter by status: ACTIVE, PAUSED, ARCHIVED, ALL
limitnumberNo25Maximum ad sets to return (1-100)
afterstringNo-Cursor for pagination

Example Prompts

List ad sets in my Summer Sale campaign
Show me all active ad sets
What ad sets are in campaign 123456789?

Response

{
  "success": true,
  "total": 3,
  "adsets": [
    {
      "id": "456789123",
      "name": "US 25-44 Interests",
      "status": "ACTIVE",
      "campaign_id": "123456789",
      "daily_budget": 50.00,
      "targeting_summary": "US, 25-44, Interests: Fashion, Shopping"
    }
  ],
  "has_more": false,
  "next_cursor": null
}

meta_ads_list

List ads in the active ad account.

Parameters

ParameterTypeRequiredDefaultDescription
adset_idstringNo-Filter by specific ad set ID
statusstringNoALLFilter by status: ACTIVE, PAUSED, ARCHIVED, ALL
limitnumberNo25Maximum ads to return (1-100)
afterstringNo-Cursor for pagination

Example Prompts

List all my ads
Show ads in ad set 456789123
What ads are currently running?

Response

{
  "success": true,
  "total": 10,
  "ads": [
    {
      "id": "789123456",
      "name": "Product Video - Summer",
      "status": "ACTIVE",
      "adset_id": "456789123",
      "creative_id": "111222333"
    }
  ],
  "has_more": false,
  "next_cursor": null
}

meta_ad_get

Get detailed info about a specific ad including creative content and metrics.

Parameters

ParameterTypeRequiredDefaultDescription
ad_idstringYes-The ID of the ad to retrieve
include_metricsbooleanNotrueWhether to include performance metrics

Example Prompts

Get details for ad 789123456
Show me the creative for ad 789123456
What does ad 789123456 look like?

Response

{
  "success": true,
  "ad": {
    "id": "789123456",
    "name": "Product Video - Summer",
    "status": "ACTIVE",
    "adset_id": "456789123"
  },
  "creative": {
    "headline": "Summer Sale - 50% Off",
    "body": "Shop our biggest sale of the year. Limited time only.",
    "call_to_action": "SHOP_NOW",
    "link_url": "https://example.com/summer-sale",
    "image_url": "https://...",
    "video_url": null
  },
  "metrics": {
    "impressions": 15420,
    "clicks": 312,
    "spend": 145.50,
    "ctr": 2.02,
    "cpc": 0.47
  }
}

meta_insights_get

Get performance metrics - the primary tool for spend, impressions, clicks, conversions, and ROAS.

Parameters

ParameterTypeRequiredDefaultDescription
levelstringYes-Level: account, campaign, adset, ad
entity_idstringConditional-Required for campaign/adset/ad levels
date_presetstringNo-Predefined range: today, yesterday, last_7d, last_30d, etc.
sincestringNo-Start date (YYYY-MM-DD)
untilstringNo-End date (YYYY-MM-DD)
field_presetstringNobasicMetric set: basic, conversions, video, engagement, ecommerce, quality, full
fieldsarrayNo-Specific fields (overrides preset)
time_incrementstringNo-Time breakdown: 1 (daily), 7 (weekly), 28, monthly, all_days
breakdownsarrayNo-Segment by: age, gender, country, etc.

Date Presets

PresetDescription
todayToday only
yesterdayYesterday only
this_weekCurrent week
last_weekPrevious week
this_monthCurrent month
last_monthPrevious month
last_7dLast 7 days
last_14dLast 14 days
last_30dLast 30 days
last_90dLast 90 days

Field Presets

PresetFields Included
basicspend, impressions, reach, clicks, ctr, cpc, cpm
conversionsBasic + conversions, cost_per_conversion, actions, action_values
videoBasic + video_views, video_p25, video_p50, video_p75, video_p100
engagementBasic + reactions, comments, shares, page_engagement
ecommerceBasic + purchases, purchase_roas, add_to_cart, checkouts
qualityBasic + quality_ranking, engagement_rate_ranking, conversion_rate_ranking
fullAll available fields

Example Prompts

What was my spend last week?
Show me daily impressions for the last 7 days
Get ROAS for my Summer Sale campaign this month
Break down my clicks by age group

Response

{
  "success": true,
  "level": "account",
  "entity_id": "act_123456789",
  "preset_used": "basic",
  "fields_requested": ["spend", "impressions", "clicks", "ctr", "cpc"],
  "record_count": 1,
  "insights": [
    {
      "date_start": "2024-01-08",
      "date_stop": "2024-01-14",
      "spend": 1250.50,
      "impressions": 125000,
      "clicks": 2875,
      "ctr": 2.30,
      "cpc": 0.43
    }
  ]
}

Common Query Patterns

What was my ad spend yesterday?
Uses meta_insights_get with date_preset: yesterday
How did my campaigns perform last week?
Uses meta_insights_get with date_preset: last_week
Compare performance of my top 5 campaigns this month
Uses meta_insights_get at campaign level
Break down my clicks by age and gender
Uses meta_insights_get with breakdowns: ["age", "gender"]

Understanding Metrics

Learn what each metric means and how to interpret them