Mail: Get cleanup summary
mail_get_cleanup_summaryWho is filling the mailbox — the preview step before any mass delete. Groups messages by sender (count, unread, oldest, newest, which folders, what the classifier called them), and reports totals per folder, per category and per age bucket. Accepts the same filters as mail_delete_by_filter, so you can narrow here, read the counts, and pass the identical filters to the delete. Changes nothing.
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_get_cleanup_summary"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | ||
| folder | No | ||
| mailbox | No | ||
| category | No | ||
| date_after | No | YYYY-MM-DD | |
| date_before | No | YYYY-MM-DD | |
| from_address | No | ||
| subject_contains | No |