Skip to main content
Glama
FaisalFehad

IMAP Mail MCP

by FaisalFehad

mail_get_thread_context

Retrieve all messages in an email thread by providing a folder and anchor UID. Supports pagination, sorting, and snippet inclusion for easy context understanding.

Instructions

Get related messages in the same thread context using Message-ID/References/In-Reply-To. Includes snippets by default.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
uidYesMessage UID to anchor thread context
sortNoSort by UID (default: desc/newest-first)desc
limitNoMax related messages to return (default 20, capped globally)
cursorNoOpaque pagination cursor from previous thread-context response
mailboxYesFolder name
includeSnippetNoInclude short plain-text snippet per message (default true)
Behavior3/5

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

With no annotations, the description adds value by noting the default inclusion of snippets and the use of email headers. However, it omits other behavioral traits such as read-only nature, authentication needs, rate limits, or pagination behavior, which are relevant but not disclosed.

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?

The description is two concise sentences with no redundant information. It front-loads the primary action and essential detail (headers, snippets). Every word contributes to understanding.

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

Completeness2/5

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

The tool has 6 parameters and no output schema, requiring the description to explain return values. It does not describe the response structure (e.g., list of messages, ordering) beyond implying related messages. Pagination and limits are not addressed, leaving a gap in completeness.

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 100%, so the baseline is 3. The description does not provide additional meaning beyond the schema for any parameter—it merely restates the overall functionality. No parameter-specific elaboration is given.

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 uses a specific verb 'Get' and identifies the resource as 'related messages in the same thread context'. It clarifies the mechanism (Message-ID/References/In-Reply-To), which distinguishes it from sibling tools like mail_get_message or mail_list_messages that do not assemble thread context.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies the tool is for retrieving thread context but does not explicitly state when to use it over alternatives. No exclusion criteria or sibling comparisons are provided, leaving the agent to infer usage from the purpose alone.

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/FaisalFehad/imap-mail-mcp'

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