Skip to main content
Glama
proton-mail-mcp

proton-mail-mcp

by sethbang

Delete message

delete_message
Destructive

Move an email to Trash for safe removal, or permanently delete it with confirmation. Preview the action first with a dry run to check the sender, subject, and date.

Instructions

Delete an email message. By default moves to Trash for safety; set permanent=true together with confirm=true to permanently expunge. Pass dryRun: true to preview either (no confirm needed). Note: moving to Trash assigns a new UID in the Trash folder — the original UID is no longer valid. Proton removes the star (\Flagged) from messages moved to Trash (seen live); star them again after restoring if needed.

UID + folder pair caveat: IMAP UIDs are per-folder. Always pair a UID with the folder it came from; the same integer can refer to different messages in INBOX, Sent, Trash, and All Mail.

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": "delete_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
uidYesMessage UID (use list_messages or search_messages to find UIDs)
dryRunNoPreview what would happen, with the message's date, sender and subject, without changing anything.
folderNoFolder containing the message (default: INBOX)INBOX
confirmNoRequired (true) together with `permanent: true`: a permanent delete can't be undone. Ignored for moves to Trash and dry runs.
permanentNoIf true, permanently expunge the message instead of moving to Trash. Requires `confirm: true`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 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"
      +}
    • addedInput schema / properties / dryRun
      Added value: +{
      +  "default": false,
      +  "description": "Preview what would happen, with the message's date, sender and subject, without changing anything.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / permanent / description
      Previous value: -"If true, permanently expunge the message instead of moving to Trash"New value: +"If true, permanently expunge the message instead of moving to Trash. Requires `confirm: true`."
  2. First observedv1.0.1

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only declare destructiveHint=true; the description adds substantially more: the default is a recoverable Trash move, permanence is irreversible and gated on confirm, and previews are side-effect free. It also discloses non-obvious side effects an agent could not infer elsewhere — the Trash move assigns a new UID and Proton strips the \Flagged star — plus the per-folder UID scoping caveat.

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?

Front-loads the core action and default behavior in the first sentence, then mode mechanics, then the caveat as its own emphasized block. Every sentence carries operational content: no restatement of the tool name, no filler, and the caveat is visually separated so it is not lost in the middle.

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 single-message mutation with no output schema, it covers what an agent needs before calling: reversibility, the confirm gate, a safe preview path, UID invalidation after the Trash move, and flag loss. The only thing unaddressed is the shape of the result, which is low-stakes here and partly mitigated by the dryRun preview description.

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 baseline is 3; the description earns more by stating the inter-parameter dependency (permanent requires confirm, dryRun ignores confirm) and by explaining that the same integer UID identifies different messages per folder, which gives the uid/folder pair real semantic weight. It mostly reinforces the schema rather than introducing new syntax, so it stops short of 5.

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?

"Delete an email message" is a specific verb+resource, and the body distinguishes the trash-vs-permanent modes clearly. It never names the close siblings (delete_thread, bulk_delete, delete_folder), so an agent must infer that this operates on a single message by UID rather than a thread, folder, or bulk set.

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?

The description gives concrete selection logic between three modes: default (move to Trash), permanent expunge (requires permanent=true plus confirm=true), and dryRun preview (which needs no confirm). That is strong intra-tool guidance, but there is no guidance on when to reach for delete_message versus delete_thread, bulk_delete, or move_message.

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