Skip to main content
Glama
imap-mail-mcp

imap-mail-mcp

by EastMG

read_message

Retrieve a single email by UID to view headers, decoded plain-text body, and attachment list; specify account, mailbox, and character limit as needed.

Instructions

Read one message by uid: headers, decoded plain-text body, attachment list.

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
uidYesFrom search_messages
accountNoAccount id or email
mailboxNoFolder path, default INBOX
maxCharsNoDefault 20000

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; 'decoded plain-text body' and 'attachment list' usefully signal that content is decoded and attachments are listed as metadata rather than fetched. However, it is silent on whether reading marks the message as read (a real ambiguity given the sibling mark_read), what happens with HTML-only bodies, and how maxChars truncation manifests.

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?

A single front-loaded sentence with the identifier and the payload list in order; no filler, no redundancy.

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 4-parameter read tool with full schema coverage and no output schema, this is largely complete: entity, key, and return contents are all covered. The remaining gap is behavioral — read-vs-mark-read side effects and truncation/HTML fallback behavior are not addressed.

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% and the schema documents uid source, account, mailbox default INBOX, and maxChars default 20000. The description adds nothing beyond restating that uid identifies the message, 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 verb and resource ('Read one message by uid') and enumerates what comes back (headers, decoded plain-text body, attachment list). The singular 'one message by uid' distinguishes it from the sibling search_messages without naming it, though no sibling is explicitly referenced.

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?

Usage is only implied: the uid keying suggests it follows a search, and the schema's uid description says 'From search_messages'. There is no explicit statement of when to use this versus search_messages or mark_read, and no prerequisites given.

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