Skip to main content
Glama

Google Ads & Meta Ads

Google Ads: Remove Keywords

gads_remove_keywords
DestructiveIdempotent

Permanently remove keywords from a Google Ads ad group. Removal cannot be undone: re-adding the same text later creates a fresh criterion with no quality score or history, so pause with gads_update_keyword when the keyword may come back. Ids that are already gone are reported as skipped instead of failing the call. Find criterion ids with gads_list_keywords. Up to 50 per call.

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

Input Schema

NameRequiredDescriptionDefault
ad_group_idYesAd group the keywords sit in.
customer_idNoGoogle Ads account to change: customer id or exact account name. Required when you have several accounts — the stored default is never used for a change then.
criterion_idsYesCriterion ids to remove, at most 50 per call.

Output Schema

NameRequiredDescriptionDefault
adGroupIdYesAd group the keywords were removed from.
campaignIdYesCampaign that ad group belongs to.
removedCountYesNumber of criteria actually removed.
removedKeywordsYesTexts of the removed keywords.
removedCriterionIdsYesCriteria that were removed.
skippedCriterionIdsYesIds that were not in the ad group, e.g. already removed by an earlier call.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, yet the description adds real context: irreversibility, the loss of quality score/history when re-adding, and that already-removed ids are reported as skipped rather than erroring — which concretely explains the idempotent 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?

Four short sentences, front-loaded with the destructive nature, then the safer alternative, then the idempotency behavior, then the batch limit. No filler and no repetition.

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 destructive batch mutation the description covers reversibility, the alternative, the id-discovery prerequisite, partial-failure behavior and the batch cap; an output schema exists, so return-value detail is not needed.

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 coverage is 100%, so ad_group_id, customer_id and criterion_ids are already documented, including the multi-account default caveat. The description only repeats the 50-per-call batch cap and points to gads_list_keywords as the id source, adding little beyond the schema.

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 plus scope: 'Permanently remove keywords from a Google Ads ad group.' It also implicitly separates itself from the update path by naming pause-with-gads_update_keyword as the non-destructive alternative.

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 explicit when-not guidance ('pause with gads_update_keyword when the keyword may come back') and a concrete prerequisite step ('Find criterion ids with gads_list_keywords'), so the agent knows both the alternative and the ordering of calls.

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