Skip to main content
Glama

Get an ad

ads_ad
Read-onlyIdempotent

Meta Ad Library API: Get an ad. One ad with creatives, payer and beneficiary, and EU/UK transparency data. Price: 5 credits per call; failed calls are free.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "ad_id": "<ad_id>"
    },
    "name": "ads_ad"
  }
}

Input Schema

NameRequiredDescriptionDefault
ad_idYesAd Library ID
countryNoCountry used to look the ad upALL

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, open-world), so the marginal bar is lower, and the description still adds real value: it discloses the credit cost (5 per call), that failed calls are free, and what data is returned including EU/UK transparency fields. It does not address pagination, error modes, or missing-ad behavior.

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?

Three front-loaded sentences with no filler; the payload description and cost are stated compactly. Minor redundancy in 'Meta Ad Library API: Get an ad' restating the title.

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?

With only two simple parameters, no output schema, and annotations covering safety, the definition supplies what an agent needs: what comes back, what it costs, and that failures are not charged. Only the country parameter's semantics and failure behavior remain unaddressed.

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%, documenting both ad_id and country, so the schema carries the parameter burden. The description adds nothing about the country parameter's effect on lookup or what 'ALL' means, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Get an ad') and defines the scope as a single ad ('One ad with creatives, payer and beneficiary...'), which implicitly distinguishes it from the list/search siblings. It stops short of naming a sibling or explicitly saying 'by ID, not a search'.

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

Usage Guidelines3/5

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

Usage is only implied: the required ad_id plus 'One ad' signals this is the detail lookup for an already-known ad, versus ads_ads_search or ads_page_ads. There is no explicit when-to-use / when-not-to-use statement.

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.