Skip to main content
Glama

Search Meta Ad Library

meta_search_ad_library
Read-only

Search Meta's Ad Library for any advertiser's ads without ad account access. Filter by country, keywords, Page ID, ad type, and status to retrieve creatives, spend, impressions, and demographics.

Instructions

Searches the Meta Ad Library for ads from any advertiser. This is a transparency tool — no ad account access needed.

Args:

  • ad_reached_countries (string[]): Required. ISO country codes where ads were shown (e.g., ["US", "GB"])

  • search_terms (string, optional): Keywords to search ad text

  • search_page_ids (string[], optional): Specific Page IDs to search

  • ad_type (string): ALL, POLITICAL_AND_ISSUE_ADS, HOUSING_ADS, EMPLOYMENT_ADS, CREDIT_ADS (default: ALL)

  • ad_active_status (string): ALL, ACTIVE, INACTIVE (default: ALL)

  • ad_delivery_date_min (string, optional): Min delivery date YYYY-MM-DD

  • ad_delivery_date_max (string, optional): Max delivery date YYYY-MM-DD

  • limit (number): Max results (1–100, default 25)

  • after (string, optional): Pagination cursor

Returns: Ad creatives, spend ranges, impressions, demographics, and targeting info.

Note: Requires a valid access token but does NOT require ad account ownership.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
afterNo
limitNo
ad_typeNoALL
search_termsNoKeywords to search
response_formatNoOutput format: 'markdown' for human-readable or 'json' for machine-readablemarkdown
search_page_idsNoPage IDs to filter by
ad_active_statusNoALL
ad_delivery_date_maxNoMax delivery date YYYY-MM-DD
ad_delivery_date_minNoMin delivery date YYYY-MM-DD
ad_reached_countriesYesISO country codes (e.g., ["US"])
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false. The description adds valuable context beyond annotations: it requires a valid access token but not ad account ownership, and it describes return contents (ad creatives, spend ranges, impressions, demographics, targeting info). It does not mention rate limits or pagination behavior, but the read-only nature is covered. No contradiction with annotations.

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 well-organized with a brief lead sentence and a clear parameter list. It is appropriately detailed for a tool with 10 parameters, but it repeats some information already present in the schema (e.g., default values) and misses response_format. No fluff, but could be slightly tighter.

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

Completeness4/5

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

Given the tool's complexity (10 parameters, 1 required), the description covers the core purpose, authentication requirements, parameter semantics (except response_format), and return value types. It does not explain parameter interactions (e.g., whether search_terms and search_page_ids are exclusive) or provide examples. The missing response_format is a significant gap for an agent that might want machine-readable output. Otherwise, quite complete.

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

Parameters4/5

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

Schema coverage is 60%, so the description helps fill gaps. It clarifies each parameter's purpose (e.g., 'Pagination cursor' for after, 'Max results (1–100, default 25)' for limit) and adds meaning for ad_type and ad_active_status. However, it entirely omits the response_format parameter present in the schema, leaving that parameter undocumented in the description. It does add value for most parameters.

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 clearly states the verb 'searches' and the resource 'Meta Ad Library', and explicitly frames it as a transparency tool accessible without ad account ownership, which distinguishes it from all ad-management siblings like meta_list_ads or meta_get_ad. The scope ('any advertiser') is unambiguous.

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

Usage Guidelines4/5

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

The description implies its use case (transparency, no ad account access required) and notes that it needs only a valid access token. It does not explicitly name an alternative tool or state when not to use it, but the clear separation from ad-management tools makes the usage context understandable. Exclusions are not stated, so a small deduction.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/open-work-org/open-mcp-servers'

If you have feedback or need assistance with the MCP directory API, please join our Discord server