Skip to main content
Glama
apple-mail-mcp

apple-mail-mcp

by sweetrb

get-message

Read-only

Read the full body of one email when you already have its message ID, returning subject, text or HTML body, RFC Message-ID, and sent/received dates; include mailbox and account for reliable reads.

Instructions

Use when: reading the full body of one message whose id you already have (numeric or imap:…); set preferHtml to get the HTML body instead of plain text. Returns: the message subject, body (plain text by default, HTML when preferHtml is true), its stable RFC Message-ID (rfcMessageId) for dedup/threading, and two dates: dateSent (the author's Date: header — survives a migration/re-import) and dateReceived (arrival in the mailbox; this is the one a migration resets). Tip: pass the mailbox+account you got the id from (e.g. from search-messages) to fetch it directly — required for reliable reads of large folders like "Sent Items", which otherwise time out. Do not use when: you don't yet have an id (use search-messages or list-messages first), you want the whole conversation (use get-thread), or you need the raw headers / Received: trace (use get-message-headers).

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": {
      "id": "<id>"
    },
    "name": "get-message"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
accountNoAccount that holds the message. Pair with `mailbox` for a direct, scan-free fetch.
mailboxNoMailbox that holds the message (e.g. "Sent Items"). Numeric ids are unique per mailbox; supplying this (with account) opens that mailbox directly instead of scanning every mailbox, which is required to read large folders like Sent Items without timing out.
preferHtmlNoReturn the HTML body (extracted from the message source) instead of plain text

Output Schema

NameRequiredDescriptionDefault
idNo
bodyNo
isHtmlNo
subjectNo
dateSentNoISO 8601 send time from the message's Date: header (Mail's `date sent`). Absent when the message carries no parseable Date: header, or when the value is more than 7 days later than dateReceived — a send time after arrival is not a real one.
dateReceivedNoISO 8601 arrival time in the mailbox (IMAP INTERNALDATE / Mail's `date received`). A migration or re-import resets this; compare with dateSent.
rfcMessageIdNoStable RFC 5322 Message-ID (angle brackets stripped); empty when the message has none

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.19.7
    • changedOutput schema / properties / dateSent / description
      Previous value: -"ISO 8601 send time from the message's Date: header (Mail's `date sent`). Absent when the message carries no parseable Date: header."New value: +"ISO 8601 send time from the message's Date: header (Mail's `date sent`). Absent when the message carries no parseable Date: header, or when the value is more than 7 days later than dateReceived — a send time after arrival is not a real one."
  2. Changed2 schema fields changedv2.19.2
    • addedOutput schema / properties / dateReceived
      Added value: +{
      +  "description": "ISO 8601 arrival time in the mailbox (IMAP INTERNALDATE / Mail's `date received`). A migration or re-import resets this; compare with dateSent.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / dateSent
      Added value: +{
      +  "description": "ISO 8601 send time from the message's Date: header (Mail's `date sent`). Absent when the message carries no parseable Date: header.",
      +  "type": "string"
      +}
  3. Changed2 schema fields changedv2.10.24
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  4. Changed1 schema field changedv2.10.8
    • changedOutput schema / additionalProperties
      Previous value: -falseNew value: +true
  5. Addedv2.8.14
  6. Removedv2.8.10
  7. First observedv2.6.1

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered; the description still earns credit by disclosing a real behavioral hazard (reads of large folders like 'Sent Items' time out unless mailbox+account are supplied) and by explaining what each returned field means, including that dateReceived is reset by migration while dateSent survives.

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?

Structured into Use when / Returns / Tip / Do not use when, with the trigger condition front-loaded. Each line carries distinct information: routing, return-value semantics, an operational caveat, and exclusions — no filler sentences.

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, yet the description still usefully disambiguates the two date fields and rfcMessageId, which are the parts most likely to be misread. The mutation-free read profile and the timeout caveat are both covered, leaving only minor gaps such as body size limits or truncation behavior.

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 75% with descriptive text on account, mailbox and preferHtml, so the schema carries most of the meaning. The description adds one genuinely new point for preferHtml (HTML vs plain text default) and reinforces the mailbox+account pairing, but repeats rather than extends the schema on id format.

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 names a specific verb and resource ('reading the full body of one message') and immediately constrains it to messages whose id the caller already has. It also distinguishes itself from three siblings by name (search-messages, get-thread, get-message-headers), so an agent can route correctly without opening any schema.

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?

Explicit 'Use when' and 'Do not use when' sections give both the trigger condition and the three exclusions, each paired with the alternative tool to use instead. The large-folder tip adds a concrete operational prerequisite (pass mailbox+account) that would otherwise only surface as a timeout.

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