Skip to main content
Glama

chatgpt_ads_audiences_members_remove

Destructive

Remove members from a ChatGPT Ads custom audience using a local identifier file. Use it to shrink an audience list; it returns an async operation to poll, and the call mutates the account.

Instructions

Removes members from one ChatGPT Ads custom audience from a local file. A removal can take an audience below the 25,000 matched users that inclusion and bid multipliers need. Returns the platform's operation object unchanged (operation_id, status processing / succeeded / failed). The operation is asynchronous: poll chatgpt_ads_audiences_operations_get until it is not processing. Mutates the account. The file holds one identifier per line, all of identifier_type, between 1 and 10,000 distinct values, at most 2 MiB; blank lines and duplicates are dropped. email and phone (E.164 with '+' and country code) are normalised and SHA-256 hashed before sending; gaid is sent as given, as the platform requires. One invalid line refuses the whole call before any request, naming line numbers only. The identifiers never pass through tool arguments. No reversal is recorded: the opposite call would also touch members that were there before. An audience used for inclusion or a bid multiplier needs at least 25,000 matched users; exclusion has no minimum. Custom audiences are not supported for campaigns that target the EEA or Switzerland. Upload only first-party data you have the right to use.

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": {
      "audience_id": "<audience_id>",
      "file_path": "<file_path>",
      "identifier_type": "<identifier_type>"
    },
    "name": "chatgpt_ads_audiences_members_remove"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonNoWhy this change is being made: one or two sentences naming the evidence and the expected effect. Stored in the journal and on the action_log entry this call produces, for the operator and the next session.
approvalNoExternal approval this change carries out (recorded and shown, never verified)
expectedNoExpected effects [{metric, direction, target?, horizon_days?, primary?}], exactly one primary:true when several; metric cpa/cpc/cpl/cpm/conversions/cvr/ctr/roas/cost/spend/clicks/impressions; direction up/down/hold.
file_pathYesPath of a local UTF-8 .txt or .csv file with one identifier per line and no header row (e.g. '/Users/me/audiences/list.txt'). Only the hashed or raw-advertising-id values are sent, never the path.
audience_idYesCustom audience id as the API returns it (e.g. 'caud_123'). Find it with the matching list tool.
decision_idNoA proposed decision this change carries out.
idempotency_keyNoOptional key for repeating this add or remove: letters, digits, '_' or '-'. Omit it on a first attempt and mureo generates one; pass the key an error message names, with the same arguments and file, to get the first accepted operation back instead of starting a second.
identifier_typeYesWhat every line holds: email, phone, gaid (Google advertising id), or email_sha256 / phone_number_sha256 already hashed by the same rule (64 hex characters).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.46.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true, but the description adds the operational consequences that annotations cannot: the call is asynchronous and must be polled, no reversal is recorded and why, validation is all-or-nothing before any request with line numbers only, identifiers never pass through tool arguments, and normalisation/hashing happens client-side per identifier_type. That is substantial disclosure beyond structured fields.

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?

Purpose is front-loaded in the first sentence and every subsequent sentence carries a distinct constraint or consequence. It is a dense block of nine sentences, however, and the file-format and normalisation rules could be tightened into fewer clauses without losing content.

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

Completeness5/5

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

Despite having no output schema, the description explains the return value (the platform's operation object with operation_id and status values) and the polling pattern needed to resolve it. Combined with the data-handling, minimum-size, and regional restrictions, an agent has everything needed to call this correctly.

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 100%, so the baseline is 3. The description does add real meaning for file_path (one identifier per line, 1–10,000 distinct values, 2 MiB cap, blank lines and duplicates dropped) and for identifier_type (email/phone normalised and SHA-256 hashed, gaid sent raw), which lifts it above a pure baseline, but the governance parameters (reason, approval, expected, decision_id, idempotency_key) are left entirely 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 with scope: 'Removes members from one ChatGPT Ads custom audience from a local file.' The file-driven nature plus 'members' distinguishes it immediately from chatgpt_ads_audiences_members_add and from audience-level tools like delete.

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?

Names the follow-up call explicitly ('poll chatgpt_ads_audiences_operations_get until it is not processing'), references the opposite call and why it is not a true reversal, and gives the conditions that matter (25,000 matched-user minimum for inclusion/bid multipliers, no minimum for exclusion, no support for EEA/Switzerland campaigns). Nothing about when to pick this versus alternatives is left to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools