Skip to main content
Glama

Apogee: Bulk Ad Launcher for Meta, TikTok & Snapchat

Search the Meta Ad Library

search_meta_ad_library
Read-onlyIdempotent

Competitors' ads in the Meta Ad Library (texts and dates). Search the Meta Ad Library for competitor ads by brand/page or keyword. Returns TEXT metadata only (ad copy, headline, CTA, start date, is_running, countries) — NO images/videos to avoid token blowup. Use for Competitor Ad Analysis prompt. Ads running 90+ days = validated winners. Cache 7 days.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "search_meta_ad_library"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax ads to return (default 20, max 50).
page_idNoMeta page ID of the competitor (preferred). Resolves to their ad library directly.
countriesNoISO country codes (e.g. ["FR","BE"]). Default ["ALL"].
search_termsNoKeyword search across all pages (use when page_id unknown).
ad_account_idNoMeta ad account id (act_…), from list_ad_accounts
force_refreshNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so safety is covered. The description adds genuinely new behavior: returns TEXT metadata only, deliberately excludes images/videos to avoid token blowup, and results are cached for 7 days — all decision-relevant. No mention of rate limits or failure modes.

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?

Dense and front-loaded with the core action first, and nearly every clause carries information. The opening fragment ('Competitors' ads in the Meta Ad Library (texts and dates)') is partly redundant with the following sentence, and the telegraphic style ('Cache 7 days.') reads as notes rather than prose.

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?

With six optional parameters and no output schema, the description usefully enumerates return fields (ad copy, headline, CTA, start date, is_running, countries). Missing are account-level requirements for ad_account_id and any note on result pagination or empty-result behavior, though neither is critical for a read-only search.

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 coverage is 83%, so the schema already documents page_id as preferred and search_terms as the fallback, plus limit defaults and country codes. The description's 'by brand/page or keyword' largely restates that, adding only light reinforcement of the mutual-exclusivity intent rather than new semantics for the six 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?

States a specific verb and resource ('Search the Meta Ad Library for competitor ads') plus the two lookup modes (brand/page or keyword). It is clearly distinguishable from sibling ad tools like get_ad_creatives and list_ads, which operate on the user's own account rather than the public competitor library.

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?

Gives real context: 'Use for Competitor Ad Analysis prompt', page_id preferred over keyword search, and the 90+ days = validated winners heuristic for interpreting results. It does not explicitly name an alternative sibling or state when not to use it, which keeps it short of a 5.

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.