Skip to main content
Glama
codefuturist

Email MCP Server

by codefuturist

get_thread

Read-only

Reconstruct full email threads by following References and In-Reply-To headers, returning all related messages without marking them as seen. Options include plain text, stripped quotes, and newest-first summaries.

Instructions

Reconstruct a full email conversation thread by following References and In-Reply-To headers. Returns all related messages. Does NOT mark emails as seen. Use format="text" to strip HTML, or format="stripped" to also remove quoted replies. Use newestFirst=true to show the most recent message in full and older messages as header-only summaries. Use get_email first to obtain the message_id.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
formatNoBody format: full=raw (default), text=plain text (strips HTML), stripped=plain text without quoted replies or signaturesfull
accountYesAccount name from list_accounts
mailboxNoMailbox to search (default: INBOX)INBOX
maxLengthNoTruncate each message body at this many characters. A hint shows how many characters remain.
message_idYesMessage-ID header value (from get_email)
newestFirstNoWhen true, shows the newest message in full and older messages as header-only summaries. Ideal for AI triage of long threads where only the latest reply matters.
Behavior4/5

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

Annotations already declare readOnlyHint=true. Description adds 'Does NOT mark emails as seen,' which is valuable behavioral context not covered by annotations.

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?

Two efficient sentences front-loaded with purpose. Every sentence adds value; no redundant or irrelevant content.

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?

No output schema, but description states 'Returns all related messages' which is sufficient. Covers all parameters and preconditions. Slightly lacking in post-conditions or error scenarios.

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?

With 100% schema coverage, baseline is 3. Description adds meaning beyond schema, e.g., explaining the effect of format='stripped' and use case for newestFirst=true.

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?

Clearly states the action ('Reconstruct a full email conversation thread') and specifies the method ('following References and In-Reply-To headers'). Distinguishes from siblings like get_email which retrieves a single email.

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?

Provides explicit precondition ('Use get_email first to obtain the message_id') and explains when to use format options and newestFirst. Missing direct comparison with alternatives like search_emails for thread discovery.

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/codefuturist/email-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server