Skip to main content
Glama

gmail_thread_read

Retrieve a complete Gmail conversation by thread ID, including all messages and attachments. Automatically truncates oversized threads with a marker to prevent response limits. Read-only operation.

Instructions

Read a full Gmail thread (conversation) by id, including every message in it. A thread is N messages, each potentially carrying attachments — the single highest-risk payload on the whole Gmail surface for exceeding the response size limit, so large threads are automatically truncated with a marker. Read-only. Mirrors omni-dev gmail thread. Output is YAML.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
accountNoSelects a named Gmail account instead of the ambient `--account`/`OMNI_DEV_GMAIL_ACCOUNT` resolution — e.g. `work`. Omit to use the resolved default account (or the legacy single-account credentials, if no named accounts are configured). Call `gmail_account_list` to discover configured names.
thread_idYesGmail thread id. Required.
Behavior5/5

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

With no annotations provided, the description fully carries the behavioral disclosure burden. It explicitly mentions read-onlyness, automatic truncation for large threads with a marker, the risk of attachments exceeding response size limits, and YAML output. This is exemplary transparency beyond what annotations would provide.

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?

The description is appropriately sized and front-loaded, starting with the core action and then covering critical caveats. The 'Mirrors omni-dev gmail thread' statement is tangential and the risk phrasing is somewhat elaborate, but every sentence contributes meaningful information.

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?

The description covers the tool's purpose, safety (read-only), truncation behavior, risk warning, and output format. With no output schema, a bit more detail on the YAML structure might be helpful, but the core usage context is complete and sufficient for correct invocation.

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 of 3 applies. The description adds no additional parameter semantics beyond what the schema already documents; both 'account' and 'thread_id' are fully described in the schema, so the description does not need to compensate.

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 the verb ('Read'), the resource ('full Gmail thread'), and the scope ('including every message in it'). This differentiates it from single-message reads (like gmail_message_read) by emphasizing 'full thread' and 'every message', making the tool's purpose 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?

The description implies when to use the tool (when the entire conversation is needed) but does not explicitly contrast it with alternatives like gmail_message_read or gmail_search, nor mention when not to use it. The reference to 'omni-dev gmail thread' is a CLI mirror, not a tool-selection guideline.

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/rust-works/omni-dev'

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