Skip to main content
Glama

TrueScrape

facebook: Ad details

facebook_ad
Read-only

Ad details. One ad from the Meta Ad Library by its archive id. Meta does not expose the archive as an addressable node for every ad; pass page_id as well and we find it by scanning that advertiser's archive instead. Costs 1 credit.

Input Schema

NameRequiredDescriptionDefault
idYesAd archive id, or an Ad Library URL containing `?id=`
countryNoReached country used by the fallback scanUS
page_idNoThe advertiser's page id. Enables the archive-scan fallback.
cache_max_ageNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Beyond readOnlyHint/openWorldHint, it discloses the non-obvious fallback resolution path, the country dependency of that scan, and the 1-credit cost — real behavioral context. It stops short of saying what happens when neither lookup succeeds (empty result vs. error).

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 tight sentences, none wasted: identity, the fallback rule, then cost. The most decision-relevant constraint (archive id may not be directly addressable) is front-loaded after the purpose.

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?

No output schema exists, so the description carries return-value burden, and 'Ad details' gives little sense of the payload shape. Otherwise it covers the identifier semantics, the fallback, and cost adequately for a 4-parameter read tool.

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?

Schema coverage is 75%, so baseline is 3; the description adds genuine meaning for page_id by explaining it enables the archive-scan fallback rather than just being 'the advertiser's page id'. country and cache_max_age are left entirely to the schema, and the URL form of id is only in 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?

States a specific verb and resource ('Ad details') plus scope ('one ad from the Meta Ad Library by its archive id'), which cleanly distinguishes it from the plural facebook_adLibrarySearch and facebook_pageAds siblings.

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?

Explains the key conditional: when Meta has no addressable archive node, pass page_id to trigger an archive scan. It gives clear context for the fallback and the cost, though it never states when to prefer a sibling search tool or when the call will fail outright.

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.