get_email_stats
Get aggregate mailbox statistics: folder message counts and total unread counts for a quick mailbox health overview. Use for fast summary rather than detailed analytics.
Instructions
Return aggregate mailbox statistics: folder message counts, total unread counts, and a brief analytics sample. Use for a quick mailbox health overview. Prefer get_email_analytics for richer breakdowns such as top senders and hourly patterns. Prefer get_volume_trends for time-series daily volume data. Reads from the local index (auto-refreshed if stale or empty), not live IMAP — reflects the last sync, so read/unread counts can lag a change made from another client. Unread counts specifically can also lag a flag change (e.g. \Seen set shortly after send) until that message's folder is next fully synced.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_email_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Trailing days window. | |
| limit | No | Maximum messages to sample. |