Skip to main content
Glama

Take contacts out of a campaign

campaigns_remove_recipients
Destructive

Take contacts out of a campaign. They get no further emails from it. Contacts not in the campaign are skipped. Replies, unsubscribes and bounces they already had stay in your inbox and keep blocking their address.

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": {
      "campaignId": "<campaignId>",
      "contactIds": "<contactIds>"
    },
    "name": "campaigns_remove_recipients"
  }
}

Input Schema

NameRequiredDescriptionDefault
campaignIdYescampaignId from campaigns_list
contactIdsYescontactId values from contacts_list or replies_list

Output Schema

NameRequiredDescriptionDefault
removedYes
skippedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/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, so the description earns credit for the additional behavior it discloses: removed contacts receive no further emails, non-member IDs are silently skipped (partial-success semantics), and prior replies/unsubscribes/bounces persist and continue blocking the address. That last point is a genuine operational gotcha not derivable from annotations or schema. It does not cover reversibility (re-adding) or whether removal affects send history counts.

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?

Four short sentences, each contributing distinct information: the action, the effect, the skip behavior, and the persistence caveat. The core action is front-loaded and there is no redundant restatement of the name or schema.

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?

An output schema exists, so return values need not be explained, and annotations cover the destructive profile. The description supplies the non-obvious consequences (silent skipping, lingering blocks) that an agent needs before calling a destructive bulk operation. It stops short of stating whether removal can be undone or how to restore recipients, which would complete the picture for a mutation tool.

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%, with both campaignId and contactIds documented including source tools and ID patterns, so the schema carries parameter meaning. The description mentions 'contacts' and 'campaign' only in prose and adds no format, batching, or ID-sourcing detail beyond what the schema provides. Baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Take contacts out of a campaign') that matches the tool name unambiguously, and immediately clarifies the effect ('no further emails from it'). It does not explicitly name the inverse sibling campaigns_add_recipients, so differentiation relies on the name rather than the prose.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied rather than stated: the agent can infer this is the removal counterpart to adding recipients, and the 'Contacts not in the campaign are skipped' line clarifies tolerance of stale IDs. There is no explicit when-to-use vs when-not, and no named alternative such as campaigns_set_status for stopping a whole campaign.

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.

Resources