Skip to main content
Glama
sweetrb

apple-mail-mcp

by sweetrb

get-mail-stats

Retrieve aggregate mailbox statistics including total and unread message counts, recent activity over 24 hours, 7 days, and 30 days, plus per-account breakdowns.

Instructions

Use when: you want aggregate mailbox statistics — total and unread message counts, recently-received counts (last 24h/7d/30d), and (for the all-accounts path) a per-account breakdown. Returns: totals, unread counts, recent-activity counts, and per-account figures. Do not use when: you only need a single unread number (use get-unread-count) or want to list the messages themselves (use list-messages / search-messages).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
accountNoLimit to one account; uses fast IMAP STATUS if that account is IMAP-configured

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
recentNo
accountNo
partialNo
accountsNo
perMailboxNo
queueWaitMsNo
totalUnreadNo
totalMessagesNo
failedAccountsNo
recentlyReceivedNo
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses the fast IMAP STATUS optimization and the all-accounts path behavior. However, it does not explicitly state that it is read-only or has no side effects, though this is strongly implied by the purpose.

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?

The description is tightly structured with 'Use when', 'Returns', and 'Do not use when' sections. Every sentence earns its place, is concise, and key information is front-loaded.

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 tool's simplicity (one optional parameter, no annotations) and the presence of an output schema, the description covers the essentials: when to use, what it returns, and when not to use. No critical information is missing.

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?

The schema already fully describes the account parameter (100% coverage). The description adds value by clarifying the 'all-accounts path' when the parameter is omitted, which is not explicit in the schema and helps the agent correctly choose whether to pass the parameter.

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's function: aggregate mailbox statistics including total/unread counts, recent activity counts, and per-account breakdown. It uses a specific verb and resource, and distinguishes itself from sibling tools like get-unread-count and list-messages.

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 provide clear context and explicitly name alternative tools (get-unread-count, list-messages, search-messages). This gives the agent precise decision criteria.

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/sweetrb/apple-mail-mcp'

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