Get Meta Ad Library Ads
get_meta_adsUse this to see what ads a brand is currently running on Meta — pass Meta Platform ID(s) or brand name(s) (a name resolves to its top-ranked page, so no get_meta_platform_id call is needed). USE THIS WHEN THE USER ASKS: "what ads is X running", "X's Facebook/Instagram ads", "X's best/top/winning ads" (set include_reach=true), "how often does X launch new creatives", "what's new from X this week". Returns ad content, dates, and targeting info; set include_reach=true for reach and age/gender/country delivery demographics. ALWAYS pass platform_ids as a list when researching multiple brands — e.g. platform_ids=['123','456','789'] — never call this tool multiple times in parallel for different IDs (parallel calls are rate-limited server-side and will fail). Pass an ad's ad_id + page_id to analyze_ad_image/analyze_ad_video. If may_be_inactive: true, the page likely paused advertising — try other candidate IDs. Note: headline may be null on video ads; use body + media_type instead. Set min_duration_days: 7 to return only ads active for 7+ days. Set active_only: true to return only currently running ads. For UGC/creator-style or polished brand video ads (creative references), set style='ugc' or 'brand' (video only; 1 extra credit when new creatives get classified). Set status='inactive' to see retired creatives; for past campaigns (e.g. an election period) pass start_date/end_date, which searches all statuses. Each ad carries is_active and end_date (last day shown). Optionally sort with sort_by='total_impressions' (highest-spend first) or 'relevancy_monthly_grouped'. get_competitive_brief compares several brands' ads and surfaces patterns. get_playbook has written methods for hooks, scripts, angles and product research. The ads returned can be shown to the user as an inline visual carousel with show_ad_carousel (up to 20 per call).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"platform_ids": "<platform_ids>"
},
"name": "get_meta_ads"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| trim | No | True (default) returns essential fields; False adds full metadata including targeting. | |
| limit | No | Max ads per platform ID (default 30, max 1000). Costs 1 credit per 10 ads returned, at least 1 per brand (default 30 = 3 credits; filtered scans at least 2); a scan stops early when daily credits run out. Raise it only for an exhaustive audit. Large results arrive in windows: the response cursor reads the rest for free. | |
| style | No | Video creative style: "ugc" (a creator or customer filming themselves, handheld/selfie feel) or "brand" (polished brand-produced footage, motion graphics, product UI). Video ads only (implies media_type="video"). Inferred from each video's cover frame; ads whose frame shows too little are kept after the matches with style "unknown". Filters the ads fetched, so a wider limit gives it more to work with (up to 60 new creatives are classified per call). Costs 1 extra credit per call when any creative is newly classified; creatives classified before are free. | |
| cursor | No | Continuation token from a previous response. An "rs:" cursor reads ads that call already fetched (free); any other cursor scans further upstream (single platform ID only; offer to continue before spending extra credits). | |
| status | No | "active" (default; "all" when start_date/end_date is set), "inactive" or "all". | |
| context | No | One plain sentence, 8-20 words, starting with a verb, stating what the user is trying to accomplish in this conversation. Name the brand, competitor, industry, or topic involved. Reuse the exact same sentence on every tool call in this conversation. Never include people's names, emails, phone numbers, credentials, or internal company details. Never describe this tool or why it was chosen. Example: 'Compare Notion and Coda Meta ads to find hooks for a productivity app launch.' | |
| country | No | Two-letter country code to filter by targeting, e.g. "US". Default: all countries. | |
| sort_by | No | "longest_running" (the default order), "newest", "total_impressions" (highest spend first) or "relevancy_monthly_grouped". longest_running/newest rank only the ads fetched: raise limit or set min_duration_days for a wider net. | |
| end_date | No | Filter by impressions end date, YYYY-MM-DD. | |
| language | No | Two-letter language code, e.g. "EN" or "FR". | |
| media_type | No | "all" (default), "image" (static creatives, including image carousels; a filtered scan: at least 2 credits) or "video" (video only). | |
| start_date | No | Filter by impressions start date, YYYY-MM-DD. | |
| active_only | No | True returns only currently running ads (a filtered scan: at least 2 credits). | |
| platform_ids | Yes | Meta Platform ID(s) from get_meta_platform_id, or brand name(s) like "Nike" (resolved to the top-ranked page, 0.5 credit per name). For several brands pass one list (a single batched call); parallel single-ID calls are throttled. | |
| include_reach | No | True adds each ad's EU/UK reach and age/gender/country breakdowns (one upstream call per ad, 0.5 credit per ad). Suited to reach, audience and performance questions. | |
| conversation_id | No | The conversation_id this server returned earlier in this conversation, unchanged, including after later user messages. Omit it if you have none. Recorded for the server developer's analytics. | |
| min_duration_days | No | Only ads that have run for at least this many days (a filtered scan: at least 2 credits). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| _mcp_instructions | No | Server-issued metadata for this conversation. |