Skip to main content
Glama

Add Microsoft Advertising keywords

msads_add_keywords
Idempotent

Add keywords to an ad group. They are created PAUSED unless status is 'Active', so nothing starts spending until someone turns it on. Keywords already in the ad group with the same text and match type are skipped. Each keyword can have its own bid (otherwise it uses the ad group's) and final URL. Up to 50 per call. Use dryRun to see what would be added.

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>",
      "keywords": "<keywords>"
    },
    "name": "msads_add_keywords"
  }
}

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.
statusNoPaused (default) or Active.Paused
keywordsYes
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.

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

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

Beyond the annotations (readOnlyHint=false, idempotentHint=true, destructiveHint=false, openWorldHint=true), the description discloses the key behaviors: keywords land PAUSED so no spend starts, duplicates with the same text and match type are skipped, and there is a 50-per-call cap. It also explains bid inheritance from the ad group when no per-keyword bid is supplied.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Five short sentences, front-loaded with the action and the most consequential behavior (created paused). A couple of facts (50 per call, match type) restate schema constraints, but nothing is padding.

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?

For a five-parameter mutation tool with no output schema, the description covers safety, idempotency, batching, and defaults well. The main remaining gap is what the call returns (e.g., created keyword ids), which the agent would have to discover empirically.

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 80%, so the schema carries most parameter documentation and the baseline is 3. The description adds real meaning on top: the default-vs-Active status gate, the ad-group bid fallback, per-keyword final URLs, and the dedupe key (text + match type).

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?

"Add keywords to an ad group" gives a specific verb and resource, and the surrounding sentences pin down scope (per-keyword bid/final URL, max 50). It does not explicitly name the sibling negative-keyword tools, so the positive-vs-negative distinction is left to the reader, but the operation itself is unambiguous.

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 tells the agent to use dryRun to preview and states the default pause behavior, which is clear operational context for calling it. It stops short of explicit when-not-to-use guidance or naming alternatives such as the negative-keyword or keyword-listing tools.

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