Skip to main content
Glama

Get advertiser by id

get_advertiser
Read-only

Fetch a single advertiser's FULL card by id — the same data as the spytrend.com/advertisers page: name, external_id (FB page id), avatar_url, page_url, total_ads and active_ads (EXACT precomputed counts — THIS is the cheap way to answer 'how many ads / how many are active does this advertiser run', NOT paginating search_ads, whose total is estimated for advertiser_id), launched_14d, top_countries (geo breakdown), platforms, top_landing (destination domains), page_like_count (followers), born (founded date), categories and recent creatives. The card also embeds top_creatives — the advertiser's MOST RE-UPLOADED creatives (a creative's total_ads = how many ads reuse the same material, ordered desc, media stripped/free); present these as the headline at the end and download with get_media (entity_type=creo). The id is an advertiser UUID (from an ad's advertiser_id / get_trends dimension=advertisers) OR a Facebook page id — a fanpage id from get_creative's fanpages, or an ad's page_id: a page id is resolved to its advertiser automatically, so a fanpage you found in a creative resolves straight to its card. A pasted facebook.com page link (any form — vanity name, profile 100…-id, profile.php, Ads Library) is likewise resolved to the page automatically. To list the advertiser's ads, call search_ads with advertiser_id. CATEGORY COUNTERS CONTRACT category_total_ads / subcategory_total_ads and every top_categories[].ads_count / top_subcategories[].ads_count count ONLY the advertiser's AI-LABELED ads - they are a share of the labeled subset, NOT of the page's ad universe. The labeling share is ai_coverage (labeled / total_ads). Read them as: 'N of total_ads ads are labeled (ai_coverage), and X% of THOSE are '. Never compare category_total_ads against total_ads/active_ads directly, and never report a category share as the advertiser's overall vertical mix when ai_coverage is low. QUOTA: 1 token (one entity card). TOP_CREATIVES CONTRACT each top_creatives entry's total_ads counts the creative's FULL family of matching material across the whole serving universe as the market-wide reuse of that creative; note the family may span MORE advertisers than this page — it is the creative's market-wide reuse, not this advertiser's share.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesthe resource id to fetch

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=true and openWorldHint=true, but the description goes far beyond: it discloses that the returned card includes exact precomputed counts, that top_creatives are the most re-uploaded creatives with media stripped, and that category counts are only for AI-labeled ads. It also discloses quota (1 token) and the top_creatives contract regarding market-wide reuse. No contradiction with annotations; the description adds rich behavioral context that annotations alone do not convey.

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?

The description is long, but most content is essential given the tool's complexity (many fields, nested contracts, interpretation rules). It is front-loaded with the core purpose and a list of fields, then procedural nuances. Some redundancy (e.g., repeating 'top_creatives' explanations) could be trimmed, but overall it is packed with actionable detail and avoids fluff. Not as succinct as possible, but justified.

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?

Despite an output schema existing (indicated by context), the description explains return contents thoroughly: the list of fields, the special semantics of counts (exact vs labeled), the top_creatives contract, and quota. It covers all practical aspects an agent needs to call the tool correctly, including id resolution and interpretation of metrics. No missing information is apparent for a correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema describes 'id' only as 'the resource id to fetch' (generic). The description vastly enhances meaning: id can be an advertiser UUID or a Facebook page id, and provides multiple sources (ad's advertiser_id, get_trends dimension, get_creative's fanpages, page_id, or pasted Facebook link). It also explains automatic resolution of page ids and links. This far exceeds schema coverage and gives an agent concrete guidance on constructing the id value.

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 explicitly states the tool fetches a single advertiser's full card by id and enumerates all contained fields (name, external_id, avatar_url, page_url, total_ads, active_ads, etc.). It distinguishes itself from search_ads by positioning itself as the exact-count source and mentions alternatives like get_media and search_ads for other purposes. The verb 'Fetch' and resource 'advertiser's full card' make the purpose unambiguous.

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 provides explicit usage directives: it is the cheap way to get exact ad counts, and warns against paginating search_ads for that. It also instructs to call search_ads when listing an advertiser's ads, explains how to resolve IDs (UUID, page id, Facebook link), and details how to interpret category counters and ai_coverage. It includes a clear exclusion (do not compare category counts to total_ads directly) and naming of alternatives, satisfying the 'when-not' criterion.

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.