Unread summary
apple_mail_unread_summaryRetrieve unread counts per mailbox and account, omitting zero-unread mailboxes. Reads counters only, so it stays fast on large mailboxes.
Instructions
Unread counts per account and mailbox, cheapest way to answer "what's waiting for me?".
Mailboxes with zero unread are omitted. This reads counters only — it does not scan messages, so it is fast even on very large mailboxes.
Returns: { total_unread, accounts: [{ account, unread_count, mailboxes: [{ mailbox, unread_count }] }] }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | Exact account name as shown by apple_mail_list_accounts (e.g. "iCloud", "Work Gmail"). Omit to span every account. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| accounts | Yes | ||
| total_unread | Yes |