Skip to main content
Glama
sethbang

proton-mail-mcp

delete_thread

Destructive

Delete an entire email thread by providing a Message-ID. Choose between soft-delete (Trash) or permanent deletion, with optional cross-folder and dry-run modes.

Instructions

Delete every message in a thread. Default soft-deletes to Trash; permanent:true expunges. acrossFolders:false by default for safety. dryRun:true previews.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
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.
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.
dryRunNoWhen true, preview which messages would be deleted (per folder) without deleting anything. Recommended before a real run.
Behavior5/5

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

Annotations already mark destructiveHint=true. Description adds essential details: default soft-delete to Trash, permanent expunge irreversibility, folder-scoping safety defaults, and dry-run preview. This goes well beyond the annotation and fully discloses behavioral traits.

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?

Two concise sentences front-load the core action and immediately provide key behavioral nuances. Every sentence adds value with no redundancy.

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?

For a destructive thread operation, description covers behavior, scope, preview, and safety defaults. No output schema needed; return values are implied. Complete enough for an agent to invoke correctly.

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?

Input schema covers all 4 parameters with descriptions (100% coverage). The description adds minimal extra meaning beyond schema (e.g., 'for safety', 'previews'), but baseline is 3 due to high schema coverage. No new constraints or clarifications added.

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 clearly states the tool deletes every message in a thread (specific verb+resource). It distinguishes from siblings like delete_message (single message) and bulk_delete (multiple arbitrary messages) by focusing on thread-level deletion.

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?

Description provides clear context on default behavior (soft-delete), irreversible option (permanent), scope control (acrossFolders), and preview mode (dryRun). Although not explicitly stating when to use vs alternatives, the parameter guidance strongly implies proper usage scenarios.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sethbang/proton-mail-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server