Skip to main content
Glama
emperor-mail

emperor-mail

read_message

Read-only

Retrieve one email by UID with headers, plain-text body (HTML converted), and attachment details; reading leaves it unread unless mark_read is true.

Instructions

Read one message: headers, plain-text body (HTML converted) and the attachment list (index, name, type, size). Leaves the message unread unless mark_read is true.

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

Input Schema

NameRequiredDescriptionDefault
uidYesUID from search.
folderNoFolder holding the message (default INBOX).
mark_readNoSet the message's read flag (default false: reading leaves it unread).
max_charsNoMost body characters to return (default 20000, at most 200000).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changed
    • removedInput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / properties / folder / default
      Removed value: -null
    • changedInput schema / properties / folder / type
      Previous value: -[
      -  "string",
      -  "null"
      -]New value: +"string"
    • removedInput schema / properties / max_chars / default
      Removed value: -null
    • removedInput schema / properties / max_chars / format
      Removed value: -"uint"
    • removedInput schema / properties / max_chars / minimum
      Removed value: -0
    • changedInput schema / properties / max_chars / type
      Previous value: -[
      -  "integer",
      -  "null"
      -]New value: +"integer"
    • removedInput schema / properties / uid / format
      Removed value: -"uint32"
    • removedInput schema / properties / uid / minimum
      Removed value: -0
  2. First observedv0.1.3

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, but the description adds genuinely useful behavior: HTML is converted to plain text, the attachment list includes index/name/type/size, and the message is left unread unless mark_read is true. That last point is important since a nominally read-only tool can still mutate the read flag. It does not cover error behavior for a missing UID, which keeps it below 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?

Two sentences, both front-loaded with the highest-value information (what is returned, then the read-flag side effect). No filler and no repetition of the tool name.

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 tool with full annotation coverage and 100% schema coverage, the description tells the agent everything needed to call it correctly, including the payload shape and the unread side effect. Minor gaps remain around truncation signaling when max_chars caps the body and around failure modes for invalid UIDs.

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 uid, folder, mark_read, and max_chars are all documented with defaults and limits. The description's only parameter-related statement, about mark_read and the unread default, restates what the schema already says. Baseline 3 is appropriate when the schema carries the parameter detail.

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 one message') and enumerates the returned payload: headers, plain-text body with HTML converted, and the attachment list with index/name/type/size. This clearly separates it from the siblings read_attachment, search, and list_folders, since it is the only one that returns a whole message's structure.

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?

Usage context is clear: it reads a single message identified by uid, and the schema notes that the uid comes from search, implicitly routing the agent through search first. It does not explicitly state when to prefer read_attachment or what to do if the UID is unknown, so it falls short of naming alternatives and exclusions.

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

Deploy Server

Other Tools