Skip to main content
Glama

Read conversation

mail_thread
Read-only

Retrieve a mail's full conversation across folders, including sent replies, oldest first, to review context before responding to long threads.

Instructions

The whole conversation of a mail across folders (incl. your sent replies), oldest first.

Use it before replying to a long thread. Bodies are wrapped in UNTRUSTED markers.

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

Input Schema

NameRequiredDescriptionDefault
mail_refYesMail ref from mail_find, e.g. 'm:7KQ2PXA'.
response_formatNo'concise' removes quoted history from each message.concise

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered. The description adds genuinely useful context — cross-folder scope, inclusion of sent replies, oldest-first ordering, and the UNTRUSTED body markers warning of prompt-injection risk — but says nothing about size limits or pagination on very long threads.

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, front-loaded with the scope statement, followed by the usage cue and the security note. No sentence is redundant and nothing is buried.

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 read-only two-parameter tool with no output schema, the definition covers scope, ordering, content inclusion, and the untrusted-content wrapping. It stops short of indicating return volume or behavior on very large threads, which would be the remaining gap.

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%, so both mail_ref and the response_format enum are fully documented in the schema itself. The description adds no parameter-level meaning beyond that, so the baseline 3 applies.

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?

States a specific resource and scope: the entire conversation of a mail across folders including sent replies, returned oldest first. This clearly distinguishes it from a single-message read, though it never names a sibling tool explicitly.

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?

Gives a concrete triggering condition: 'Use it before replying to a long thread.' That is clear when-to-use guidance, but there is no explicit when-not or named alternative (e.g., mail_read for a single message).

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