mailbox_stats
Retrieve mailbox statistics—total messages, unread count, and recent messages—for selected IMAP folders without listing emails, supporting Gmail, Outlook, and custom domains.
Instructions
Return mailbox statistics (total messages, unread count, recent) for one or more IMAP folders — without listing individual emails. Works with any provider (Gmail, Outlook, custom domains).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"accountId": "<accountId>"
},
"name": "mailbox_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folders | No | Folder names to report stats for (default: all folders) | |
| accountId | Yes | The ID of the account to use |