Skip to main content
Glama

Change a Microsoft Advertising keyword bid

msads_set_keyword_bid
DestructiveIdempotent

Set one keyword's own max CPC bid. This changes what the keyword can spend per click. 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": {
      "adGroupId": "<adGroupId>",
      "keywordId": "<keywordId>",
      "bid": "<bid>"
    },
    "name": "msads_set_keyword_bid"
  }
}

Input Schema

NameRequiredDescriptionDefault
bidYesNew 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.
keywordIdYesKeyword id, from msads_get_keywords.
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 / adGroupId / 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?

The description adds substantial behavior beyond the annotations: it explains the spend impact, the large-change refusal unless allowLargeChange is true, the previous-bid return enabling undo, the dryRun preview, and the automated bidding caveat. These details make the mutation's risks and safeguards clear.

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?

The description is front-loaded with the core action, followed by guardrails, return behavior, dryRun advice, and bidding context. Every sentence adds useful information without repetition or filler.

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 bid mutation with no output schema, the description covers spend impact, large-change protection, undo ability, dryRun preview, and automated bidding caveats. Combined with full schema coverage and strong annotations, it gives the agent enough context to call the tool correctly.

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 the schema already documents all six parameters thoroughly. The description reinforces the large-change guard and dryRun usage, but most parameter-specific meaning remains in the schema rather than in the description.

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?

The description states a specific verb and resource: "Set one keyword's own max CPC bid." It explicitly scopes the operation to a single keyword and distinguishes it from ad group bidding context, so an agent can identify the tool without opening the schema.

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?

The description gives clear usage context: keyword and ad group bids matter under Manual or Enhanced CPC, while automated bid strategies may ignore them, and it recommends dryRun when unsure. It does not explicitly route the agent to the sibling ad-group bid tool, but the guidance is otherwise strong.

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