Skip to main content
Glama

ChatGPT Ads ad preview

chatgpt_ads_ad_preview
Read-only

How one ad will render in ChatGPT: OpenAI's preview markup for the ad (title, body, image, link). Creating a preview changes nothing on the account. Long markup is truncated.

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": {
      "adId": "<adId>"
    },
    "name": "chatgpt_ads_ad_preview"
  }
}

Input Schema

NameRequiredDescriptionDefault
adIdYesThe ad id, from chatgpt_ads_get_ads.
accountIdNoThe ChatGPT Ads ad account id, as listed by chatgpt_ads_list_ad_accounts. A connection reaches one ad account, so this is normally left out.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, but the description adds behavior beyond them: output is truncated when markup is long, and the returned markup contains title, body, image and link. Since there is no output schema, that return-shape disclosure is genuinely useful. It does not discuss error cases for invalid ad ids, which would have pushed it higher.

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?

Three short sentences with no filler, and the return shape is front-loaded before the safety and truncation notes. The opening clause is slightly elliptical ('How one ad will render') but still readable at a glance.

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 two-parameter read-only tool with no output schema, the description covers what it does, that it mutates nothing, what the response roughly contains, and a truncation caveat. Only error handling and any size limits on the truncation remain unspecified.

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%, so both parameters are already documented, including the note that accountId is normally omitted because a connection reaches one ad account. The description adds nothing about parameter meaning or format, so the 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?

The description names the resource ('one ad') and the outcome ('OpenAI's preview markup for the ad (title, body, image, link)'), so an agent can tell this is a per-ad rendering preview rather than a report or mutation. It stops short of naming a sibling alternative, but the function is distinct from get_ads or performance_report.

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 implied rather than stated: 'Creating a preview changes nothing on the account' suggests it is safe to call for inspection, and the adId reference to chatgpt_ads_get_ads in the schema reinforces that it is a follow-up call. There is no explicit when-to-use versus when-to-skip guidance or named alternative.

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