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
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | Limit to one account; uses fast IMAP STATUS if that account is IMAP-configured |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| recent | No | ||
| account | No | ||
| accounts | No | ||
| totalUnread | No | ||
| totalMessages | No | ||
| recentlyReceived | No |