Skip to main content
Glama

chatgpt_ads_ads_preview

Read-only

Render a preview of a ChatGPT Ads ad and return an expiring HTML iframe snippet for review; draft ads cannot be previewed.

Instructions

Gets a rendered preview of one ChatGPT Ads ad. Returns the platform object unchanged: data[].body is an HTML iframe snippet that expires after 24 hours. Changes no campaign, ad group or ad: the platform renders and saves an expiring preview snapshot. An ad still in draft cannot be previewed. Use chatgpt_ads_ads_get for the ad's settings and review status.

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

Input Schema

NameRequiredDescriptionDefault
ad_idYesAd id as the API returns it (e.g. 'ad_123'). Find it with the matching list tool.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.46.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true, and the description reinforces this while adding behavior the annotations cannot express: the platform object is returned unchanged, data[].body is an HTML iframe snippet that expires after 24 hours, and no campaign, ad group or ad is modified.

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?

Four tight sentences, front-loaded with purpose and followed by return shape, mutation safety, precondition, and the sibling alternative — nothing redundant and every sentence carries distinct information.

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

Completeness5/5

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

There is no output schema, but the description still explains what comes back (platform object, data[].body HTML iframe) and its 24-hour expiry, plus the draft restriction, which is everything needed to call this single-parameter read correctly.

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 coverage is 100% with a single ad_id parameter whose pattern and example are already documented in the schema, so the description adds no further parameter meaning; baseline 3 applies.

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?

The description opens with a specific verb and resource ("Gets a rendered preview of one ChatGPT Ads ad") and explicitly contrasts itself with chatgpt_ads_ads_get for settings and review status, so an agent can pick between them without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives both a routing rule (use chatgpt_ads_ads_get for settings and review status) and a hard precondition (an ad still in draft cannot be previewed), which is exactly the when-to-use and when-not information the agent needs.

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