Skip to main content
Glama

ADS MCP

Add Google Segments (affinity / in-market) to Search Campaign

add_google_segments_to_campaign

Adds GOOGLE-DEFINED audience segments (affinity and in-market) to a Search campaign in bulk. Use when the user says 'Google audiences', 'all Google audiences', 'affinity', 'in-market' or 'predefined segments'. Does NOT add the advertiser's own remarketing lists (site visitors, converters, customer lists) — use add_remarketing_lists_to_campaign for those. If the user only says 'audience' without saying which kind, ASK: (a) their own remarketing lists, or (b) Google's affinity/in-market segments? Adds them in OBSERVATION mode (bid adjustments only, no reach restriction): if the campaign has no audience setting the tool sets it to Observation first, because the API otherwise treats it as Targeting. If the campaign is explicitly in TARGETING mode the tool refuses unless allow_non_observation=true, because ads would then show ONLY to people in these segments. Adds immediately (no preview step); show the user your plan beforehand if they want one. Skips segments already attached. Search campaigns only.

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": "add_google_segments_to_campaign"
  }
}

Input Schema

NameRequiredDescriptionDefault
typesNoAFFINITY and/or IN_MARKET. Default: both.
campaign_idYesSearch campaign ID from list_campaigns.
customer_idNo
user_intentYes
bid_modifierNoOptional bid multiplier 0.1-10, e.g. '1.2' = +20%. Omit for no bid adjustment (typical for pure observation).
name_containsNoOptional. Only segments whose name contains this text, e.g. 'Autos'.
allow_non_observationNoDefault false. Set true only if the user explicitly wants TARGETING mode (ads only to these segments); the tool then leaves the campaign setting untouched.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=false and destructiveHint=false, so the description carries the burden and does so well: it discloses the auto-set of the campaign audience setting to Observation, the refusal in explicit TARGETING mode with the allow_non_observation escape hatch, that changes apply immediately with no preview, and that already-attached segments are skipped. These are precisely the non-obvious behaviors an agent needs before mutating a live campaign.

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?

Front-loaded with purpose, then exclusions, then disambiguation, then behavioral caveats — a sensible escalation order. Despite being dense, every sentence carries actionable information (trigger words, refusal condition, no-preview warning), with no filler or restatement of the name.

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 prerequisites, mode side effects, idempotency (skips attached segments), and scope limits. It stops short of describing what the call returns or how partial failures are reported, which an agent would need to confirm success, but the call-time guidance is otherwise complete.

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 71%, and the description adds real meaning beyond it: it explains that allow_non_observation exists because the tool otherwise refuses on TARGETING campaigns, and that observation mode means bid adjustments only with no reach restriction, which clarifies why bid_modifier is typically omitted. It does not spell out types values or name_contains filtering in prose, leaving some semantics to 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 ('Adds GOOGLE-DEFINED audience segments (affinity and in-market) to a Search campaign in bulk') and immediately scopes it to Search campaigns. It explicitly names the sibling it is not — add_remarketing_lists_to_campaign — so an agent can discriminate without opening either schema.

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 concrete trigger phrases ('Google audiences', 'affinity', 'in-market', 'predefined segments'), an explicit exclusion with the correct alternative tool, and a disambiguation rule (ask the user which kind of audience when ambiguous). This is exactly the when/when-not/alternative coverage the dimension asks for.

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.