Skip to main content
Glama
mail-mcp

mail-mcp

by spencer-fs

get_thread

Read-onlyIdempotent

Retrieve the email conversation a message belongs to, ordered oldest first, across Inbox, Sent, Archive, or all folders. Use it to find missing replies and each message's folder and UID.

Instructions

Find the conversation a message belongs to, oldest first. By default it looks in the message's own folder, the Inbox, every Sent folder and the Archive; set all_folders to search the whole mailbox. Each entry carries its own folder, uidvalidity and uid.

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": {
      "folder": "<folder>",
      "uidvalidity": "<uidvalidity>",
      "uid": "<uid>"
    },
    "name": "get_thread"
  }
}

Input Schema

NameRequiredDescriptionDefault
uidYesThe message's uid from search_messages.
limitNoMost messages to return (default 20, at most 50).
folderYesFolder name exactly as list_folders or search_messages returned it.
all_foldersNoSearch every folder instead of the usual ones. Slower; use it when the conversation looks incomplete, for example when earlier messages were filed into other folders.
uidvalidityYesThe uidvalidity that search_messages returned for this folder.
include_bodiesNoAlso return each message's text, with quoted earlier messages left out.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so safety is covered. The description adds real behavior beyond that: default folder set, oldest-first ordering, and the fact that each returned entry carries its own folder/uidvalidity/uid, which matters because there is no output schema. It omits truncation behavior and pagination cues (the limit default of 20) that affect results.

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?

Three sentences, front-loaded with the core purpose, then scope, then return shape. No filler, but the scope sentence is dense and the default-vs-all_folders point is repeated in the schema, slightly diluting it.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

A read-only six-parameter tool with full schema coverage and no output schema needs the description to sketch the return shape, which it partly does (folder, uidvalidity, uid per entry). Gaps remain: nothing on what happens when a message has no other thread members, and no mention of the result cap despite it constraining output size.

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 the baseline is 3. The description does add framing the schema lacks: it explains that default folder scoping is implicit rather than a parameter, and contextualizes when all_folders should be flipped. It largely restates the schema's all_folders rationale and says nothing extra about limit or include_bodies.

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?

States a specific verb and resource ('Find the conversation a message belongs to') plus an ordering guarantee ('oldest first') and a default scope. That is enough to distinguish it from search_messages or read_message by intent, though no sibling is named in the description itself.

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?

Explicitly states the default search scope (message's own folder, Inbox, all Sent folders, Archive) and gives a concrete trigger for the alternative: use all_folders when 'the conversation looks incomplete, for example when earlier messages were filed into other folders.' No explicit when-not guidance or named sibling alternatives, so not a 5.

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