Skip to main content
Glama
mail-mcp

mail-mcp

by spencer-fs

read_message

Read-onlyIdempotent

Retrieve one email's decoded headers, sanitized plain-text body, attachments, and suggested reply recipients; use offset to continue long bodies without marking the message read.

Instructions

Read one message: decoded headers, the body as sanitised plain text, its attachments, and suggested recipients for a reply or reply-all. Long bodies are returned in pieces; use offset to continue. Does not mark the message as read.

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": {
      "folder": "<folder>",
      "uidvalidity": "<uidvalidity>",
      "uid": "<uid>"
    },
    "name": "read_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
uidYesThe message's uid from search_messages.
folderYesFolder name exactly as list_folders or search_messages returned it.
offsetNoStart this many characters into the body, to continue a long message.
max_charsNoMost body characters to return (default 12000, at most 50000).
uidvalidityYesThe uidvalidity that search_messages returned for this folder.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so safety is covered; the description nonetheless adds real value by stating that bodies are sanitised to plain text, that long bodies are chunked and resumed via offset, and that the read does not mark the message as read. That last point is a genuine side-effect disclosure not derivable from the annotations. It stops short of describing error behavior if uidvalidity is stale or what attachment entries contain.

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 verb and the return payload, then pagination behavior, then the notable non-side-effect. No filler and nothing repeated.

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?

With no output schema, the description responsibly enumerates the return contents (headers, body, attachments, suggested recipients) and explains the chunking model, which is what an agent needs to consume results. Minor gaps remain: it does not say whether attachment entries include content or only metadata, nor what happens on a uidvalidity mismatch.

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 every parameter is already documented in the schema, including offset and the max_chars default/ceiling. The description only restates the offset continuation pattern and adds no format or constraint detail beyond the schema, which is the expected baseline-3 outcome when the schema carries the load.

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 opens with a specific verb and resource ("Read one message") and enumerates exactly what comes back: decoded headers, sanitised plain-text body, attachments, and suggested reply recipients. It is unmistakable what the tool does, though it never contrasts itself with siblings such as read_attachment or get_thread, so the boundary with attachment-body reading and whole-conversation reading is left implicit.

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?

It gives clear in-tool guidance ("Long bodies are returned in pieces; use offset to continue") and a useful negative ("Does not mark the message as read"), so an agent knows how to paginate and that flags are untouched. However, there is no explicit when-to-use-this-vs-alternatives guidance — nothing tells the agent to prefer read_attachment for attachment content or get_thread for a conversation view.

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