Skip to main content
Glama

Read an AgentMail thread

get_agentmail_thread
Read-only

Read a whole conversation, oldest first within the page, with decoded bodies. Long threads come back newest page first; pass olderPageToken back as pageToken for the earlier messages. Get the thread id from search_agentmail_messages.

Input Schema

NameRequiredDescriptionDefault
mailboxYesAddress of the connected AgentMail inbox to act on. Call list_authorized_mailboxes to see available options.
threadIdYes
pageTokenNo
maxCharsPerMessageNoPer-message body budget (default 5000)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered. The description adds genuinely useful behavior beyond that: messages are ordered oldest-first within a page, long threads return newest page first, and pageToken is used to walk backwards. This ordering/pagination semantics is exactly the kind of trait annotations cannot convey.

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?

Three tight sentences, front-loaded with the core read action, then pagination mechanics, then the id source. No filler or repetition.

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?

With no output schema, the description carries the burden of describing returns, and it does cover decoded bodies and ordering. It stops short of describing the response shape (e.g., message list structure, pagination metadata fields), but for a read-only thread fetch with annotations covering safety, it is nearly complete.

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 50%; mailbox and maxCharsPerMessage are documented in the schema, while threadId and pageToken are not. The description compensates well: it explains that olderPageToken should be passed back as pageToken and that threadId comes from search_agentmail_messages, giving the two undocumented parameters real meaning.

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 ('Read a whole conversation... with decoded bodies'), which distinguishes it from the single-message sibling get_agentmail_message by emphasizing the whole conversation. It does not name any sibling explicitly, so the differentiation is implicit rather than crisp.

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?

It routes the agent to search_agentmail_messages for obtaining the threadId and explains the paging workflow, which is useful usage context. However, it never states when to prefer this tool over get_agentmail_message or the Gmail/Outlook equivalents, leaving alternatives to inference.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources