Skip to main content
Glama
gmail-mcp

gmail-mcp

by cart1984

mail_thread

Read-only

Read a Gmail conversation in chronological order by thread ID from search, list, or message lookup; quoted replies are omitted because earlier messages appear above.

Instructions

Read a whole conversation, oldest message first (thread id from mail_search, mail_list or mail_get). Replies leave out the earlier mails they quote, since those are shown above them; mail_get shows a message in full.

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

Input Schema

NameRequiredDescriptionDefault
thread_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations only declare readOnlyHint and openWorldHint, so the safety profile is already known. The description still adds genuinely non-obvious behavior: results are ordered oldest-first and quoted earlier messages are omitted from replies, which materially affects how an agent should interpret the output. It does not mention limits on thread size or how missing/deleted messages are represented.

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?

Three short sentences with the core behavior front-loaded and no filler. The parenthetical sourcing note and the mail_get cross-reference each add distinct information.

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

Completeness5/5

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

For a one-parameter read tool whose output schema already defines the return shape and whose annotations cover safety, the description supplies ordering, quoting behavior, and ID provenance. Nothing an agent needs in order to invoke it correctly is absent.

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 0% for the single parameter, so the description must carry meaning, and it does by explaining that thread_id is an identifier obtained from mail_search, mail_list, or mail_get rather than an arbitrary value. It does not specify the ID's format, but the provenance guidance is the part an agent cannot infer.

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 a whole conversation") and adds a scoping behavior ("oldest message first"). It is clearly distinguishable from the sibling mail_get, which "shows a message in full," so an agent can pick between thread-level and message-level reads without opening either schema.

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

Usage Guidelines4/5

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

Explicitly says where the required thread_id comes from (mail_search, mail_list, mail_get), which is actionable routing guidance. It also implicitly contrasts with mail_get for single-message reading, though it never states a when-not-to-use case such as very long threads or empty threads.

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