Skip to main content
Glama
proton-mail-mcp

proton-mail-mcp

by sethbang

Delete thread

delete_thread
Destructive

Delete all messages in an email thread. Soft-deletes to Trash by default; use dryRun to preview or permanent with confirm to expunge irreversibly.

Instructions

Delete every message in a thread. Default soft-deletes to Trash; permanent:true with confirm:true expunges. acrossFolders:false by default for safety. dryRun:true previews. Proton removes the star (\Flagged) from messages moved to Trash (seen live); star them again after restoring if needed.

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": {
      "messageId": "<messageId>"
    },
    "name": "delete_thread"
  }
}

Input Schema

NameRequiredDescriptionDefault
dryRunNoWhen true, preview which messages would be deleted (per folder) without deleting anything. Recommended before a real run.
confirmNoRequired (true) together with `permanent: true`: a permanent delete can't be undone. Ignored for moves to Trash and dry runs.
messageIdYesRFC 5322 Message-ID of any message in the thread (e.g. `<abc@example.com>`); the whole reply chain is resolved from it.
permanentNoWhen false (default), soft-delete the thread to Trash (recoverable). When true, permanently expunge every message — irreversible, and requires `confirm: true`.
acrossFoldersNoWhen false (default), act only within the seed message's folder. When true, walk INBOX + Sent + All Mail so the whole conversation is deleted across folders.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv2.0.1
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedInput schema / properties / confirm
      Added value: +{
      +  "default": false,
      +  "description": "Required (true) together with `permanent: true`: a permanent delete can't be undone. Ignored for moves to Trash and dry runs.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / permanent / description
      Previous value: -"When false (default), soft-delete the thread to Trash (recoverable). When true, permanently expunge every message — irreversible."New value: +"When false (default), soft-delete the thread to Trash (recoverable). When true, permanently expunge every message — irreversible, and requires `confirm: true`."
  2. Changed4 schema fields changedv1.0.2
    • addedInput schema / properties / acrossFolders / description
      Added value: +"When false (default), act only within the seed message's folder. When true, walk INBOX + Sent + All Mail so the whole conversation is deleted across folders."
    • addedInput schema / properties / dryRun / description
      Added value: +"When true, preview which messages would be deleted (per folder) without deleting anything. Recommended before a real run."
    • addedInput schema / properties / messageId / description
      Added value: +"RFC 5322 Message-ID of any message in the thread (e.g. `<abc@example.com>`); the whole reply chain is resolved from it."
    • addedInput schema / properties / permanent / description
      Added value: +"When false (default), soft-delete the thread to Trash (recoverable). When true, permanently expunge every message — irreversible."
  3. First observedv1.0.1

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only declare destructive=true and readOnly=false; the description adds the crucial risk gradient — Trash is recoverable, expunge is irreversible, and confirm is ignored for trash moves and dry runs. It also discloses the acrossFolders safety default and a real side effect (Proton strips the \Flagged star when messages move to Trash).

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?

Dense and front-loaded: destructive default behavior first, then escalation path, then safety flags, then the star caveat. Slightly run-on phrasing ('seen live') and the parenthetical aside cost a bit of polish but every clause carries information.

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 destructive, non-idempotent tool with no output schema, the description covers reversibility, confirmation requirements, folder scope, and preview mode. What remains unstated is what the response returns or how partial folder failures surface, a minor gap given the tool's risk profile is otherwise fully addressed.

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 description coverage is 100%, so the schema already documents all five parameters including the permanent/confirm coupling. The description restates that coupling and the acrossFolders default but adds no format or edge-case detail beyond the schema, which is the baseline expectation.

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?

States a specific verb and resource with explicit scope: 'Delete every message in a thread.' The thread-level scope cleanly separates it from single-message deletion siblings, and the messageId-based thread resolution is implied by the schema.

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 operational context: default is a recoverable soft-delete to Trash, permanent requires permanent:true plus confirm:true, and dryRun previews first. It does not explicitly name the alternative sibling (e.g. delete_message vs bulk_delete), so routing guidance is implied rather than stated.

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