Skip to main content
Glama

Opus Growth, Ad Platforms MCP Connector

Set Campaign Targeting

set_campaign_targeting
Destructive

Sets geographic and language targeting on a campaign. locations: comma-separated location names or geo IDs (e.g. 'Türkiye' or 'İstanbul, Ankara' or '2792'). negative_locations: locations to exclude. languages: comma-separated language codes (tr, en, de...) or numeric IDs. mode='add' (default) KEEPS the campaign's existing targeting and only adds to it — targeting Ankara while Türkiye is still targeted does NOT narrow reach, Google takes the union. mode='replace' overwrites: every existing criterion of the dimensions you pass (positive locations if you pass locations, exclusions if you pass negative_locations, languages if you pass languages) is removed and replaced with your list, in a single request so the campaign is never left untargeted. Use replace to go from 'all of Türkiye' to 'only Ankara'. Other dimensions are untouched. A campaign without targeting targets the entire world. confirm=false → preview of the resolved locations + what would be removed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNoadd
confirmNo
countryNoTR
languagesNo
locationsNo
campaign_idYes
customer_idYes
negative_locationsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. Added
  4. Removed
  5. Added
  6. Removed
  7. Added
  8. Removed
  9. Added
  10. Removed
  11. Added
  12. Removed
  13. Added
  14. Removed
  15. Added
  16. Removed
  17. Added
  18. Removed
  19. Added
  20. Removed
  21. Added
  22. Removed
  23. Added
  24. Removed
  25. Added
  26. Removed
  27. Added
  28. Removed
  29. Added
  30. Removed
  31. Added
  32. Removed
  33. Added
  34. Removed
  35. Added
  36. Removed
  37. Added
  38. Removed
  39. Added

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the destructiveHint annotation: it discloses that add-mode takes the union rather than narrowing reach, that replace removes and replaces only the dimensions you pass, that replacement happens in a single request so the campaign is never left untargeted, that other dimensions are untouched, that an untargeted campaign targets the whole world, and that confirm=false yields a preview. This is exactly the behavioral context an agent needs for a mutating tool.

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-loads the core purpose, then organizes the rest around named parameters with concrete examples rather than boilerplate. It is long but dense and every clause adds operative detail; the only mild cost is length for a single-purpose tool.

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 an 8-parameter destructive write with an output schema present (so return values need no explanation), the description covers the risky semantics thoroughly. The remaining hole is the undocumented country parameter and the required IDs, which the schema names but never explains.

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 it does document locations (with formats/examples), negative_locations, languages, mode semantics, and confirm behavior. It omits the country parameter's role and only implicitly covers customer_id/campaign_id, so a small gap remains.

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 (Sets) plus resource (geographic and language targeting on a campaign), and the surrounding prose makes clear it is distinct from read siblings like get_campaign_targeting and from set_ad_group_targeting. An agent can identify the operation immediately.

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?

Explicitly explains mode='add' vs mode='replace' semantics and gives a concrete selection case ('Use replace to go from all of Türkiye to only Ankara'), which is the key decision for this tool. It does not explicitly compare against sibling tools, but for the core mode decision the guidance is 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.