Skip to main content
Glama
apple-mail-mcp

apple-mail-mcp

by TrevorIkky

imap_fetch

Fetch complete email message bodies by UID from search results, with optional mailbox selection and character-limit controls.

Instructions

Fetch full message bodies by UID, as returned by imap_search.

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>",
      "uids": "<uids>"
    },
    "name": "imap_fetch"
  }
}

Input Schema

NameRequiredDescriptionDefault
uidsYes
accountYes
mailboxNoINBOX
max_charsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It says the tool fetches full bodies, implying a read operation, but does not describe permissions, rate limits, side effects, truncation behavior, or how `max_chars` affects returned bodies.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single front-loaded sentence with no wasted words. Its brevity is appropriate structurally, though it leaves little room for additional context.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool has four parameters with 0% schema description coverage and no annotations. An output schema exists, so return values need not be explained, but the description still omits meaningful context for `account`, `mailbox`, and `max_chars`.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate for all four parameters. It only clarifies `uids` by connecting them to `imap_search`; `account`, `mailbox`, and `max_chars` have no meaning added in the description.

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 states a specific verb and resource: fetch full message bodies by UID. It also links UIDs back to `imap_search`, which helps distinguish this tool from the search operation, though it does not explicitly contrast with the other read tools.

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?

The phrase 'as returned by `imap_search`' gives an implied usage sequence: search first, then fetch by UID. However, it does not state when to use this instead of other read tools such as `read_messages` or `read_by_position`, nor does it give exclusions.

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