Get Email Statistics
get_email_statsAggregate email statistics including total messages, unread count, most active contact, and storage estimate across inbox and sent folders. Results cached for 5 minutes.
Instructions
Aggregate statistics across inbox and sent: totals, unread count, most active contact, storage estimate. Results cached for 5 minutes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account_id | No | Optional account ID to route this call to (multi-account configs). Omit to use the active account. Configured account IDs are listed in the settings UI (Accounts tab). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| totalEmails | Yes | ||
| totalFolders | No | ||
| unreadEmails | Yes | ||
| starredEmails | No | ||
| storageUsedMB | No | ||
| totalContacts | Yes | ||
| mostUsedFolder | No | ||
| mostActiveContact | No | ||
| averageEmailsPerDay | No |