Skip to main content
Glama

SiteCheck Shop & Social

Ads from Meta's official Ad Library API, by keyword or page

social_facebook_ads_library
Read-only

Ads from Meta's official Ad Library API, by keyword or page IDs and country: ad ID, page, funding byline, creation and delivery dates, creative texts, snapshot URL, platforms, languages and, for political or issue ads, spend and impression ranges; EU reach for EU ads. Covers political/issue ads worldwide and all ads delivered in the EU/UK. Needs the operator's free Ad Library API token. Related tools on this server, for a different need: social_facebook_events when you need Events listed on a Facebook Page's Events tab: event id; social_facebook_followers_following when you need Facebook Page follower counts from Facebook's public Page. Price: $0.002 per successful call, paid with x402 (USDC on Base, Solana and 10 more networks); failed calls are not charged.

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": "social_facebook_ads_library"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNoSearch words (or use pageIds)
limitNo1 to 50 ads (default 10)
adTypeNoALL or POLITICAL_AND_ISSUE_ADS (default). ALL only returns ads for EU/UK countries
countryNoTwo-letter country the ads reached, e.g. US, DE (ALL for every country)
pageIdsNoUp to 10 Facebook page IDs, comma separated
activeStatusNoACTIVE, INACTIVE or ALL (default ALL)

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the readOnly/openWorld annotations it discloses the practical blockers an agent needs: a required free Ad Library API token, a coverage boundary (political/issue ads worldwide, all ads only in EU/UK), and a per-successful-call price with failed calls uncharged. That is real operational context the annotations cannot carry.

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?

Front-loaded with the resource and modes, then coverage, then prerequisites, then routing then price — a sensible priority order with no filler. It loses a little to the long enumerated field list (ad ID, page, funding byline...), which duplicates the output schema and turns the core sentence into a run-on.

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 read-only, open-world search tool with six optional params and an output schema, everything an agent needs to decide and call is present: auth requirement, cost model, geographic/type coverage limits, and sibling routing. Return values are already covered by the output schema, so the extra field list is redundant rather than necessary.

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 100%, so the schema already explains q, limit, adType, country, pageIds and activeStatus, including the ALL/EU-UK constraint. The description only restates 'keyword or page IDs and country' and adds no format or interaction detail (e.g. precedence when q and pageIds are both supplied), so the baseline 3 applies.

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+resource (ads from Meta's official Ad Library API) plus the two retrieval modes (keyword or page IDs + country). It names the two sibling tools it is not (social_facebook_events, social_facebook_followers_following) so an agent can route without opening either schema.

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?

Explicitly routes two adjacent needs elsewhere with 'when you need...' conditions, which is strong negative guidance. What it does not do is state when THIS tool is the right pick over other ad-transparency sources (e.g. TikTok Creative Center) or when keyword vs pageIds search is preferable.

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