Skip to main content
Glama

generate_preview

Generate an ad preview from a creative spec without an existing ad. Specify ad format and creative JSON to see how the ad looks.

Instructions

Generate an ad preview without needing an existing ad. Provide creative spec directly to see how it would look.

Input Schema

NameRequiredDescriptionDefault
creativeYesJSON string of creative spec: {object_story_spec: {...}} or {object_story_id: '...'}
ad_formatYesAd format: DESKTOP_FEED_STANDARD, MOBILE_FEED_STANDARD, INSTAGRAM_STANDARD, INSTAGRAM_STORY, RIGHT_COLUMN_STANDARD, etc.
account_idNoAd account ID to generate the preview in (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.6.1
    • addedInput schema / properties / account_id
      Added value: +{
      +  "description": "Ad account ID to generate the preview in (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted.",
      +  "type": "string"
      +}
  2. Addedv1.2.1

TDQS

A3.7/5.0
Behavior3/5

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

No annotations are present, so the description carries the full burden. It usefully discloses that no prior ad object is required, but says nothing about side effects, rate limits, or authentication beyond what the schema states. For a no-annotation tool the disclosure is partial.

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?

Two short sentences, zero filler, with the differentiating qualifier front-loaded immediately after the verb. Nothing in it is redundant with the title or name.

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?

There is no output schema, so the description should characterize what a preview returns (image/URL/iframe payload), and it only offers the vague 'see how it would look'. Inputs and the no-existing-ad behavior are adequately covered, but the artifact an agent will receive is left undefined.

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 each of the three parameters is documented in the schema, including the env-var fallback for account_id and the accepted creative spec shapes. The description's 'provide creative spec directly' adds no syntax or format detail beyond that, so 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 (generate an ad preview) and adds a meaningful scope qualifier: 'without needing an existing ad', which separates it from the sibling get_ad_preview. It does not name that sibling outright, so an agent must infer the pairing rather than being told.

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?

'Provide creative spec directly' tells the agent the required input posture, and 'without needing an existing ad' defines the situation that selects this tool over get_ad_preview. The alternative tool is not named, so the routing is implied rather than explicit.

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