Skip to main content
Glama
Mail-MCP

Mail-MCP

by Rixtayz

Unsubscribe

mail_unsubscribe
Destructive

Unsubscribe from a mailing list via one-click HTTPS, browser, or mailto options; blocks unsafe local or plain HTTP links and never sends email.

Instructions

Try to unsubscribe from the mailing list of a message, in order: (1) RFC 8058 one-click HTTPS POST (method: "one-click", done); (2) otherwise method: "browser" with the https URL to open in a browser, plus mailtoUrl when the sender also lists an email address; (3) method: "mailto" when email is the only usable way (no link, or only a plain http link, which is never opened): mailtoUrl is a link that opens a pre-filled message in the user's own mail app, and the user presses Send; (4) method: "blocked" when the link points to this computer or the local network, could not be checked, or is plain http with no email address to use instead: nothing was opened and no link is returned; tell the user what detail says, and treat a link to the local network as a sign of a suspicious message; (5) method: "none" when no header exists. This tool never sends email. Deletes nothing. Preferably pass the lastMessageId returned by mail_senders_summary.

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": {
      "id": "<id>"
    },
    "name": "mail_unsubscribe"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesId of a representative message of the newsletter

Output Schema

NameRequiredDescriptionDefault
okYes
urlNo
fromYes
detailYes
mailtoNo
methodYes
subjectYes
mailtoUrlNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.2.2
    • removedInput schema / properties / id / minLength
      Removed value: -1
    • addedInput schema / properties / id / pattern
      Added value: +"^[A-Za-z0-9_=+/-]{16,512}$"
    • addedOutput schema / properties / mailtoUrl
      Added value: +{
      +  "type": "string"
      +}
    • changedOutput schema / properties / method / enum
      Previous value: -[
      -  "one-click",
      -  "mailto",
      -  "browser",
      -  "none"
      -]New value: +[
      +  "one-click",
      +  "mailto",
      +  "browser",
      +  "blocked",
      +  "none"
      +]
  2. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations flag a destructive, non-idempotent, open-world write, and the description adds genuinely non-obvious behavior: the ordered escalation strategy, that in 'blocked' nothing is opened and no link is returned, that local-network links signal a suspicious message, and 'This tool never sends email.' The line 'Deletes nothing' sits in mild tension with destructiveHint=true and no sentence says the unsubscribe itself is irreversible, which is why this is a 4 rather than a 5.

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?

The numbered (1)-(5) ordering is easy to follow and the intent is front-loaded, but the bulk of the text enumerates what each `method` value means and what to tell the user - content that the existing output schema already covers. It is dense and correct but spends most of its length re-narrating return values.

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 one-parameter, open-world mutation with an output schema and annotations present, the description supplies the key operational context: the escalation order, the blocked/no-header cases, and that no email is ever sent. It omits auth requirements and the fact that a successful unsubscribe cannot be undone on the user's side, which are the remaining relevant gaps.

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 a single parameter and 100% schema coverage the baseline is 3; the description earns an extra point by telling the agent where the id should come from ('the lastMessageId returned by mail_senders_summary') and what it represents ('a representative message of the newsletter'), which the schema alone does not convey.

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?

The opening clause gives a specific verb and resource: 'Try to unsubscribe from the mailing list of a message.' It names a related sibling (mail_senders_summary) for id sourcing, but never contrasts itself with the other mail_* siblings, so an agent must infer the boundary itself.

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?

There is a concrete chaining hint ('Preferably pass the lastMessageId returned by mail_senders_summary'), which is real usage guidance. However, the rest of the text describes outcomes rather than when to call this versus alternatives such as mail_bulk_by_sender, and no precondition (auth state, message must have a List-Unsubscribe header) is stated up front.

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