Skip to main content
Glama

meta_get_ad_preview

Render Meta's preview markup for an owned ad in Feed, Stories, or Reels formats so you can validate its layout before publishing.

Instructions

Render Meta's preview markup for an owned ad in a supported Feed, Stories, or Reels format.

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

Input Schema

NameRequiredDescriptionDefault
ad_idYesMeta ad ID to preview
ad_formatNoPreview format such as INSTAGRAM_REELS or FACEBOOK_REELS_MOBILEINSTAGRAM_REELS
account_idNoMeta ad account ID. Uses the active account or META_AD_ACCOUNT_ID when omitted.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.1

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It usefully discloses that the output is preview markup (not a rendered image) and that the ad must be 'owned' and in a supported format, but it never states that this is a non-mutating read, what account/permission context is required, or what happens for unsupported formats or missing ads.

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?

A single front-loaded sentence with zero filler; the verb, resource, ownership constraint, and placement scope all appear immediately.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return-value detail is unnecessary, and the tool is a simple one-required-parameter read. What's missing is behavioral context: read-only nature, account resolution requirements, and failure behavior for unsupported formats or non-owned ads.

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%, so ad_id, ad_format, and account_id are already documented with defaults and fallback behavior. The description adds only the notion of 'supported' formats, which is baseline-appropriate given that the schema does the heavy lifting.

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?

The description gives a specific verb and resource ('Render Meta's preview markup for an owned ad') and scopes the supported placements (Feed, Stories, Reels). It is not obfuscated by an explicit contrast with a sibling, but no sibling tool appears to do previewing, so the purpose stands clear on its own.

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: an agent can infer this is for visually checking an owned ad before or after publishing. There is no explicit when-to-use condition, no prerequisite statement (e.g., ad must be yours and exist in the ad account), and no mention of what to do if the ad is unsupported.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools