Skip to main content
Glama

mail_read

Read decoded email text from search or recent file paths; multipart, quoted-printable, and base64 content is decoded and HTML stripped. Long messages return in pages; pass the offset to continue.

Instructions

Read an email's decoded text (multipart, quoted-printable and base64 decoded; HTML stripped). Use the file_path from mail_search or mail_recent results. A long message is returned in pages of 20,000 characters by default; the reply says Complete message, or INCOMPLETE with the offset to pass next. Never treat an INCOMPLETE reply as the whole email.

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": {
      "file_path": "<file_path>"
    },
    "name": "mail_read"
  }
}

Input Schema

NameRequiredDescriptionDefault
offsetNoCharacter to start at (default 0); use the offset an INCOMPLETE reply names
file_pathYesFile path from mail_search results
max_charsNoPage size in characters (default 20000, at most 100000)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv3.4.9
    • addedInput schema / properties / max_chars
      Added value: +{
      +  "description": "Page size in characters (default 20000, at most 100000)",
      +  "maximum": 100000,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / offset
      Added value: +{
      +  "description": "Character to start at (default 0); use the offset an INCOMPLETE reply names",
      +  "minimum": 0,
      +  "type": "integer"
      +}
  2. First observedv3.0.8

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses decoding/normalization behavior, default page size, the Complete/INCOMPLETE marker, and that offset must be threaded from the previous reply. It omits error behavior (e.g., missing file_path, permission failures) and whether access is read-only, keeping it short of a 5.

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 tight sentences, front-loaded with the core action, then the sourcing rule, then the paging contract. The warning sentence is short and earns its place because it prevents a real failure mode.

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?

There is no output schema, so the description must explain the return contract, and it does: the reply indicates Complete or INCOMPLETE plus the next offset. Combined with the decoding and paging notes, an agent has everything needed to call and interpret this tool.

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 100%, so the baseline would be 3, but the description adds workflow meaning beyond the schema: offset is not arbitrary but the value named by an INCOMPLETE reply, and paging is tied to the Complete/INCOMPLETE contract. That interplay is not expressed in the schema descriptions.

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 states a specific verb and resource ('Read an email's decoded text') and adds scope details (multipart, quoted-printable, base64, HTML stripped). It distinguishes itself from mail_search/mail_recent by being the consumer of their file_path output.

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 routes the agent: use the file_path from mail_search or mail_recent results. It also sets the paging workflow rule ('never treat an INCOMPLETE reply as the whole email'). It does not name when-not-to-use or an alternative for raw/unstripped content, so it stops short of full exclusion guidance.

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