Skip to main content
Glama

Change a daily budget

set_campaign_budget
Destructive

Change the daily budget of ONE network on one campaign, applied live to that ad network. This spends real money, so it is bounded: a hard ceiling per day, a limit on how far above the current budget one change may go, and a cap on changes per day. Prefer several small steps to one large jump. It cannot create a campaign, and it cannot enable or pause one — those stay in the AdPlus app on purpose.

REQUIRES EXPLICIT USER CONFIRMATION. Before calling this, show the user the campaign, the network, the current daily budget and the new one, and get their agreement to that exact figure. Then pass current_daily_budget (the figure you showed them) and user_confirmed: true. The server rejects the call if current_daily_budget does not match the live value, so a budget that moved since you last read it fails instead of overwriting a number the user never saw.

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>",
      "network": "<network>",
      "daily_budget": "<daily_budget>",
      "current_daily_budget": "<current_daily_budget>",
      "user_confirmed": "<user_confirmed>"
    },
    "name": "set_campaign_budget"
  }
}

Input Schema

NameRequiredDescriptionDefault
networkYesWhich network's budget to change, e.g. google_ads.
campaign_idYes
daily_budgetYesThe new daily budget in USD.
user_confirmedYesSet true ONLY after the user has seen the exact old and new figures and agreed to the change. Never set it to satisfy the schema.
current_daily_budgetYesThe campaign's CURRENT daily budget on that network in USD, as you showed it to the user. Read it with get_campaign first. The call is refused if this does not match the live value.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and openWorldHint=true, but the description adds material context they cannot: real money is spent, there is a hard per-day ceiling, a bounded jump size, a per-day change cap, and optimistic-concurrency rejection when current_daily_budget is stale. It also explains why overwriting a number the user never saw is prevented.

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-loaded with the action, then constraints, then the confirmation requirement — a sensible escalation order. It is somewhat long and repeats the confirmation rule in both prose and schema, but nearly every sentence carries a distinct constraint an agent needs.

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 high-risk mutation with no output schema, the definition covers cost exposure, rate/ceiling limits, staleness rejection, safety gating and out-of-scope operations. Nothing essential to calling it safely is missing; only the success response shape is unstated, which is minor.

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 80% and already documents daily_budget, user_confirmed and current_daily_budget, so the description mainly reinforces rather than adds. It does contribute the sequencing meaning ('read it with get_campaign first', pass the figure you showed the user), which ties the parameters to the confirmation workflow, though network and campaign_id get no added semantics.

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 the daily budget of ONE network on one campaign') plus the key scope constraint (one network, one campaign, applied live). The contrast with what it cannot do (create, enable, pause) makes it unmistakable against siblings like get_campaign or get_recommendations.

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?

Explicit routing: use several small steps rather than one large jump, and use the AdPlus app for create/enable/pause instead of this tool. It also gives a mandatory pre-call procedure (show the user both figures and get agreement) with the exact parameters that satisfy it.

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