Search the Meta Ad Library
search_meta_ad_libraryCompetitors' ads in the Meta Ad Library (texts and dates). Search the Meta Ad Library for competitor ads by brand/page or keyword. Returns TEXT metadata only (ad copy, headline, CTA, start date, is_running, countries) — NO images/videos to avoid token blowup. Use for Competitor Ad Analysis prompt. Ads running 90+ days = validated winners. Cache 7 days.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "search_meta_ad_library"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max ads to return (default 20, max 50). | |
| page_id | No | Meta page ID of the competitor (preferred). Resolves to their ad library directly. | |
| countries | No | ISO country codes (e.g. ["FR","BE"]). Default ["ALL"]. | |
| search_terms | No | Keyword search across all pages (use when page_id unknown). | |
| ad_account_id | No | Meta ad account id (act_…), from list_ad_accounts | |
| force_refresh | No |