Skip to main content
Glama

Remove Microsoft Advertising negative keywords

msads_remove_negative_keywords
DestructiveIdempotent

Remove negative keywords from a campaign (or an ad group when adGroupId is given), so ads can show for those searches again. Match them by text; add matchType to remove only that match type. Removing negatives can increase traffic and spend. Returns exactly what was removed so it can be put back with msads_add_negative_keywords. 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>",
      "keywords": "<keywords>"
    },
    "name": "msads_remove_negative_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.
keywordsYesThe negative keyword texts to remove.
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.
adGroupIdNoAd group id: remove the ad group's own negatives instead.
matchTypeNoOnly remove negatives with this match type.
campaignIdYesCampaign id, from msads_get_campaigns.

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.4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so the description adds context rather than safety basics: it warns that removing negatives can increase traffic and spend, and that the call returns exactly what was removed so it is reversible. It does not say what happens when some keyword texts do not match existing negatives (partial failure or error), which is the main behavioral unknown for a destructive batch call.

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 short sentences, front-loaded with the action and target scope, then the consequence warning, then recovery and the dryRun recommendation. No sentence is filler.

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 supplies the key return-value fact (exactly what was removed, reusable with the add tool) and the spend impact. It is nearly complete for a destructive batch tool; only the behavior for unmatched keyword texts is unaddressed.

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 a baseline of 3 applies, but the description adds real semantics: keywords are matched by text, matchType restricts removal to that one match type, and adGroupId retargets the operation to an ad group. Only the 50-item cap and dryRun's preview mechanics are left to the schema, where they are already well documented.

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 ("Remove negative keywords") plus the exact scope switch: campaign by default, ad group when adGroupId is given. This is clearly distinguishable from the add/get negative keyword siblings named in the text.

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 concrete operational guidance: use dryRun first when unsure, use matchType to narrow the removal, and use msads_add_negative_keywords to undo. It stops short of pointing to msads_get_negative_keywords for verifying current negatives before removing, which would have made the routing explicit.

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