get-unread-count
Retrieve the count of unread emails, optionally filtered by mailbox or account.
Instructions
Use when: you only need the number of unread messages (optionally scoped to one mailbox and/or account), without listing the messages themselves. Returns: the unread count for the requested scope. Do not use when: you need the actual unread messages and their ids (use list-messages with unreadOnly, or search-messages with isRead=false) or broader totals (use get-mail-stats).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | Account to check | |
| mailbox | No | Mailbox to check (default: all) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unread | No | ||
| account | No | ||
| mailbox | No |