Skip to main content
Glama

ads_campaign_targeting_update

DestructiveIdempotent

Change who a Google Ads campaign reaches. Each list you send replaces that list; lists you leave out stay as they are. Ids come from ads_targeting_search (type=location / language). Google Ads only; other networks answer 501.

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

Input Schema

NameRequiredDescriptionDefault
devicesNoDevice bid adjustments
languagesNoLanguage ids
locationsNoNumeric location ids to target
campaign_idYesCampaign id: the Postproxy id (id field of a campaign), not the network's platform_id
profile_group_idNoProfile group hashid, to scope the call to one profile group. Usually not needed.
excluded_locationsNoNumeric location ids to exclude
location_targeting_typeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, and the description earns its keep by explaining exactly what destruction means: each list sent replaces that list wholesale while omitted lists are untouched. It also discloses the 501 failure mode on non-Google networks, which annotations cannot convey. Not covered: permission requirements or whether partial list updates can fail atomically.

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, each doing distinct work: purpose, replacement semantics, id sourcing, and platform restriction. The destructive behavior is front-loaded immediately after the purpose statement with zero filler.

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 7-parameter mutation tool with no output schema, the description covers the two things an agent most needs: what gets overwritten and which sibling supplies valid ids. Remaining gaps are minor given 86% schema coverage, though the semantics of location_targeting_type and exclusions 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.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 86%, so the schema already explains campaign_id provenance and the device bid_modifier range, making the baseline 3. The description only adds meaning to two of seven parameters (where location and language ids come from) and says nothing about location_targeting_type, excluded_locations, or profile_group_id, so it adds little beyond the schema and arguably falls just below baseline.

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 ('Change who a Google Ads campaign reaches') rather than restating the tool name, and pins the scope to Google Ads. The closing line distinguishes it from forecast/browse-style siblings by naming ads_targeting_search as the id source and by declaring other networks get a 501.

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?

Gives concrete preconditions: ids must come from ads_targeting_search with type=location or type=language, and the call only works on Google Ads. It does not explicitly tell the agent to read current targeting first via ads_campaign_targeting_get before overwriting, but the replacement semantics make the risk clear.

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.