Skip to main content
Glama

get_email_thread

Read-only

Read a complete Gmail thread in chronological order with full plaintext message bodies, so you can reason over what was actually said instead of relying on previews.

Instructions

Read an entire conversation: every message in the thread, in chronological order, with the COMPLETE plaintext body of each (no truncation unless you set max_body_chars). This is the tool to use when you need to reason over what was actually said — search_emails and read_emails only give previews. Each message also lists its label ids/names and attachment metadata (filename, MIME type, size, attachment_id). Attachment CONTENT is not readable through this server — no attachment-reading tool is enabled, so only the metadata above is available. Thread ids are per-account; use the Thread ID from a search against the SAME account.

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": {
      "account": "<account>",
      "thread_id": "<thread_id>"
    },
    "name": "get_email_thread"
  }
}

Input Schema

NameRequiredDescriptionDefault
accountYesAccount id ("personal", "tamu").
thread_idYesGmail thread id, from search_emails / read_emails.
max_body_charsNoTruncate each message body to this many characters. 0 (default) returns the complete body. Only set this if a thread is too large to handle.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.6.2

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the readOnlyHint/destructiveHint annotations, the description discloses the no-truncation default, the escaping hatch via max_body_chars, the per-message payload contents (label ids/names, attachment metadata), and the per-account scoping of thread ids. These are real behavioral facts not captured by annotations or schema.

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?

Front-loaded with the core action and scope, then layered with caveats. Dense but nearly every clause carries information; the account-scoping sentence at the end could be tightened slightly but is not waste.

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?

Complete for a read tool with annotations and full schema coverage; no output schema exists, yet the description sketches the response shape (chronological messages, bodies, label ids, attachment metadata). Minor absence of pagination or size-limit guidance keeps it just shy of full marks.

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 100%, so the baseline is 3; the description earns extra by explaining what max_body_chars actually does in practice (0 = complete body, only set it when a thread is too large) and by tying thread_id provenance to the same account. Account and thread_id semantics are still largely schema-delivered.

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 ("Read an entire conversation: every message in the thread, in chronological order") and explicitly contrasts itself with search_emails and read_emails, which "only give previews." An agent can pick this tool over its siblings without opening a schema.

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?

Gives an explicit selection rule: use this "when you need to reason over what was actually said," otherwise the preview-oriented siblings suffice. It also names a hard boundary (no attachment-reading tool enabled) so the agent does not attempt an impossible follow-up.

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