Skip to main content
Glama

update_chatgpt_ad_budget

Destructive

Change a launched ChatGPT ad’s lifetime budget. First read get_chatgpt_ads. State the new total and additional reservation/fee and obtain approval. Additional charge = max(0, new budget - fundedBudgetCents) plus that increase × serviceFeePct (fee rounded to minor units). Send that exact additionalChargeCents and the current expectedBudgetCents. A reduction retains the existing reservation and paid fees until settlement. On an uncertain result reuse requestKey and the identical target; do not invent a fresh key.

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>",
      "budgetCents": "<budgetCents>",
      "expectedBudgetCents": "<expectedBudgetCents>",
      "additionalChargeCents": "<additionalChargeCents>",
      "requestKey": "<requestKey>",
      "confirmed": "<confirmed>"
    },
    "name": "update_chatgpt_ad_budget"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmedYesTrue only when the user has approved the stated money terms and shared advertiser identity.
campaignIdYesoriiion campaign ID returned by these tools, never an external account/ad ID.
requestKeyYesGenerate one UUID for this operation and reuse it on retries.
budgetCentsYesLifetime media budget in wallet minor units (50000 means 500.00). Read the currency with get_chatgpt_ads.
expectedBudgetCentsYesThe campaign’s current budgetCents from get_chatgpt_ads; rejects the change if it moved.
additionalChargeCentsYesExact additional charge in minor units, computed as this tool’s description says.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / additionalChargeCents / description
      Added value: +"Exact additional charge in minor units, computed as this tool’s description says."
    • addedInput schema / properties / budgetCents / description
      Added value: +"Lifetime media budget in wallet minor units (50000 means 500.00). Read the currency with get_chatgpt_ads."
    • addedInput schema / properties / campaignId / description
      Added value: +"oriiion campaign ID returned by these tools, never an external account/ad ID."
    • addedInput schema / properties / confirmed / description
      Added value: +"True only when the user has approved the stated money terms and shared advertiser identity."
    • addedInput schema / properties / expectedBudgetCents / description
      Added value: +"The campaign’s current budgetCents from get_chatgpt_ads; rejects the change if it moved."
    • addedInput schema / properties / requestKey / description
      Added value: +"Generate one UUID for this operation and reuse it on retries."
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the annotations (destructiveHint=true, idempotentHint=false) by spelling out the fee formula, that a reduction keeps the existing reservation and paid fees until settlement, and that retries must reuse requestKey with an identical target. This is exactly the safety context an agent needs for an irreversible money mutation, and it is consistent with the declared hints.

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?

Front-loads purpose, then prerequisites, math, edge cases, and retry behavior in roughly five dense sentences with no filler. The fee sentence ('plus that increase × serviceFeePct (fee rounded to minor units)') is slightly compressed but every sentence carries operational weight.

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 destructive, open-world money mutation with no output schema, the description covers prerequisites, approval, fee computation, concurrency check, reduction semantics, and idempotent retries. The main remaining gap is that it never says what a successful call returns or how to verify the new budget afterward.

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 already 100%, so the baseline is 3; the description earns an increment by defining how additionalChargeCents is derived (max(0, new budget − fundedBudgetCents) plus the increase × serviceFeePct, rounded to minor units) and by tying expectedBudgetCents to the live value from get_chatgpt_ads. It does not add meaning for campaignId or budgetCents beyond the schema text.

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 — 'Change a launched ChatGPT ad's lifetime budget' — with the scope qualifier 'launched' that separates it from create/edit/end siblings. The first sentence alone lets an agent decide whether this is the right tool without opening the schema.

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?

Gives a concrete precondition ('First read get_chatgpt_ads'), a required approval step with the money terms stated to the user, and retry guidance for uncertain outcomes. It does not explicitly name an alternative for non-budget edits (e.g. edit_chatgpt_ad) or say what to do for unlaunched ads, so it stops short of full when/when-not coverage.

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