Skip to main content
Glama

edit_chatgpt_ad

Edit selected fields of a ChatGPT ad draft; pass its latest revision from get_chatgpt_ads. For a launched ad, creative/targeting/bid/duration changes require replacement=true and a new requestKey: this creates a replacement DRAFT and leaves the original unchanged. Clearly explain this, show the new quote, then start the replacement and end the original only as authorized. Use update_chatgpt_ad_budget for a live budget-only edit.

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": {
      "campaignId": "<campaignId>",
      "changes": "<changes>"
    },
    "name": "edit_chatgpt_ad"
  }
}

Input Schema

NameRequiredDescriptionDefault
changesYesOnly the ad fields to change.
revisionNoThe draft’s latest revision UUID from get_chatgpt_ads; rejects the edit if it changed meanwhile.
campaignIdYesoriiion campaign ID returned by these tools, never an external account/ad ID.
requestKeyNoGenerate one UUID for this operation and reuse it on retries.
replacementNoRequired true to change creative/targeting/bid/duration of a launched ad: creates a replacement draft. Default false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / properties / campaignId / description
      Added value: +"oriiion campaign ID returned by these tools, never an external account/ad ID."
    • addedInput schema / properties / changes / description
      Added value: +"Only the ad fields to change."
    • addedInput schema / properties / replacement / description
      Added value: +"Required true to change creative/targeting/bid/duration of a launched ad: creates a replacement draft. Default false."
    • addedInput schema / properties / requestKey / description
      Added value: +"Generate one UUID for this operation and reuse it on retries."
    • addedInput schema / properties / revision / description
      Added value: +"The draft’s latest revision UUID from get_chatgpt_ads; rejects the edit if it changed meanwhile."
  2. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Goes well beyond the annotations: it discloses that a replacement edit creates a DRAFT and leaves the original unchanged, that the revision token causes rejection if the draft moved underneath, and that the agent should explain the consequences and show the new quote before proceeding. Two minor tensions are left unclarified: the description's instruction to "end the original" reads as destructive against destructiveHint=false, and the retry-oriented requestKey sits awkwardly with idempotentHint=false.

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 sentences, all load-bearing, with the draft-edit scope front-loaded and the replacement caveat second. The middle sentence is somewhat run-on with stacked clauses (explain, show quote, start, end), but no sentence is filler.

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 mutation tool with no output schema and a nested changes object, the description covers the risky paths an agent could get wrong — revision staleness, draft-vs-live fork, retry keys. It stops short of saying what the call returns (the new quote is referenced but not stated as a return value) or whether an edited draft must be re-approved before launch.

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 would be 3, but the description adds intent-level meaning the schema cannot: replacement=true is scoped to launched ads and specific field classes, and requestKey is tied to retry behavior rather than just being a UUID. The interaction between revision and concurrent edits is also spelled out beyond the schema's terse note.

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?

States a specific verb and resource ("Edit selected fields of a ChatGPT ad draft") and immediately scopes which object is editable (a draft, not a launched ad). The final sentence names the sibling it is not — update_chatgpt_ad_budget — for the live-budget case, so an agent can route correctly 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?

Gives explicit preconditions (pass the latest revision from get_chatgpt_ads) and an explicit fork: for a launched ad, creative/targeting/bid/duration changes require replacement=true plus a new requestKey. It also names the alternative tool for budget-only live edits, so both the when and the when-not are covered.

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