Skip to main content
Glama

add_ad_group_negative_keywords

Add negative keywords to an ad group to exclude irrelevant search terms and reduce wasted ad spend. Specify keyword text and match type, with confirmation required to execute.

Instructions

Add one or more negative keywords at ad group level via AdGroupCriterionService.

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": {
      "ad_group_id": "<ad_group_id>",
      "keywords": "<keywords>"
    },
    "name": "add_ad_group_negative_keywords"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNoMust be true to execute.
keywordsYesList of negative keywords with text and match_type
ad_group_idYesAd group ID to add negative keywords to
customer_idNoGoogle Ads customer ID (no dashes). Uses active account if not provided.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.1

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, and it discloses almost nothing beyond the mutation implied by "Add". It never mentions the confirm-gate required by the schema, whether the change is reversible, what happens on duplicate keywords, or any permission/rate considerations; "via AdGroupCriterionService" is an implementation detail rather than agent-useful behavior.

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?

A single front-loaded sentence with the action and scope stated first and no filler. The trailing "via AdGroupCriterionService" adds little for an agent and is the only mildly wasteful element.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is a mutating tool with no annotations, and the description omits the confirm requirement, the effect of adding an exclusion, and any failure/duplicate semantics. Parameter documentation and an output schema cover the mechanical side, but the behavioral gap is significant for a write operation.

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 explains ad_group_id, keywords, match_type, customer_id and the confirm flag; the description adds only the plural "one or more" hint for the keywords list. Per the baseline rule, 3 is appropriate when the schema does the heavy lifting.

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?

The description gives a specific verb (Add), resource (negative keywords) and scope (ad group level), which lets an agent distinguish it from a campaign-level keyword tool. It does not explicitly name the sibling alternative (e.g. add_negative_keywords) that would contrast the scope, so it stops short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

"At ad group level" implies the usage context versus account/campaign-level variants, but there is no explicit when-to-use/when-not-to-use statement or named alternative. An agent must infer the routing decision from the scope phrase alone.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools