Skip to main content
Glama

Link or unlink a Microsoft Advertising campaign and a shared budget

msads_set_campaign_budget_link
DestructiveIdempotent

Move a campaign onto a shared budget (attach), or give it its own daily budget again (detach). Attaching makes the campaign spend from the shared amount, so if that is more than double its current budget it needs allowLargeChange. Detaching needs the campaign's new own dailyBudget. Returns the previous setup so it can be restored. Use dryRun first.

Input Schema

NameRequiredDescriptionDefault
actionYes
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.
dailyBudgetNoFor detach: the campaign's own daily budget from now on.
sharedBudgetIdNoFor attach: the shared budget, from msads_get_budgets.
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. Added

TDQS

A4.3/5.0
Behavior5/5

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

Goes well beyond the destructive/idempotent/openWorld annotations: attaching makes the campaign draw from a shared amount, the >2x guard exists and can be overridden deliberately, detaching requires a replacement budget, and the call returns the prior setup so it can be restored. That is exactly the consequence-and-reversibility information an agent needs before a destructive mutation.

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?

Three tight sentences: the action pair, then each action's prerequisite in the same order, then the return value and the dryRun recommendation. Every sentence carries distinct information with no repetition of schema text.

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?

With no output schema, the description steps in to say the prior configuration is returned, and it covers both branches plus the override condition. Minor gaps remain: what happens to the campaign's own budget on attach, and whether detaching requires the campaign to have been on a shared budget first.

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 86%, so 3 would be the baseline. The description earns above that by tying parameters to branches — allowLargeChange to the attach case with the >2x trigger, dailyBudget to detach — and by endorsing dryRun before mutating. It doesn't restate accountId or the budget id sources, which the schema already covers.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource — moving a campaign onto or off a shared budget — and separates the two directions (attach/detach) with their effects. It does not name the closest siblings (msads_set_campaign_budget, msads_set_shared_budget_amount), so an agent must infer the boundary from the title rather than from explicit contrast.

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 clear operational conditions: allowLargeChange is required when the shared amount exceeds double the current budget, and detach needs the campaign's new dailyBudget. It also recommends 'Use dryRun first.' It stops short of saying when to pick this tool over msads_set_campaign_budget or msads_create_shared_budget.

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