Skip to main content
Glama

chatgpt_ads_campaigns_update_budget

Sets one ChatGPT Ads campaign's daily or lifetime budget in micros, preserving its existing budget type and recording the change for rollback.

Instructions

Sets one ChatGPT Ads campaign's budget amounts. Returns the updated platform object unchanged. Mutates spend: the budget sent replaces the whole budget object, amounts in micros of the account currency (1,000,000 = one unit), and a new amount replaces the old one rather than adding to it. The budget type cannot change here: mureo reads the campaign first (one more request) and refuses, changing nothing, when the keys sent differ from the keys the campaign's budget has (a daily budget stays daily; switch types in Ads Manager). The platform rejects a lifetime budget below the amount already spent, and can reject a daily budget below an ad group's effective bid. STRATEGY.md budget caps apply; pass current_daily_budget and projected_total_daily_budget (currency units) so the increase and account-total caps can be checked. mureo records a reversal in STATE.json action_log, so rollback_apply can undo it. Read the current budget with chatgpt_ads_campaigns_get first.

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": {
      "campaign_id": "<campaign_id>",
      "budget": "<budget>"
    },
    "name": "chatgpt_ads_campaigns_update_budget"
  }
}

Input Schema

NameRequiredDescriptionDefault
budgetYesThe complete new budget, in micros of the account currency (1,000,000 = one unit; 75000000 is 75.00). The platform replaces the whole budget object: a key left out is removed, and an amount replaces the old one rather than adding to it. daily_spend_limit_micros and/or lifetime_spend_limit_micros, each at least 1000000.
reasonNoWhy this change is being made: one or two sentences naming the evidence and the expected effect. Stored in the journal and on the action_log entry this call produces, for the operator and the next session.
approvalNoExternal approval this change carries out (recorded and shown, never verified)
expectedNoExpected effects [{metric, direction, target?, horizon_days?, primary?}], exactly one primary:true when several; metric cpa/cpc/cpl/cpm/conversions/cvr/ctr/roas/cost/spend/clicks/impressions; direction up/down/hold.
campaign_idYesCampaign id as the API returns it (e.g. 'cmpn_123'). Find it with the matching list tool.
decision_idNoA proposed decision this change carries out.
current_daily_budgetNoThe campaign's current daily budget, in account-currency units (75.0 is 75.00), NOT micros. Read by mureo's STRATEGY.md budget caps only; never sent to the platform.
projected_total_daily_budgetNoThe account's total daily budget across campaigns after this change, in account-currency units (75.0 is 75.00), NOT micros. Read by mureo's STRATEGY.md budget caps only; never sent to the platform.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.46.0

TDQS

A4.8/5.0
Behavior5/5

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

The single annotation (readOnlyHint=false) says only that this writes; the description goes far beyond it by disclosing replacement rather than additive semantics, that a pre-read request is made and the call refuses with no change on mismatched keys, which platform-side validations can reject the value, and that an action_log reversal entry is written. It also states the return behavior, which no output schema covers.

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?

It is front-loaded with the action and the mutation semantics before the caveats, and nearly every sentence carries an operational fact. The sentences are long and clause-stacked, which costs readability, but little is filler.

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 mutating eight-parameter tool with nested objects and no output schema, the description covers mutation semantics, refusal conditions, cap requirements, audit/reversal behavior, and the return value. Nothing an agent needs to invoke it correctly or safely 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; the description adds meaning by tying the budget keys to the type-change refusal rule and by explaining that current_daily_budget and projected_total_daily_budget are consumed only by mureo's STRATEGY.md cap checks and never sent to the platform. That is genuine semantic context beyond field-level docs, though most field meanings remain schema-owned.

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?

"Sets one ChatGPT Ads campaign's budget amounts" names a specific verb (sets), a specific resource (budget amounts), and a specific scope (one campaign). It is cleanly distinguishable from the generic chatgpt_ads_campaigns_update and from the bid-level sibling chatgpt_ads_ad_groups_update_bid without opening any 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 states required sequencing ("Read the current budget with chatgpt_ads_campaigns_get first"), what this call cannot do and where to do it instead ("switch types in Ads Manager"), and the correct path for undo ("mureo records a reversal ... so rollback_apply can undo it"). When-to-use, when-not, and alternatives are all explicit.

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