Skip to main content
Glama

List Microsoft Advertising negative keywords

msads_get_negative_keywords
Read-only

List the negative keywords on a campaign, or on one of its ad groups when adGroupId is given: id, text and match type. Negatives block searches; check these before adding more with msads_add_negative_keywords or when wondering why a search term gets no traffic. Shared negative keyword lists are not included.

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

Input Schema

NameRequiredDescriptionDefault
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. Omit for the campaign's own negatives.
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.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered; the description adds real context beyond that by explaining the semantic effect of negatives ('Negatives block searches') and by bounding the result set to exclude shared negative keyword lists. It does not mention pagination or response size limits, which keeps it from a 5.

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?

Two sentences, each carrying distinct information: scope plus return fields first, then the usage rationale and the exclusion. No redundant restatement of the title or annotations.

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 three-parameter read tool with no output schema, the description covers what is returned, when to call it, which sibling to use for writes, and what is out of scope. Nothing an agent needs in order to call it correctly appears to be missing.

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 is 3, but the description adds meaning by framing adGroupId as a scope switch (campaign-level vs. ad-group-level) rather than a mere filter, and by noting that shared lists fall outside the result set regardless of parameters. It does not explain the accountId multi-account condition, though the schema does.

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 ('List the negative keywords on a campaign, or on one of its ad groups when adGroupId is given') and enumerates the returned fields (id, text, match type). The scope difference between campaign-level and ad-group-level negatives is explicit, so it is distinguishable from msads_get_keywords and the add/remove siblings.

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 concrete when-to-use guidance: check these before adding more via msads_add_negative_keywords, or when diagnosing a search term that gets no traffic. It also states an explicit exclusion ('Shared negative keyword lists are not included'), which prevents a false-negative conclusion.

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