Skip to main content
Glama
s-morgan-jeffries

apple-mail-mcp

get_statistics

Read-onlyIdempotent

Aggregate mailbox statistics including message volume, read/unread/flagged counts, read ratio, and top senders over a configurable time window.

Instructions

Aggregate inbox statistics over a mailbox and time window.

A read-only analytics roll-up computed from a single search_messages pass — message volume, read/unread/flagged counts, read ratio, and the top senders (by full address or domain). This is the consolidated inbox-stats tool; per-folder unread counts live on list_mailboxes and are not duplicated here.

The window defaults to the last ~30 days (received_within_hours=720); pass date_from/date_to for an explicit range. Stats are computed over at most scan_limit of the most recent messages in the window — window_fully_covered is False when the window held more than that, so the numbers are a recent-sample rather than a silent truncation.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
byNoGroup top senders by "address" (default) or "domain".address
accountYesMail.app account name (e.g. "Gmail"). Required.
date_toNoISO date upper bound.
mailboxNoMailbox to summarize (default "INBOX").INBOX
date_fromNoISO date lower bound (composes with the window).
scan_limitNoMax messages aggregated (default 500; bounds cost).
top_senders_limitNoHow many top senders to return (default 10).
received_within_hoursNoWindow size in hours (default 720 ≈ 30 days).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint. The description adds that it is a read-only analytics roll-up from a single search_messages pass and explains the scan_limit truncation behavior, providing useful context beyond the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is moderately sized but well-structured, with each sentence adding meaningful information. No unnecessary repetition or fluff.

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?

The tool has 8 parameters and an output schema. The description covers the main behavioral aspects, including the window_fully_covered indicator, which helps the agent interpret results. Given the existence of an output schema, it does not need to detail return values.

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%, but the description adds value by explaining defaults (e.g., received_within_hours=720), the meaning of scan_limit, and the window_fully_covered flag, which is not in the schema.

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 it aggregates inbox statistics (message volume, read/unread/flagged counts, read ratio, top senders) over a mailbox and time window, and distinguishes itself from sibling tool 'list_mailboxes' which provides per-folder unread counts.

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?

It explains the default window (last ~30 days) and how to set explicit ranges via date_from/date_to. It also notes the scan_limit behavior and the window_fully_covered indicator, guiding the agent on when the results are a sample rather than a full scan. However, it does not explicitly state when not to use this tool.

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/s-morgan-jeffries/apple-mail-fast-mcp'

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