Skip to main content
Glama
navidmoazzez

Facebook Ad Library MCP

by navidmoazzez

Find advertisers

list_advertisers
Read-onlyIdempotent

Find the advertiser Pages running ads for a brand, ranked by number of ads. Use it to get the Page ID for further ad lookups.

Instructions

Resolve a brand name to the advertiser Pages actually running ads for it, ranked by how many ads each is running. Use this first when you know the brand but not its Page ID, then pass that ID to search_ads to get everything they run.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesBrand or company name to look up.
countryNoTwo-letter country code. Default US.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
noteNo
countYes
advertisersYes
Install Server

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, openWorldHint, idempotentHint, and non-destructive behavior. The description adds meaningful behavioral context: it returns actual advertiser Pages and ranks them by ad count, which sets expectations beyond the annotations alone.

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?

Two tightly written sentences cover purpose, ranking behavior, usage context, and the relationship to search_ads. There is no filler or redundant restating of the title or schema.

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?

With a rich set of annotations, full schema coverage, and an output schema present, the description supplies the missing strategic context: when to use it and what to do with the result. Nothing critical is left unexplained for correct tool selection and invocation.

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 description coverage is 100%, so the schema already documents both 'query' and 'country'. The description reinforces that 'query' is a brand name but does not add any new parameter-level detail, so the baseline of 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 uses a specific verb, 'Resolve', and names the resource (advertiser Pages) and the key output property (ranked by number of ads running). It clearly distinguishes this tool from siblings like search_ads and get_ad by focusing on brand-to-Page-ID resolution.

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

Usage Guidelines5/5

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

The description explicitly states when to use this tool first (when you know the brand but not the Page ID) and gives the follow-up path (pass that ID to search_ads). This provides clear routing relative to sibling tools.

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