search_meta_ads
Search active Meta Ad Library ads on Facebook and Instagram by keyword, country, media type, and minimum days active to find winning competitor ad creatives.
Instructions
Search live active ads from the Meta Ad Library (Facebook & Instagram). Allows filtering by country, media type (VIDEO, IMAGE), and minimum days active to identify winning competitor ads.
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": {
"keyword": "<keyword>"
},
"name": "search_meta_ads"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| maxAds | No | Maximum number of ad records to return (1 to 50). Defaults to 20. | |
| keyword | Yes | Brand name, competitor, or product keyword (e.g. "Gymshark", "Athletic Greens", "running shoes"). | |
| mediaType | No | Filter creatives by media format. Defaults to "ALL". | ALL |
| accessToken | No | Optional Meta Graph API access token. If omitted, uses process.env.META_ACCESS_TOKEN. | |
| countryCode | No | Two-letter ISO country code (e.g. "US", "GB", "CA", "AU", or "ALL"). Defaults to "US". | US |
| minDaysActive | No | Minimum days the ad has been running continuously (e.g. 30 to only find winning, profitable ads). Defaults to 0. |