Summary by sender
mail_senders_summaryScans a mail folder (Inbox by default) and summarizes senders with message counts, unread totals, latest messages, and unsubscribe methods to prioritize inbox triage.
Instructions
KEY TOOL FOR TRIAGE. Scans a folder (Inbox by default, up to 50,000 messages) and aggregates messages by sender: count, unread, latest message, and for the top senders the unsubscribe method mail_unsubscribe would use: one-click, browser (a link to open), mailto (a link the user sends from their own mail app), blocked (nothing to open: a link to this computer or the local network, a sign of a suspicious message, or a plain http link with no email address to use instead) or none. A link's host name is only checked when mail_unsubscribe runs, so a one-click or browser sender can still turn out blocked then. Sorted by volume. partial: true means the folder holds more than 50,000 messages, so counts are lower bounds and some senders may be missing; pass since to scan a shorter period. The scan is cached for the session. Follow up with mail_unsubscribe(lastMessageId) and mail_bulk_by_sender(address).
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": "mail_senders_summary"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | Number of senders to return (max 200) | |
| since | No | Only count messages received since this date | |
| folder | No | Folder to analyse. Default: inbox |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| partial | Yes | true when the folder holds more than 50,000 messages: only 50,000 were scanned | |
| scanned | Yes | Messages scanned (at most 50,000) | |
| senders | Yes | ||
| totalSenders | Yes |