Skip to main content
Glama

ads_ad_preview

Read-onlyIdempotent

Render an ad as it appears in a placement. Returns { id, platform_id, previews: [{ format, body }] } where body is the network's iframe HTML. Meta only; Google Ads answers 501.

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_preview"
  }
}

Input Schema

NameRequiredDescriptionDefault
ad_idYesAd id: the Postproxy id (id field of an ad), not the network's platform_id
formatsNoPlacements to render. Default DESKTOP_FEED_STANDARD.
profile_group_idNoProfile group hashid, to scope the call to one profile group. Usually not needed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so the safety profile is covered. The description adds the useful 501/Google Ads constraint and the presence of iframe HTML in the body, but does not address rate limits, error cases beyond 501, or behavior when a placement is unsupported.

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 short sentences, front-loaded with the action and return shape, then the platform limitation. Every sentence carries information with no filler.

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 no output schema, the description steps in to describe the return object (id, platform_id, previews with format/body), which is exactly what is needed. The 501 caveat covers the main failure mode. Minor gaps remain around unsupported placements or empty previews, but the definition is largely complete for a read-only preview 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 description coverage is 100%, so the baseline would be 3. The description adds a small but meaningful note by framing formats as placements to render and confirming that body content is network iframe HTML, which clarifies why the format enum matters. Most parameter meaning still lives in the schema, though.

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 ('Render an ad as it appears in a placement') and immediately describes the returned structure, so an agent knows exactly what it produces and can distinguish it from ads_ad_get or ads_ad_analytics.

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?

Adds an explicit exclusion: 'Meta only; Google Ads answers 501.' That tells the agent when not to call it, which is valuable context. It stops short of naming which sibling to use instead for other needs, but the condition 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.