Skip to main content
Glama

Opus Growth, Ad Platforms MCP Connector

Set Ad Group Targeting

set_ad_group_targeting
Destructive

Sets geographic and language targeting on an AD GROUP — the only place Demand Gen keeps them.

Demand Gen campaigns reject location and language at campaign level: Google keeps both on the ad group instead (measured on a live campaign). That left a Demand Gen campaign impossible to limit geographically through Opus, so it went live on Google's default of every country and spent the budget outside the target market. This tool closes that: pass the ad group and the countries, and it writes the criteria where Google actually reads them.

locations: comma-separated names or geo IDs ('Germany' or '2276' or 'Almanya, Fransa'). negative_locations: places to exclude. languages: codes (tr, en, de) or numeric IDs. mode='add' keeps what is there and adds; mode='replace' removes the existing criteria of the dimensions you pass and writes yours in the SAME request, so the ad group is never left untargeted. confirm=false previews the resolved locations and what would be removed. Read the current state with get_campaign_targeting(ad_group_id=...).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNoadd
confirmNo
countryNoTR
languagesNo
locationsNo
ad_group_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.7/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and non-idempotent behavior. The description adds crucial operational context: mode='replace' removes existing criteria for the dimensions passed and writes new ones in the same request, and confirm=false previews resolved locations and removals before mutation.

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?

The description is front-loaded with purpose and behavior, but it includes a lengthy rationale anecdote about a live campaign failure. That context is useful but not strictly necessary for invocation, so it is slightly verbose rather than maximally concise.

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 complex, destructive 8-parameter tool with an output schema and no schema descriptions, the description is strong: it covers mutation semantics, preview mode, and read-before-write guidance. It could be more complete by clarifying the country parameter and required IDs.

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 0% schema description coverage, the description does substantial work: it explains locations, negative_locations, languages, mode, and confirm. It leaves country, customer_id, and ad_group_id largely implicit, though the required IDs are self-evident from the schema names.

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: sets geographic and language targeting on an ad group. It distinguishes itself from campaign-level targeting by explaining that Demand Gen rejects location and language at campaign level, so an agent can tell it apart from siblings like set_campaign_targeting.

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?

Explains exactly when to use this tool: for Demand Gen ad groups, because campaign-level location and language targeting is rejected. It also names the read alternative, get_campaign_targeting(ad_group_id=...), for checking current state.

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.