Skip to main content
Glama
yu2001-s
by yu2001-s

list-messages

List recent messages from Apple Mail mailboxes, with optional filters by sender or unread status, and pagination. Returns message IDs for further actions.

Instructions

Use when: browsing a mailbox's recent messages (optionally filtered by sender or unread-only) with pagination via limit/offset, and you need their ids. Returns: messages with id, date, subject, and sender (plus partial-coverage diagnostics when some mailboxes were skipped). Do not use when: you have specific search criteria like subject/date/flags (use search-messages) or already have an id and want the body (use get-message). Like search-messages, use this to obtain the ids that read/mark/delete/move and batch tools require.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fromNoFilter by sender email address or name
limitNoMaximum number of messages (default: 50, max: 500)
offsetNoNumber of messages to skip (for pagination)
accountNoAccount to list messages from
mailboxNoMailbox to list messages from. Omit to list from all mailboxes.
unreadOnlyNoOnly show unread messages

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
countNo
partialNo
messagesNo
timedOutAccountsNo
notSearchedMailboxesNo
skippedLargeMailboxesNo
Behavior3/5

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

No annotations exist, so description must carry full burden. It describes return fields (id, date, subject, sender) and mentions diagnostics for skipped mailboxes. However, it does not explicitly state read-only nature, auth requirements, or side effects. With zero annotation coverage, more behavioral context would be prudent.

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?

Succinct and front-loaded: starts with 'Use when', each sentence adds value. No redundant or vague statements. Efficient use of words.

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

Completeness5/5

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

Given the presence of an output schema, the description still explains return format (fields and diagnostics). It covers usage scenarios, parameter roles, and how it integrates with sibling tools. Complete for a listing tool with six parameters.

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

Parameters4/5

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

Schema coverage is 100% with descriptions. The description adds meaningful context: explains pagination (limit/offset), filtering by sender and unreadOnly, and optional mailbox vs. all mailboxes. It does not mention the 'account' parameter but covers the primary functional parameters well.

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 clearly states the tool lists recent messages from a mailbox with optional filters (sender, unreadOnly) and pagination. It differentiates from siblings: search-messages (for specific criteria) and get-message (for body by ID). The verb 'browse' and resource 'recent messages' are precise.

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 with concrete alternatives. It specifies pagination via limit/offset, obtaining IDs for other tools, and when to use search-messages or get-message instead. No ambiguity.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/yu2001-s/apple-mail'

If you have feedback or need assistance with the MCP directory API, please join our Discord server