Skip to main content
Glama

gmail_get_thread

Fetches a complete Gmail thread by account and thread ID, returning all messages, headers, and plain-text bodies for review or processing.

Instructions

Fetch a full Gmail thread (all messages, headers, and plain-text bodies).

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": "gmail_get_thread"
  }
}

Input Schema

NameRequiredDescriptionDefault
accountYesAccount email (must be authorized).
thread_idYesGmail thread id (from gmail_search).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description must carry behavioral disclosure. It usefully discloses that the tool returns all messages, headers, and plain-text bodies, which is meaningful return-content context. However, it omits read-only confirmation, authorization requirements beyond the schema, handling of HTML-only messages or attachments, and any rate-limit or failure behavior.

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?

The description is a single front-loaded sentence with no waste. It immediately names the operation and scope, and every phrase contributes useful information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple two-parameter read tool, the description covers the core purpose and return composition adequately. But with no annotations and no output schema, it leaves gaps around authorization expectations, whether HTML content or attachments are omitted, and how the tool relates to gmail_search.

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 both parameters are already documented in the input schema, including that thread_id comes from gmail_search. The description does not add further meaning or constraints beyond the schema, which is the baseline case for high coverage.

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?

The description states a specific verb (Fetch) and resource (full Gmail thread), and clarifies the scope by listing all messages, headers, and plain-text bodies. It does not explicitly differentiate itself from gmail_search, but the resource and scope are clear enough for an agent to distinguish a thread-fetch operation.

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

Usage Guidelines2/5

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

The description implies usage by saying it fetches a full thread, but provides no explicit when-to-use guidance, prerequisites, or alternatives to gmail_search. It does not state when an agent should choose this tool over searching, nor does it mention any exclusions.

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