Skip to main content
Glama

Change a Microsoft Advertising campaign's daily budget

msads_set_campaign_budget
DestructiveIdempotent

Set a campaign's daily budget. This directly changes how much the campaign can spend per day. Only campaigns with their own standard daily budget can be changed here: a campaign on a shared budget, or a lifetime or accelerated budget, is refused with an explanation. A change that more than doubles the budget is refused unless allowLargeChange is true. Returns the previous budget so it can be undone. Use dryRun first when unsure. Microsoft treats a daily budget as a target: actual daily spend can run up to about 20% over it.

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>",
      "dailyBudget": "<dailyBudget>"
    },
    "name": "msads_set_campaign_budget"
  }
}

Input Schema

NameRequiredDescriptionDefault
dryRunNoPreview only. Microsoft has no validate-only mode, so Caybl reads the current value and shows exactly what would change (before and after) without sending anything. Free, and cannot affect spend.
accountIdNoMicrosoft Advertising account id or account number (e.g. 'F123ABCD'), as listed by msads_list_accounts. Only needed when the sign-in can reach more than one account.
campaignIdYesCampaign id, from msads_get_campaigns.
dailyBudgetYesNew daily budget, in the account's currency (see msads_list_accounts for the currency).
allowLargeChangeNoA change that more than doubles the current value is refused unless this is true. Set it only when the increase is deliberate and the user has confirmed it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / campaignId / pattern
      Added value: +"^\\d+$"
  2. Added

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations (destructive=true, idempotent=true, openWorld=true) it discloses which campaign configurations are rejected and why, the >2x guard and its escape hatch, that the previous budget is returned for undo, and the important Microsoft semantic that actual spend may run ~20% over the stated target. That is exactly the context an agent needs to avoid a surprising spend outcome.

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?

Five short sentences, front-loaded with the action, then eligibility, then guardrails, then safety advice, then the spend-target caveat. No sentence is redundant and none could be dropped without losing a distinct fact.

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 destructive single-field mutation with no output schema, the definition covers the eligibility preconditions, the confirmation guard, the dry-run path, the undo affordance, and the real-world effect on spend. An agent can decide whether to call it and how to call it safely without further lookup.

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

Parameters3/5

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

Schema description coverage is 100%, so every parameter (dryRun, accountId, campaignId, dailyBudget, allowLargeChange) is already documented in structured form, including the doubling threshold. The description adds behavioral framing around dryRun and large changes but no new parameter-level syntax beyond the schema; baseline 3 applies.

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?

"Set a campaign's daily budget" is a precise verb plus resource, and the follow-up sentence fixes the scope (per-day spend for one campaign). The definition also draws a hard line against shared-budget and lifetime/accelerated budgets, which is what separates it from budget tools like msads_set_campaign_budget_link or msads_set_shared_budget_amount.

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?

It gives clear when-to-use guidance ("Use dryRun first when unsure"), states the eligibility exclusions that cause a refusal, and explains the allowLargeChange condition for deliberate increases. What it lacks is an explicit naming of the sibling tool to use instead for shared-budget campaigns, so the routing is implied rather than spelled out.

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