Skip to main content
Glama
mailbox-org-mcp
by getrdone

Unsubscribe (or subscribe) from a mailing list

mailbox_unsubscribe

Unsubscribe from a mailing list using a message's List-Unsubscribe header, with one-click web or email options, plus optional filters to move future or existing mail from that sender.

Instructions

Unsubscribe using a message's List-Unsubscribe header: one-click web unsubscribe (RFC 8058) when offered, else an unsubscribe email, else returns the link to open in the browser. Optional cleanup: also_filter files future mail from that sender into a folder (e.g. Trash), also_move moves existing mail from that sender. action=subscribe uses List-Subscribe when present.

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": {
      "uid": "<uid>"
    },
    "name": "mailbox_unsubscribe"
  }
}

Input Schema

NameRequiredDescriptionDefault
uidYesA message from that list (mailbox_list_subscriptions gives the newest one)
actionNounsubscribe
folderNoINBOX
methodNoauto
also_moveNoMove existing mail from this sender to a folder, e.g. "Trash" or "Archive"
also_filterNoCreate a filter sending future mail from this sender to a folder, e.g. "Trash"

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare not-read-only, not-destructive and open-world, and the description adds materially: the ordered fallback chain, the side effects of the optional cleanup ('also_filter files future mail', 'also_move moves existing mail'), and the return behavior when no unsubscribe endpoint exists (returns the link). It stops short of saying whether the move/filter steps are reversible or what happens when the header is absent.

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?

The primary purpose and fallback ordering lead the description, with cleanup options and the subscribe variant following. It is dense but each clause carries distinct information; only the parenthetical RFC reference and inline examples could be trimmed.

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 six-parameter mutation tool with no output schema, the description covers the primary action, its fallbacks, return value on failure, and the side effects of both cleanup parameters. The remaining gap is the role of 'folder' and the absence of any note on error conditions (missing header, invalid uid).

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?

With schema coverage at 50%, the description compensates for the undocumented parameters: it explains the auto/one-click/email/link method chain and defines both also_filter (future mail) and also_move (existing mail) with examples. The 'folder' parameter (default INBOX) is never explained and its relationship to also_filter/also_move is left ambiguous.

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?

The description names a specific verb and resource ('Unsubscribe using a message's List-Unsubscribe header') and spells out the resolution chain: RFC 8058 one-click web, then unsubscribe email, then returning a link. It also covers the inverse action ('action=subscribe uses List-Subscribe'), so an agent can distinguish it from mailbox_list_subscriptions at a glance.

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?

It establishes the precondition (a message with a List-Unsubscribe header) and the fallback order that governs the 'auto' method, which is real when-to-use guidance. It does not state when the tool should be avoided, e.g. when no List-Unsubscribe header exists, or contrast itself with a sibling by name beyond the schema's pointer to mailbox_list_subscriptions.

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