Skip to main content
Glama
sethbang

proton-mail-mcp

get_thread

Read-onlyIdempotent

Get all messages in a conversation thread by walking In-Reply-To and References headers. Returns messages sorted chronologically, using Message-ID to handle cross-folder replies.

Instructions

Get all messages in a conversation thread by walking In-Reply-To and References headers. Returns messages sorted chronologically (oldest first).

PREFERRED: pass messageId — Message-IDs are globally unique, so this sidesteps the UID-collision footgun and walks INBOX + Sent + All Mail by default to catch replies that span folders. A thread member that lives in a user folder (e.g. Folders/Development) and surfaces only via the All Mail virtual copy is rewritten to its real storage folder AND UID, so the returned folder/uid pair is safe to feed into a single-folder tool.

Legacy: passing uid + folder searches only within that folder. UIDs are per-folder in IMAP, so the same UID in two folders refers to different messages — use messageId when possible.

SCOPE: this walks the reply chain only. Forwards do NOT set In-Reply-To/References back to the original, so a forwarded copy starts its own conversation and will NOT appear here — get_thread is the reply chain, not every message derived from the original.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
messageIdNoRFC 5322 Message-ID of any message in the thread (e.g. <abc@example.com>). Preferred over uid+folder.
uidNoUID of a thread message (only used when messageId is omitted; folder-scoped)
folderNoFolder the UID lives in (ignored when messageId is set)INBOX
foldersNoOverride the default folder walk when messageId is set (default: INBOX, Sent, All Mail)
limitNoMaximum messages to return (default: 25, max: 50)
Behavior5/5

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

Annotations already indicate read-only and idempotent. The description adds details: chronological sorting, folder spanning, UID collision avoidance, and rewriting of folder/UID for user folders. No contradictions.

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?

Well-structured with sections (preferred, legacy, scope) and front-loaded main purpose. However, some explanatory text could be trimmed; still clear and organized.

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?

Given the complexity of IMAP threading, the description covers algorithm, limitations (forwards), and pitfalls (UID collisions). Even without output schema, it provides enough return value context.

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% (all parameters described). The description adds value by explaining the rationale behind messageId vs uid+folder and the default folder walk, but baseline is 3 due to full schema coverage, so 4 is appropriate.

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 it retrieves all messages in a conversation thread by walking In-Reply-To and References headers, specifying the verb, resource, and mechanism. It distinguishes from siblings like 'list_messages' by focusing on threading.

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?

It explicitly recommends using messageId over uid+folder due to UID collisions, explains the legacy alternative, and clarifies the scope (only reply chain, not forwards). Provides clear when-to-use guidance.

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