Skip to main content
Glama

ADS MCP

Set Campaign Locations

set_campaign_locations

Set target and/or negative locations on a campaign using geo criterion IDs. Works on both Search and PMax campaigns. Common IDs: US=2840, UK=2826, CA=2124, AU=2036, FI=2246, DE=2276. Use exclude_preset_locations=true to automatically add negative locations for India(2356), Nepal(2524), Pakistan(2586), Bangladesh(2050), Afghanistan(2004), Sri Lanka(2144).

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": {
      "user_intent": "<user_intent>",
      "campaign_id": "<campaign_id>"
    },
    "name": "set_campaign_locations"
  }
}

Input Schema

NameRequiredDescriptionDefault
campaign_idYesCampaign ID to set locations on.
customer_idNo
user_intentYes
target_location_idsNoOptional. Geo criterion IDs to TARGET e.g. ['2840'] for USA.
negative_location_idsNoOptional. Geo criterion IDs to EXCLUDE.
exclude_preset_locationsNoSet 'true' to automatically add negative locations for India, Nepal, Pakistan, Bangladesh, Afghanistan, Sri Lanka.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations only declare readOnlyHint=false and destructiveHint=false, leaving the mutation semantics unexplained. Critically, the description never says whether supplying target_location_ids replaces or appends to existing targeting, or whether omitting negative_location_ids clears existing negatives – the most important behavioral fact for a mutation tool. It does add genuinely useful reference data (common geo IDs, the full preset exclusion list) that annotations cannot convey.

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 purpose, then reference data in two compact sentences with no filler. The ID lists are dense but functional; a small amount of structure (e.g. separating the preset list) would aid scanning.

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

Completeness3/5

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

For a 6-parameter mutation tool with no output schema, the description covers inputs and scope but omits replace-vs-append semantics, permission requirements, and any indication of what the call returns or how failures surface. Adequate to invoke, not adequate to invoke confidently.

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?

With 67% schema coverage, the description compensates well: it enumerates the concrete geo criterion IDs (US=2840, UK=2826, etc.) and spells out exactly which six countries exclude_preset_locations adds, none of which are in the schema. customer_id and user_intent remain undocumented in both places, keeping it short of a 5.

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?

Specific verb ('Set') plus resource ('target and/or negative locations on a campaign') plus the mechanism ('geo criterion IDs'). The clause 'Works on both Search and PMax campaigns' implicitly scopes out Demand Gen, which has a sibling tool, though no sibling is named explicitly.

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?

The campaign-type scope ('Search and PMax') gives an implied selection condition, and the exclude_preset_locations sentence tells the agent one concrete usage pattern. However there is no explicit when-not guidance, no prerequisites (e.g. required permissions or whether the campaign must already exist), and no pointer to set_demand_gen_locations for other campaign types.

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.