mail_stats
Summarize recent Mail volume, read ratio, flagged and attachment counts, plus top senders and mailboxes over a chosen day window, without launching Mail.
Instructions
Mail volume, read ratio and top senders over the last days (Full Disk Access).
Pure Envelope Index — never launches Mail. Counted per DISTINCT message, not per
row: the same message filed twice is one message (raw rows overcount by up to 3.6x
on a real store). account takes a raw account UUID — the account field every
mail Pointer and mail_overview row carries — not a display name.
Returns a compact aggregate: {window_days, since, messages, unread, read_ratio,
flagged, with_attachments, per_day, busiest_day, top_senders[10],
top_mailboxes[10], plane}. Deliberately token-bounded: top-N only, no per-day
series. top_mailboxes carries the decoded name plus folder (the round-trip url)
and the account uuid — map the uuid to a name with one mail_overview call.
Read-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | ||
| account | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||