Skip to main content
Glama

Edit a ChatGPT Ads ad

chatgpt_ads_update_ad
Idempotent

Change ONE existing chat-card ad: name, headline (title), body text (100 characters at most), destination URL (https), image (a file id from chatgpt_ads_upload_image), and the UTM query-string template. Only what you pass changes, and only if it differs. NOT for pausing/resuming (chatgpt_ads_set_status); nothing is archived or deleted. A creative change sends the COMPLETE creative (current values with your changes) and sends the ad back through OpenAI's review, so it may stop serving until it is approved again. Previews by default (dryRun true); set dryRun false only after the user agrees. Only works where the user has allowed changes for the ad account. Product-feed ads can't have their creative edited here.

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_update_ad"
  }
}

Input Schema

NameRequiredDescriptionDefault
adIdYesThe ad id, from chatgpt_ads_get_ads.
bodyNoNew body text, at most 100 characters.
nameNoNew name (3+ characters).
titleNoNew headline.
dryRunNoPreview only (the default): reads the current value and shows exactly what would change (before and after) without sending anything. Set false only after the user has seen the preview and agreed.
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.
targetUrlNoNew destination URL (https).
imageFileIdNoNew image: a file id from chatgpt_ads_upload_image.
queryStringTemplateNoThe UTM / query-string template OpenAI appends to the link (landing_page_configuration.query_string_template), e.g. utm_source=chatgpt.com&utm_medium=cpc&utm_campaign={campaign_name}. No leading ?, no spaces, 2048 characters at most. null removes it. Tagging links lets GA4 attribute the traffic (chatgpt_ads_vs_ga4_conversions).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior4/5

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

Beyond annotations (readOnlyHint=false, destructiveHint=false, idempotentHint=true), it discloses the highest-value consequences: a creative change sends the COMPLETE creative and re-enters OpenAI review, so the ad may stop serving until approved, and nothing is archived or deleted. That review/availability side effect is not derivable from the annotations. It stops short of describing the preview payload or error behavior, which keeps it off a 5.

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?

Front-loads the editable field list, then the exclusions, then the risky consequence, then the dryRun protocol — a sensible risk-ordering. Every clause carries information; there is no filler or repeated title text.

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?

For a mutation tool with no output schema, it covers the essentials: partial-update behavior, review-induced serving interruption, permission requirement, preview-then-confirm protocol, and unsupported ad type. Nothing an agent needs to call this safely and correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds partial-update semantics not encoded anywhere in the schema: 'Only what you pass changes, and only if it differs.' It also reinforces the dryRun gating contract and that imageFileId comes from chatgpt_ads_upload_image, which is a real cross-tool dependency hint rather than a restatement.

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?

Opens with a specific verb and resource ('Change ONE existing chat-card ad') and enumerates exactly which fields are editable: name, headline, body, destination URL, image, UTM template. It explicitly excludes product-feed ads and points pausing/resuming to a named sibling, so the agent can separate it from chatgpt_ads_set_status and chatgpt_ads_create_ad without opening a 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?

Gives explicit when-not guidance ('NOT for pausing/resuming (chatgpt_ads_set_status)'; 'Product-feed ads can't have their creative edited here') and a concrete precondition workflow: previews by default with dryRun true, set false only after the user agrees. It also states the permission gate ('Only works where the user has allowed changes for the ad account'), leaving nothing to inference.

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