Skip to main content
Glama
proton-mail-mcp

proton-mail-mcp

by sethbang

Move message

move_message
DestructiveIdempotent

Move an email message from one folder to another, with an optional dry run to preview the move. Use it to relocate messages and get a new destination UID.

Instructions

Move an email message to a different folder. Note: the message gets a new UID in the destination folder — the original UID is no longer valid after the move. The destination must be a folder, not a Labels/… path (use update_message_labels to label a message), and not the folder the message is already in. Moving from a label view moves the message out of its real folder and removes the label. Pass dryRun: true to preview the move.

UID + folder pair caveat: IMAP UIDs are per-folder, so UID 42 in INBOX and UID 42 in Sent identify different messages. Always carry the folder a UID came from; never reuse a UID across folders. For thread-level operations on messages you only know by Message-ID, prefer get_thread / move_thread which sidestep this footgun.

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>",
      "destination": "<destination>"
    },
    "name": "move_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.
folderNoSource folder (default: INBOX)INBOX
destinationYesDestination folder path (e.g. Archive, Trash, Spam)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 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 / dryRun
      Added value: +{
      +  "default": false,
      +  "description": "Preview what would happen, with the message's date, sender and subject, without changing anything.",
      +  "type": "boolean"
      +}
  2. First observedv1.0.1

TDQS

A4.6/5.0
Behavior4/5

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

Adds substantial behavior beyond the annotations: the message receives a new UID and the original UID becomes invalid, label-view moves remove the label, and dryRun previews date/sender/subject without changing anything. One minor tension is left unexplained — idempotentHint is true while the tool reports a UID change and the source UID becomes stale, so a repeat call with identical params would not behave identically.

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?

Core rule and the critical UID-change warning are front-loaded, and every paragraph carries information an agent needs. It is somewhat dense with an inline bold caveat header, but no sentence is filler.

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 move tool with no output schema, it covers the side effects (new UID, label removal), the safety valve (dryRun), destination validity, and correct alternatives. Nothing essential for a correct invocation is missing.

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% and already documents uid, folder, destination and dryRun, so the baseline is 3. The description goes further by explaining that UIDs are per-folder and must be carried with their folder, and by constraining what `destination` and the source `folder` may be — meaning the schema does not supply.

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?

Opens with a specific verb+resource+scope: "Move an email message to a different folder." It then explicitly distinguishes itself from update_message_labels (for labelling) and move_thread (for thread-level operations), so an agent can route correctly without opening the schemas.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives concrete when/when-not rules: destination must be a folder not a `Labels/…` path, must not be the folder the message is already in, and moving from a label view has different semantics. It names alternatives (update_message_labels, get_thread/move_thread) and the condition selecting each.

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