Skip to main content
Glama

get_thread

Read-only

Fetch a full email thread by ID, including headers, plaintext and HTML bodies, and attachment metadata. Use after search to read thread content without marking it as read.

Instructions

Fetch a full thread by ID: headers, plaintext + HTML bodies, and attachment metadata. USE WHEN: reading a thread's content after finding it via search. DO NOT USE: with a message ID — this takes thread IDs. SIDE EFFECTS: none (does not mark as read).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fullNo
threadIdYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
messagesYes
threadIdYes
Behavior5/5

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

Annotations already mark readOnlyHint=true. The description adds value by explicitly stating 'SIDE EFFECTS: none (does not mark as read)', which confirms no state changes beyond what annotations imply. No contradiction.

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?

Extremely concise: two sentences plus usage notes. Every sentence is purposeful, front-loading the action and key details. No wasted words.

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?

Given the presence of an output schema for return values and readOnlyHint annotation, the description is largely complete. However, failing to explain the 'full' parameter slightly detracts from full parameter coverage, so score 4.

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?

With 0% schema description coverage, the description must compensate but only explains the threadId parameter implicitly. The 'full' boolean parameter with default true is not mentioned, leaving its purpose unclear. Still, threadId is clearly conveyed, so score 3.

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 clearly states 'Fetch a full thread by ID' and enumerates the returned content (headers, bodies, attachments). It distinguishes from siblings by specifying it takes thread IDs, not message IDs, setting it apart from tools like mark_read or search.

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

Usage Guidelines5/5

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

Explicitly states when to use: 'reading a thread's content after finding it via search', and when not to use: 'with a message ID — this takes thread IDs'. Provides clear usage context without needing to reference sibling tool names.

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/csitte/mailwarden'

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