Skip to main content
Glama

Unsubscribe from a mailing list

unsubscribe

Leaves the mailing list a thread came from (a newsletter, a promotional mailing, a notification list), in the name of the mailbox it arrived in, with what the last message received in the thread offers: one POST to the list's unsubscribe address when it accepts a one-click unsubscription, otherwise a short mail from the box to the list's own address. get_conversation says, in "unsubscribe" on each message, whether it offers a way out ("one_click", "mailto") and when the box took it ("done_at"). Call it once the person has said they want to leave that list: it is their decision about the mail they receive. The answer is {status, method, detail}: "unsubscribed" when the list took the request, "already" when the box had already left from that message (nothing is sent again), "not_offered" when no message of the thread offers a way out, and "refused" when nothing was done, with why in "detail". A thread filed as spam, and a sender that failed DMARC, are refused on purpose: unsubscribing from spam tells its sender that the address exists and is read, and report_spam is the gesture for those. A list that answers with an error is refused with its HTTP code.

Input Schema

NameRequiredDescriptionDefault
conversation_idYesThe id of the conversation, as list_conversations gives it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does so well: it discloses the two delivery mechanisms, idempotency ('already' — nothing is sent again), the refusal policy for spam and DMARC-failing senders with the privacy rationale, and refusal on upstream HTTP errors. The only thing not stated is what permissions or mailbox authority the caller needs to act ('in the name of the mailbox it arrived in' implies but does not confirm authorization).

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded and almost every clause carries information (methods, refusal rules, status codes), but the first sentence is a long run-on that nests the method selection inside a prepositional chain. The dense parenthetical enumeration of list types and status values could be split for faster scanning.

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?

There is no output schema, and the description compensates fully by specifying the return shape {status, method, detail} and the meaning of each status value ('unsubscribed', 'already', 'not_offered', 'refused'). Combined with the refusal policy and the pointer to get_conversation for pre-checking availability, an agent has everything needed to call and interpret it.

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%, so the single parameter is already documented as the conversation id from list_conversations. The description adds real meaning beyond the schema by tying that id to effects: the list, the mailbox identity used to act, and the per-message 'unsubscribe' metadata from get_conversation that determines which method is used.

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?

Opens with a precise verb+resource ('Leaves the mailing list a thread came from') and enumerates the kinds of lists covered (newsletter, promotional, notification). It also names the mechanism (one-click POST vs. a short mail), which no sibling such as report_spam or delete_conversation shares.

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?

States the trigger explicitly: 'Call it once the person has said they want to leave that list', and frames it as the person's decision. It also carves out the excluded case — a thread filed as spam — and names report_spam as the correct alternative gesture.

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