Skip to main content
Glama

Google Ads: add to negative keyword list

add_to_negative_keyword_list

Adds negative keywords to an existing shared negative keyword list.

Every campaign the list is attached to picks the new words up at once.
remove_from_negative_keyword_list takes words back out. Find existing
lists with the search tool, e.g.
SELECT shared_set.id, shared_set.name, shared_set.member_count
FROM shared_set WHERE shared_set.type = 'NEGATIVE_KEYWORDS'
AND shared_set.status = 'ENABLED'.

Args:
    customer_id: The Google Ads customer ID (numbers only, no hyphens).
    shared_set_id: The ID of the negative keyword list.
    keywords: List of keyword objects, each with:
        - text: The keyword text (e.g., "jobs").
        - match_type: One of: EXACT, PHRASE, BROAD. Default: BROAD.
        Exact duplicates are dropped; large lists are sent in batches.

Returns:
    Dictionary with the created keyword resource names and count.

Tools revision: d80f65c0.

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": {
      "customer_id": "<customer_id>",
      "shared_set_id": "<shared_set_id>",
      "keywords": "<keywords>"
    },
    "name": "add_to_negative_keyword_list"
  }
}

Input Schema

NameRequiredDescriptionDefault
keywordsYes
customer_idYes
shared_set_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already disclose a non-read-only, non-destructive, non-idempotent mutation, and the description adds meaningful traits on top: duplicates are silently dropped, large inputs are batched, and the effect propagates to every attached campaign at once. The propagation blast radius is exactly the kind of context annotations cannot convey, though permission requirements and failure behavior are unstated.

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?

Front-loaded with the action, then behavior, then the sibling/alternative, then structured Args and Returns. The inline SQL example is longer than strictly necessary but earns its place by making shared_set_id discovery concrete.

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 3-parameter mutation with a nested array and zero schema documentation, the description covers what to pass, where the ID comes from, how it behaves at scale, and what is returned. It falls short only on prerequisites (permissions, whether the caller needs list ownership) and on disambiguation from adjacent negative-keyword tools.

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 0%, so the description carries the full burden and does so well: customer_id format (digits only, no hyphens), what shared_set_id refers to, and the nested keyword object with its text field plus the EXACT/PHRASE/BROAD enum and a BROAD default that the schema does not encode. Minor gap: it does not state that text is required or what happens with unexpected keys the loose schema would allow.

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?

States a specific verb and resource ('Adds negative keywords to an existing shared negative keyword list') and makes the scope concrete: the words apply to every campaign the list is attached to. It does not, however, distinguish itself from the close siblings add_negative_keywords and add_account_negatives, which an agent could easily confuse with this tool.

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?

Clear operational context: the list must already exist, its ID is discoverable via the search tool (with a concrete query), and removal is routed to remove_from_negative_keyword_list. What is missing is explicit when-not guidance against the campaign-level and account-level negative keyword tools, which is the main selection risk here.

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