Skip to main content
Glama

add_negative_keywords

Add negative keywords at the campaign level to exclude unwanted search terms from serving. Specify campaign ID, keyword text, and match types to control ad spend.

Instructions

Add one or more negative keywords at campaign level via CampaignCriterionService.

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": {
      "campaign_id": "<campaign_id>",
      "keywords": "<keywords>"
    },
    "name": "add_negative_keywords"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNoMust be true to execute.
keywordsYesList of negative keywords with text and match_type
campaign_idYesCampaign 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.2/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 burden, and it is silent on every behavioral trait that matters for a mutation: that execution is gated on confirm=true, whether duplicate negatives are merged or rejected, and what happens on partial failure. It only reveals the backing service name (CampaignCriterionService), which is 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.

Conciseness5/5

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

A single compact sentence with scope front-loaded and zero filler. Nothing superfluous is present.

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?

For a write operation with no annotations, the description is inadequate: it never states that the call is refused unless confirm is true, nor what the tool returns or how failures surface. The output schema partly covers return values, but the safety gate and mutation semantics are left entirely to the schema.

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 campaign_id, keywords, match_type and customer_id are already documented in the schema and the description adds no syntax or format detail on top. Baseline 3 applies since there is nothing for the description to compensate for.

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?

Names a specific verb and resource ('Add one or more negative keywords') and pins the scope in the same sentence ('at campaign level'). That scope phrase implicitly separates it from the ad-group-level sibling, though the sibling is never named.

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?

Usage is only implied: 'at campaign level' tells the agent the targeting context, so an agent can infer this is not the ad-group variant. There is no explicit when/when-not statement, no named alternative, and no mention of prerequisites such as campaign state or existing keyword conflicts.

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