Skip to main content
Glama
apple-mail-mcp

apple-mail-mcp

by TrevorIkky

read_messages

Read full email bodies by message ID from Apple Mail, scanning recent messages; increase scan count for older mail or use position-based retrieval on timeout.

Instructions

Read full bodies for specific message ids from list_messages.

Locates them by scanning the newest scan messages, so raise scan for older mail. If this times out, use read_by_position instead.

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": {
      "account": "<account>",
      "ids": "<ids>"
    },
    "name": "read_messages"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsYes
scanNo
accountYes
mailboxNoINBOX
max_charsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations present, the description still discloses the key behavioral trait: the tool scans the newest `scan` messages rather than indexing directly, which explains latency and why old mail can be missed. It also warns about timeout as a real failure mode. It does not mention that results may be truncated by `max_chars` or that the tool is a read-only fetch, leaving a small gap.

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, each earning its place: purpose first, then the scan caveat, then the fallback. The most actionable constraint (raise `scan` for older mail) is front-loaded before the escalation path.

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?

An output schema exists, so return values need no explanation, and the description covers the essential calling behavior plus the timeout escape hatch. The one meaningful omission is what `max_chars` does to results and what `mailbox` scoping implies for a multi-account tool.

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 0%, so the description has to carry parameter meaning, and it does explain the two non-obvious ones: `ids` comes from `list_messages` and `scan` must be raised for older mail. However, `account`, `mailbox`, and especially `max_chars` (which implies truncation) are never explained, so half the surface remains undocumented.

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 full bodies for specific message ids) and anchors the id source to the sibling `list_messages`, so an agent knows exactly what input it needs and where to get it. It also distinguishes itself from `read_by_position` by naming the fallback condition.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives concrete when-to-use guidance: ids come from `list_messages`, raise `scan` to reach older mail, and switch to `read_by_position` if this times out. That is an explicit alternative plus the condition that selects it, with no inference required.

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