Skip to main content
Glama

Change a Microsoft Advertising bid adjustment

msads_set_bid_adjustment
DestructiveIdempotent

Set a campaign's bid adjustment, in percent (20 = bid 20% more, -20 = 20% less, 0 = none), for a device, a location or a day/time slot. For devices this creates the adjustment if there is none. For a location or a day/time slot only an EXISTING one can be changed (see msads_get_targeting): adding one would also change where or when ads show, which this tool does not do. An adjustment above +100, or -100 on a device (which stops ads on it), needs allowLargeChange. Returns the previous adjustment so it can be restored. Use dryRun first when unsure.

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>",
      "criterion": "<criterion>",
      "adjustmentPercent": "<adjustmentPercent>"
    },
    "name": "msads_set_bid_adjustment"
  }
}

Input Schema

NameRequiredDescriptionDefault
dayNoFor DayTime: the day.
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.
toHourNoFor DayTime: end hour, 1-24.
fromHourNoFor DayTime: start hour, 0-23.
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.
criterionYesWhat the adjustment applies to.
campaignIdYesCampaign id, from msads_get_campaigns.
deviceNameNoFor Device: Computers, Smartphones or Tablets.
locationIdNoFor Location: the Microsoft location id (shown by msads_get_targeting).
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.
adjustmentPercentYesPercent change to bids: 20 = +20%, -20 = -20%, 0 = none.

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.9/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, but the description goes well beyond them: it discloses the create-vs-modify asymmetry per criterion type, the -100-on-device consequence (stops ads), the >+100 / allowLargeChange guardrail, and that the previous value is returned so it can be restored. That is exactly the reversal and blast-radius context a destructive mutation needs.

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?

Front-loads the core action and unit semantics, then layers the criterion-specific rules and the dryRun recommendation in descending order of importance. Parentheticals are information-bearing rather than filler, and no sentence repeats the title or the schema verbatim.

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 an 11-parameter destructive mutation with no output schema, the definition covers what changes, what does not change (targeting membership), the safety escape hatches, and the returned value. An agent can plausibly call this correctly without consulting any other source beyond msads_get_targeting for location ids.

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 would be 3, but the description adds conditional meaning the schema does not encode: which of deviceName/locationId/day/fromHour/toHour are relevant depends on criterion, and allowLargeChange only matters above +100 or at -100 on a device. It stops short of explaining the hour-range pairing or the accountId multi-account case, which the schema already handles.

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?

Names a specific verb (set) and precise resource (a campaign's bid adjustment in percent) plus the three targeting dimensions it applies to: device, location, day/time. The percent semantics ('20 = bid 20% more, -20 = 20% less') remove any ambiguity about units or sign, which an agent cannot infer from the name alone.

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?

Gives explicit when-to-use routing: for Location and DayTime only an EXISTING adjustment can be changed, and it points to msads_get_targeting for the read/inspect path while warning that creating one would change where or when ads show. It also prescribes a workflow ('Use dryRun first when unsure') and conditions for allowLargeChange, so the agent knows both the prerequisites and the escalation path.

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