Skip to main content
Glama

Search Meta Ad Library

adsap_search_ad_library

Search Meta's public Ad Library for ads (competitor research / ad transparency). Find the ads a competitor page is currently running, or ads matching a keyword, in given countries. Returns each ad's page, creative text, platforms, delivery dates, a public Ad Library permalink, and a pagination cursor. Read-only public data (not your own account's ads — use adsap_list_campaigns/adsap_get_insights for that). COVERAGE CEILING (Meta's rule, not ADSAP's): the public Ad Library API returns ordinary commercial ads ONLY where they reached the EU or UK. Ads that never reached the EU/UK are returned only when they are political or social-issue ads. So a US-only (or any non-EU/UK) commercial search returns zero results however it is phrased, and that empty result is NOT evidence the advertiser is inactive. Never promise non-EU/UK competitor research from this tool; point the user at the public Ad Library website for those markets.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
afterNoPagination cursor from a previous response's meta.paging_after, to fetch the next page.
limitNoMax ads to return per page. Default 25, max 50 (Meta's cap).
ad_typeNoCategory of ads. Default ALL (all commercial ads). Use POLITICAL_AND_ISSUE_ADS etc. for the special transparency categories.
page_idsNoFacebook Page IDs to restrict the search to (returns only ads run by these pages). Provide this and/or search_terms.
countriesYesISO-2 country codes the ads reached, e.g. ["FR"], ["GB","DE"]. Required by Meta (ad_reached_countries). For ordinary commercial ads, only EU/UK countries can return results (see the coverage ceiling in the tool description); non-EU/UK codes return zero unless ad_type is POLITICAL_AND_ISSUE_ADS.
search_termsNoKeyword/phrase to match in ad creative text. Provide this and/or page_ids.
ad_account_idYesYour ad account ID (act_xxx). Required — Meta only serves Ad Library results to callers with an active ad account; also anchors the workspace ownership check + Meta budget.
ad_active_statusNoFilter by whether the ad is currently running. Default ACTIVE (what a competitor is running now). Use ALL to include stopped ads.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It fully discloses the read-only nature, the public-data scope, the EU/UK coverage limitation, the return fields (page, creative text, platforms, delivery dates, permalink, pagination cursor), and the meaning of empty results. It also explicitly warns against overpromising, which is critical behavioral context an agent needs to avoid misleading users.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single paragraph but well-structured: purpose first, then return details, then the coverage ceiling and its implications. It is slightly long but every sentence carries necessary information, especially the coverage warning. It is front-loaded with the main purpose and distinguishes siblings early. It earns a 4 rather than 5 because a bit more trimming could make it punchier, but it is far from verbose.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with 8 parameters, no output schema, and no annotations, the description is remarkably complete. It covers what the tool returns, pagination, the coverage ceiling, and alternatives. It also addresses edge cases (non-EU/UK results) and provides guidance on interpreting empty results. Nothing an agent needs to invoke it correctly or manage user expectations is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3. The description adds minimal extra meaning beyond the schema: it reiterates the coverage ceiling for countries and why ad_account_id is required, but these are already in the schema descriptions. It does not introduce new parameter semantics, so the baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb-resource pair ('Search Meta's public Ad Library for ads') and immediately states the two use cases: competitor research and ad transparency. It distinguishes itself from related tools by explicitly naming adsap_list_campaigns/adsap_get_insights as the alternatives for the caller's own ads. The coverage-ceiling note further clarifies the tool's exact scope, leaving no ambiguity about what it does or does not do.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives explicit when-to-use and when-not-to-use guidance. It states 'not your own account's ads — use adsap_list_campaigns/adsap_get_insights for that' and warns against promising non-EU/UK competitor research, pointing users to the public Ad Library website for those markets. It also explains the coverage ceiling as Meta's rule, so an agent knows when to expect zero results and how to interpret them.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources