Get Mailbox Unread Counts
get_mailbox_unread_countsRetrieve unread email counts for each mailbox across one or all Apple Mail accounts; optionally summarize to per-account inbox totals.
Instructions
Get unread counts per mailbox for one account or all accounts.
When summary_only=True, returns only per-account inbox unread totals (replaces the former get_unread_count tool).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_mailbox_unread_counts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | Optional account name filter | |
| include_zero | No | Whether to include mailboxes with zero unread messages | |
| summary_only | No | If True, return only per-account inbox unread totals (flat dict of account name -> unread count) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||