Skip to main content
Glama
navidmoazzez

Facebook Ad Library MCP

by navidmoazzez

EU spend and reach

get_eu_transparency
Read-onlyIdempotent

Retrieve EU ad transparency data (spend, impressions, reach, demographics) from Meta's Ad Library API. Covers political/issue ads; empty for US commercial ads with no published data.

Instructions

Spend, impressions, reach and demographic breakdown from Meta's official Ad Library API. Covers ads delivered in the EU and political or issue ads anywhere. Returns nothing for an ordinary US commercial ad because that data is not published, which is the correct answer rather than an error. Needs META_ADS_ARCHIVE_TOKEN, which is free.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum ads to return.
queryNoBrand or advertiser name to look up.
countryNoTwo-letter EU country code, e.g. DE, FR, IE. Default DE.
page_idsNoComma-separated Page IDs, as a more precise alternative to query.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
adsYes
nextNo
noteNo
countYes
countryYes
fields_returnedYes
Install Server

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare read-only, idempotent, and non-destructive, but the description adds meaningful extras: the META_ADS_ARCHIVE_TOKEN requirement and the critical non-error empty-result behavior for unpublished data. This goes beyond what annotations and schema provide.

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

Conciseness5/5

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

Three sentences with no filler: core function first, scope second, and the important empty-result and auth notes last. Every sentence carries necessary information.

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?

Output schema exists, annotations cover safety, and the description covers purpose, scope, an important edge-case behavior, and the required token. An agent has enough to select and invoke this tool correctly without hidden surprises.

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?

All four parameters are already fully described in the schema with meaning for limit, query, country, and page_ids. The tool description does not add significant parameter-level semantics beyond that, 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 clearly identifies the resource (Meta's official Ad Library API) and the data returned (spend, impressions, reach, demographic breakdown). It also states the scope (EU-delivered ads and political or issue ads anywhere), which distinguishes it from general ad lookup tools.

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?

It provides clear context for when to use it: EU ads and political/issue ads anywhere, and explicitly says an ordinary US commercial ad will return nothing rather than an error. It doesn't name a specific sibling alternative, but the exclusion is enough to prevent misuse.

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

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/navidmoazzez/facebook-ad-library-mcp'

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