Skip to main content
Glama

Change a Microsoft Advertising ad group bid

msads_set_ad_group_bid
DestructiveIdempotent

Set an ad group's default max CPC bid, used by every keyword in it that has no bid of its own. A change that more than doubles the current bid is refused unless allowLargeChange is true. Returns the previous bid so it can be undone. Use dryRun first when unsure. Keyword and ad group bids steer delivery under Manual or Enhanced CPC bidding; under an automated bid strategy Microsoft may ignore them.

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>",
      "adGroupId": "<adGroupId>",
      "cpcBid": "<cpcBid>"
    },
    "name": "msads_set_ad_group_bid"
  }
}

Input Schema

NameRequiredDescriptionDefault
cpcBidYesNew default max CPC bid, in the account's currency (see msads_list_accounts for the currency).
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.
adGroupIdYesAd group id, from msads_get_ad_groups.
campaignIdYesCampaign id, from msads_get_campaigns.
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. Changed2 schema fields changed
    • addedInput schema / properties / adGroupId / pattern
      Added value: +"^\\d+$"
    • 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?

Goes well beyond the annotations by disclosing the >2x doubling refusal and its override, the return of the previous bid for undo, and the fact that automated bid strategies may nullify the change. Annotations only mark it as a destructive, idempotent, open-world write; the description supplies the actual constraints and side effects an agent 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?

Four tight sentences: what it sets, the guard, the return value, and the safety workflow, with the most important scoping fact front-loaded. No filler or repetition.

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 6-parameter mutation with no output schema, it covers the safety workflow (dryRun), the large-change guard, the undo path (previous bid returned), and the conditions under which the change has no effect. Nothing an agent needs to call it correctly is missing.

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 coverage is 100%, so every parameter including dryRun and allowLargeChange is already documented in the schema. The description adds the inheritance semantics of cpcBid and a rationale for dryRun ordering, but little else beyond what the schema states.

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 ('Set an ad group's default max CPC bid') and immediately defines its scope: the bid inherited by every keyword with no bid of its own. That definition cleanly separates it from the sibling keyword-level bid setter without naming it.

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 actionable when-to guidance ('Use dryRun first when unsure') and a clear when-it-does-not-apply caveat (keyword and ad group bids only steer delivery under Manual or Enhanced CPC; automated strategies may ignore them). It does not explicitly name the keyword-bid alternative, but the inherited-default framing implies the choice.

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