Skip to main content
Glama

Get ad details

get_ad
Read-onlyIdempotent

Get the full detail of one ad: complete text, all media and carousel cards, the advertiser profile, who paid for it (payer/beneficiary), and EU (DSA) / UK transparency data (reach, targeted ages, gender, locations, reach breakdown by country and age).

    Cost: 1 credit.

    Args:
        ad_id: Ad Library ID (the numeric `id` returned by search_ads).
        country: ISO-3166 alpha-2 country for transparency data, or 'ALL' (default).
    

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": "get_ad"
  }
}

Input Schema

NameRequiredDescriptionDefault
ad_idYes
countryNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so safety is covered. The description adds genuinely useful non-schema context: a cost of 1 credit and the scope of returned transparency data. It does not mention rate limits, errors, or what happens when country data is unavailable, so it adds some but not rich behavioral context.

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 core capability is front-loaded in the first sentence and the cost is called out separately, so an agent can extract the essentials quickly. The docstring-style Args block is somewhat redundant with the following schema but is compact and does not obstruct reading.

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?

For a two-parameter read tool with an output schema, the description covers purpose, the ID source, country scoping, cost, and the categories of returned data. Nothing essential is missing, though the country parameter's effect on non-transparency fields is left implicit.

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 description coverage is 0%, so the description must carry the parameter meaning, and it does: ad_id is the numeric ID from search_ads, and country is an ISO-3166 alpha-2 code scoping transparency data with 'ALL' as the default. The only gap is that the schema declares default null while the description says 'ALL', a minor inconsistency an agent must resolve.

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 ('Get the full detail of one ad') and enumerates exactly what detail is included: text, media, carousel cards, advertiser profile, payer/beneficiary, and EU/UK DSA transparency fields. It also ties ad_id back to search_ads, making it clearly distinguishable from the search 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?

The description establishes the call context by saying ad_id is 'the numeric `id` returned by search_ads', which effectively tells the agent this is the follow-up call after a search. It stops short of explicit exclusions or stating when to prefer get_page_ads instead, but the usage path is clear.

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.