Skip to main content
Glama
proton-mail-mcp

proton-mail-mcp

by sethbang

Move thread

move_thread
DestructiveIdempotent

Move every message in an email thread to a destination folder. Use it to relocate a full reply chain at once, with optional cross-folder walking and a dry-run preview of affected UIDs.

Instructions

Move every message in a thread to a destination folder. By default acts only in the seed message's folder; pass acrossFolders:true to walk INBOX/Sent/All Mail. dryRun:true previews the affected per-folder UIDs without moving.

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>",
      "destination": "<destination>"
    },
    "name": "move_thread"
  }
}

Input Schema

NameRequiredDescriptionDefault
dryRunNoWhen true, preview the affected per-folder UIDs without moving anything.
messageIdYesRFC 5322 Message-ID of any message in the thread (e.g. `<abc@example.com>`); the whole reply chain is resolved from it.
destinationYesDestination folder path to move the entire thread into (must already exist).
acrossFoldersNoWhen false (default), act only within the seed message's folder. When true, walk INBOX + Sent + All Mail so the whole conversation moves across folders.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field 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"
  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 moves across folders."
    • addedInput schema / properties / destination / description
      Added value: +"Destination folder path to move the entire thread into (must already exist)."
    • addedInput schema / properties / dryRun / description
      Added value: +"When true, preview the affected per-folder UIDs without moving anything."
    • changedInput schema / properties / messageId / description
      Previous value: -"Message-ID of any message in the thread (e.g. <abc@example.com>)"New value: +"RFC 5322 Message-ID of any message in the thread (e.g. `<abc@example.com>`); the whole reply chain is resolved from it."
  3. First observedv1.0.1

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare destructive=true and idempotent=true, but the description adds genuinely new behavior: the default is scoped to the seed message's folder, and acrossFolders widens the walk to INBOX/Sent/All Mail. It stops short of saying what happens if a copy already exists at the destination or how the per-folder UIDs are reported in the dry-run preview.

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?

Three tight sentences with zero filler: the core action first, then the folder-scope default and override, then the dry-run preview. Each sentence carries a distinct operational fact.

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 mutation with full annotation and full schema coverage plus no output schema, the description covers the two behaviors an agent could plausibly get wrong: folder scoping and dry-run preview. Minor gaps remain around destination collisions and what the preview returns, but the essential calling context is present.

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 coverage is 100%, so all four parameters already carry descriptions, and the description largely restates the acrossFolders and dryRun semantics already present in the schema. It adds no syntax or format detail beyond what the schema supplies, so the baseline of 3 applies.

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 first sentence names a specific verb and resource ('Move every message in a thread') with a clear scope, which implicitly distinguishes it from the single-message sibling move_message. It never names an alternative explicitly, so differentiation is inferred from scope rather than stated.

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 clear conditional guidance for the two optional flags: default single-folder behavior versus acrossFolders:true for INBOX/Sent/All Mail, and dryRun:true for preview. It does not name sibling tools or state when a caller should prefer move_message or bulk_move instead.

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