get_inbox_summary
Retrieve email summary counts including total, unread, and recent messages from your iCloud mailbox to monitor inbox status.
Instructions
Get a summary of a mailbox including total, unread, and recent email counts
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mailbox | No | Mailbox name (default INBOX) | |
| account | No | Account name to use (e.g. 'icloud', 'gmail'). Defaults to first configured account. Use list_accounts to see available accounts. |
Implementation Reference
- lib/imap.js:1767-1773 (handler)The `getInboxSummary` tool returns the count of total, unread, and recent messages for a given IMAP mailbox.
if (uids.length === 0) { await client.logout(); return { deleted: 0, sourceMailbox }; } let deleted = 0; for (let i = 0; i < uids.length; i += CHUNK_SIZE) { const chunk = uids.slice(i, i + CHUNK_SIZE); const chunkIndex = Math.floor(i / CHUNK_SIZE); try {