Skip to main content
Glama
apple-mail-mcp

apple-mail-mcp

by TrevorIkky

list_messages

Lists Apple Mail message headers newest first with filters for mailbox, unread status, sender, and subject, enabling quick inbox scanning without fetching message bodies.

Instructions

List message headers, newest first, without fetching bodies.

scan bounds how many of the newest messages are examined; limit caps how many matches come back. Filters are case-insensitive substrings. Positions in this result feed read_by_position.

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

Input Schema

NameRequiredDescriptionDefault
scanNo
limitNo
accountYes
mailboxNoINBOX
unread_onlyNo
sender_containsNo
subject_containsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose real behavior: ordering (newest first), that bodies are not fetched, that scan bounds the examined window while limit caps returned matches, and that filters are case-insensitive substrings. It omits pagination behavior and what happens when the mailbox holds fewer than `scan` messages.

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 with the core constraint (headers, newest first, no bodies) front-loaded, followed by the scan/limit distinction and the downstream handoff. Nothing is redundant.

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-value detail is not required, and the description covers the non-obvious semantics (dual bounding via scan and limit) that an agent would otherwise get wrong. The main remaining hole is the identity of the required `account` parameter.

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 0%, so the description must compensate, and it does well for scan, limit, sender_contains, subject_contains and (by implication) unread_only. However the required `account` parameter is never characterized, and `mailbox` is left unmentioned despite its INBOX default — a meaningful gap on a 7-parameter tool.

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 ("List message headers") plus two distinguishing scope facts: newest-first ordering and no body fetching. That implicitly separates it from read_messages, though no sibling is named outright.

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?

Gives clear operating context: it explains the scan-vs-limit interplay and notes that positions in this result feed read_by_position, which is genuine routing guidance to a sibling. It stops short of stating when NOT to use it (e.g., use search_messages for server-side or full-mailbox search).

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