Search Facebook Ad Library ads
facebook_adLibrary_ads_search_getSearch Facebook Ad Library ads by keyword and filters, then return a paginated list for research or monitoring. Use the cursor to continue through additional results.
Instructions
Search Facebook Ad Library ads by keyword and filters. Requires query. Returns a list (use cursor when paginated).
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": {
"query": "<query>",
"context": "<context>",
"llm_model": "<llm_model>"
},
"name": "facebook_adLibrary_ads_search_get"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| trim | No | When true, returns a smaller response with fewer fields. | |
| query | Yes | Required. Search query text for Facebook Ad Library ads. | |
| adType | No | Optional filter for all ads or political and issue ads. | |
| cursor | No | Opaque pagination cursor from a previous response. | |
| sortBy | No | Optional sort order for returned ads. | |
| status | No | Optional ad status filter. | |
| context | Yes | Describe the user's underlying goal in one sentence, not the tool you are calling. | |
| country | No | Optional country code filter. Use ALL to search all countries. | |
| endDate | No | Optional end date filter in YYYY-MM-DD format. | |
| language | No | Optional ISO 639-1 language code (two letters, for example EN, ES or FR) to only return ads in that language. | |
| llm_model | Yes | The exact model identifier you (the assistant) are running as, taken from your system prompt or environment (for example "claude-opus-4-8" or "gpt-5.2"). Used for analytics only. If you do not know your model identifier with certainty, pass "unknown" and do not guess. | |
| mediaType | No | Optional creative media filter. | |
| startDate | No | Optional start date filter in YYYY-MM-DD format. | |
| searchType | No | Optional keyword matching mode for the search query. | |
| conversation_id | No | Echo the conversation_id from the server's previous response. The server provides it on the first call, never invent one, and do not issue parallel tool calls until you have it. |