Skip to main content
Glama

ADS MCP

Detach Audience from All Campaigns

detach_audience
Destructive

Remove an audience (user list) from every campaign criterion and ad group criterion that uses it. Required before deleting an audience that is still in use. ALWAYS show the user which campaigns and ad groups will be affected and get explicit approval before calling this.

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

Input Schema

NameRequiredDescriptionDefault
customer_idNoGoogle Ads customer ID.
user_intentYes
user_list_idYesThe user list resource name or numeric ID of the audience to detach.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false; the description adds real value on top by disclosing the blast radius (all campaign and ad group criteria) and the sequencing dependency on deletion. It does not state whether detaching is reversible or how partial failures are handled, which keeps it below a 5.

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?

Three short sentences, front-loaded with the action and scope, then the dependency, then the approval requirement. Every sentence carries information an agent needs before invoking a destructive 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 a destructive bulk-mutation tool with no output schema, the definition covers scope, prerequisite, and the approval gate an agent needs. The remaining gap is what the call returns or how it reports partially-detached criteria, which is minor here.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

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

Schema coverage is 67%: customer_id and user_list_id are documented in the schema, while user_intent has no description anywhere. The description clarifies that the audience is a 'user list' but adds no format or syntax detail beyond the schema, so the baseline applies.

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 (remove/detach) and resource (audience/user list) plus the exact scope: every campaign criterion and ad group criterion that uses it. This distinguishes it from delete_audience, which is explicitly named as the operation this must precede.

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 a clear precondition ('Required before deleting an audience that is still in use') and a mandatory pre-call workflow: show affected campaigns and ad groups, obtain explicit user approval. This is unusually complete when-to-use and how-to-use guidance.

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.