Skip to main content
Glama

Read an email thread

get_thread
Read-only

Reads the whole conversation (thread) a message belongs to, oldest first, including the replies sent by the user, with QUOTED TEXT REMOVED so each message shows only what it adds. Returns at most the 20 most recent messages. Does not mark anything as read.

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

Input Schema

NameRequiredDescriptionDefault
uidYesIMAP UID of the message, as returned by search and listing tools.
folderNoIMAP folder containing the message. Defaults to INBOX.INBOX
accountIdYesAccount id, as returned by list_accounts.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint/destructiveHint=false, and the description adds real context beyond them: quoted text is stripped so each message shows only its new content, ordering is oldest-first, results are capped at 20 messages, and no read state is mutated. It does not disclose what happens when a thread exceeds 20 messages (truncation point, pagination) or the returned message shape.

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?

Three tight sentences, front-loaded with the core action and followed by the transformation and limits. Minor friction in reconciling 'oldest first' with 'the 20 most recent messages,' which reads slightly contradictory on first pass.

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?

For a low-complexity read tool with full schema coverage and no output schema, the description covers ordering, truncation, content normalization, and absence of side effects. Only the returned message fields and overflow behavior past 20 messages are left unaddressed.

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 coverage is 100% and each parameter is documented in-schema (uid from search/listing tools, folder defaulting to INBOX, accountId from list_accounts). The description adds no parameter-level detail, so the baseline 3 applies.

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?

States a specific verb and resource ('Reads the whole conversation (thread) a message belongs to') and scopes it to the entire thread rather than a single message, which separates it from get_message. The qualifiers (oldest first, quoted text removed, max 20) make the operation unambiguous.

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?

Usage is only implied: the description clarifies you get the full conversation rather than one message, and notes 'Does not mark anything as read,' which hints at mark_as_read as a separate step. It never states when to prefer this over get_message or get_chat_thread, nor any prerequisites such as needing the UID from a listing tool.

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