Skip to main content
Glama

Unsubscribe contacts

unsubscribe_contacts
DestructiveIdempotent

Unsubscribe addresses from marketing mail. Unknown addresses become unsubscribed contacts, so a later import cannot resubscribe them. Transactional mail still sends. Returns the operation {id, status, total}. Errors: too_many_targets, empty_selection. Next: list_suppressions with reason "unsubscribed".

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": {
      "emails": "<emails>"
    },
    "name": "unsubscribe_contacts"
  }
}

Input Schema

NameRequiredDescriptionDefault
emailsYesAddresses to unsubscribe from marketing mail (max 10000). Unknown addresses are remembered.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already flag destructiveHint and idempotentHint, yet the description adds substantive behavior beyond them: unknown addresses are silently converted into unsubscribed contacts, and the effect is durable enough that a later import cannot reverse it. It also discloses the return shape ({id, status, total}) and the specific error codes (too_many_targets, empty_selection), which is exactly the operational context a mutating tool needs.

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?

Five short, front-loaded sentences that each carry distinct information: purpose, irreversible side effect, scope limit, return value, error codes, and next step. No restatement of the title or filler.

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?

Covers purpose, side effects, returns, errors, and follow-up for a one-parameter destructive tool with no output schema. The one gap is that 'Returns the operation {id, status, total}' implies an asynchronous job but never says how or when to check that status before calling list_suppressions.

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 100% and the single 'emails' parameter is fully documented in the schema, so baseline would be 3. The description adds meaning the schema lacks by explaining the downstream consequence of the input list ('a later import cannot resubscribe them'), though it leaves the 10000 cap entirely to the schema.

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 ('Unsubscribe addresses'), plus the scope ('marketing mail') and the persistence effect ('become unsubscribed contacts'). It implicitly distinguishes itself from import flows via 'a later import cannot resubscribe them', but never names the singular sibling unsubscribe_contact, so an agent choosing between bulk and single-address variants gets no explicit hand-off.

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

Usage Guidelines4/5

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

Gives clear context for use (marketing mail unsubscribe) and clarifies an important boundary condition ('Transactional mail still sends'), plus a follow-up step ('Next: list_suppressions with reason "unsubscribed"'). It does not present alternatives for single-address unsubscribes or for suppression-list management before this call, which keeps it short of a 5.

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