Skip to main content
Glama

Google Ads & Meta Ads

Meta: Get Ad Preview

meta_get_ad_preview
Read-onlyIdempotent

Get a preview link showing how an existing ad or ad creative in the user's connected Meta ad account renders in one placement (mobile feed, Instagram feed, Stories, Reels, …). Pass ad_id or creative_id. Returns a short-lived preview URL the user can open in a browser and, for an ad, Meta's shareable preview link. Read-only.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "meta_get_ad_preview"
  }
}

Input Schema

NameRequiredDescriptionDefault
ad_idNoAd to preview.
ad_formatNoPlacement to render (default MOBILE_FEED_STANDARD).
creative_idNoAd creative to preview, when no ad_id.

Output Schema

NameRequiredDescriptionDefault
adFormatYesPlacement rendered.
objectIdYesAd or creative previewed.
previewUrlYesShort-lived URL of the rendered preview, or null when Meta returned none.
shareableLinkYesMeta's shareable preview link for an ad (all placements), or null for a creative.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is covered. The description adds genuinely new behavior: the returned URL is short-lived, one placement per call, and for ads Meta also supplies a shareable preview link. It does not mention any rate limits or failure modes for invalid placement/ad combos.

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?

Front-loaded with the core action and what comes back, then the ID-selection rule, then the read-only reassurance. The parenthetical placement list (mobile feed, Instagram feed, Stories, Reels, …) is somewhat redundant with the enum and could be trimmed.

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 three-parameter, zero-required tool this covers the essentials: how to select the target, that one placement is rendered per call, and what the response is used for. An output schema exists, so the brief return-value statement is a bonus rather than a gap; only error/edge-case behavior is 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% and the ad_format enum is fully enumerated, so the baseline is 3. The description adds only a light hint that ad_id and creative_id are alternatives, while the placement examples it lists largely restate the enum values.

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: retrieve a preview link showing how an existing ad or creative renders in a single placement. It also scopes what the preview covers (one placement at a time), which cleanly separates it from siblings like meta_create_ad or meta_get_insights.

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?

"Pass ad_id or creative_id" tells the agent the two mutually exclusive entry points and implies the object must already exist. It gives no explicit exclusions or named alternative tools (e.g., when to look up an ad first vs. preview it), so it stops short of a full when/when-not framework.

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.

Resources