Skip to main content
Glama

Search Meta Ad Library

meta_search_ad_library
Read-only

Search the Meta Ad Library to find ads from any advertiser. Access ad creatives, spend, impressions, demographics, and targeting without needing an ad account.

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

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

Annotations already declare readOnlyHint=true and destructiveHint=false, and the description reinforces this by describing the tool as a transparency tool. It adds context by noting that a valid access token is required but not ad account ownership, and describes the return values.

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 clear opening sentence followed by a structured parameter list. It is concise but includes all necessary details; could be slightly shorter but remains efficient.

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?

Despite no output schema, the description summarizes what the tool returns (ad creatives, spend ranges, impressions, etc.), which is sufficient for an agent. The note about the access token requirement adds useful context. With 10 parameters, the description covers key aspects adequately.

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?

The description enhances the 60% schema coverage by listing all parameters with concise explanations, including enum values and defaults. It clarifies the required country codes and optional filters like date range and pagination, adding meaning beyond the schema.

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 explicitly states it searches the Meta Ad Library for ads from any advertiser, clearly identifying it as a transparency tool without requiring ad account access. This distinguishes it from sibling tools that typically require ad account credentials.

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 clarifies that no ad account is needed, providing a key differentiator from many sibling tools that require ad account access. It outlines parameters but does not explicitly name alternative tools or state when not to use this tool.

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/oliverames/meta-mcp-server'

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