Skip to main content
Glama
mail-mcp

mail-mcp

get_thread

Read-only

Fetch a message's full email conversation, oldest first, by UID and folder or Message-ID, with optional bodies and link shortening.

Instructions

Get the conversation a message belongs to, oldest first, from the folder and Sent.

Give uid (+folder) or message_id ("<...@...>"). Gmail uses its native thread id; other providers
match Message-ID/References/In-Reply-To. account="all" is allowed only with message_id.
Bodies get the same cleanup as get_message: long URLs are shortened to their host unless
full_links=true, and each message reports links_shortened when any were. Each body is wrapped in the
untrusted-content envelope (one nonce per call) and each message lists its untrusted_fields.

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": {
      "account": "<account>"
    },
    "name": "get_thread"
  }
}

Input Schema

NameRequiredDescriptionDefault
uidNo
folderNoINBOX
accountYes
full_linksNo
message_idNo
max_messagesNo
include_bodiesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Well beyond the readOnlyHint/openWorldHint annotations, it discloses body cleanup, URL shortening unless full_links=true, the links_shortened reporting flag, and the untrusted-content envelope with one nonce per call. These are exactly the behavioral traits annotations cannot express. Minor gap: it never describes pagination or what happens when a thread exceeds max_messages.

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?

Front-loaded with purpose and ordering, then invocation shapes, then output behavior — a sensible progression with little filler. The parenthetical identifier format and the nonce detail are dense but each earns its place.

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?

For a seven-parameter tool with no output schema and zero schema coverage, the description does well on identifier semantics and return-content behavior (links_shortened, untrusted_fields). It is still incomplete: max_messages, include_bodies, and truncation behavior are never addressed, so an agent cannot reason about result limits.

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 description coverage is 0%, so the description carries the full burden. It explains uid/folder, message_id, account scoping, and full_links, but leaves max_messages and include_bodies entirely undefined in both schema and prose — two of seven parameters remain opaque.

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?

"Get the conversation a message belongs to, oldest first" names a specific verb and resource plus an ordering guarantee, which clearly separates it from the single-message sibling get_message. It stops short of explicitly naming that sibling as the alternative, so an agent must infer the contrast.

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?

It states the two valid invocation shapes (uid + folder, or message_id) and an explicit exclusion — account="all" is only allowed with message_id — which is real selection guidance. It does not say when to prefer this over get_message for a single message, leaving that inference to the agent.

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