Skip to main content
Glama
sweetrb

apple-mail-mcp

by sweetrb

get-mail-stats

Get aggregate mailbox stats: total and unread counts, recent activity (24h/7d/30d), and 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
accountsNo
totalUnreadNo
totalMessagesNo
recentlyReceivedNo
Behavior4/5

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

Discloses behavioral traits: mentions that for the all-accounts path it provides per-account breakdown, and that using the account parameter triggers fast IMAP STATUS if IMAP-configured. Does not explicitly state it is read-only, but the context implies no side effects. Annotations are absent, so description carries the burden; this is good but could be marginally better.

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 extremely concise: two short sentences followed by a clear 'Do not use' directive. Structured with 'Use when', 'Returns', and 'Do not use when' for quick scanning. No extraneous 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 tool has one parameter, an output schema (so return details are covered), and siblings are listed, the description fully covers when to use, what it returns, and key behavioral context. No missing information apparent.

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 input schema has 100% coverage for the single optional parameter 'account'. The description adds value beyond the schema by explaining the all-accounts path behavior and the IMAP STATUS optimization, though it does not explicitly restate the parameter's optionality.

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 provides aggregate mailbox statistics including total/unread counts and recent-activity counts. It specifies the verb 'aggregate' and resource 'mailbox statistics', and distinguishes 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?

Explicitly states when to use ('Use when: you want aggregate mailbox statistics') and when not to use ('Do not use when: you only need a single unread number...'), providing alternative tool names (get-unread-count, list-messages, search-messages).

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