find_old_messages
Locate messages older than a set number of days in a chosen folder, optionally filtered by read or unread status, to prepare bulk cleanup or archiving.
Instructions
Mail older than days in a folder, optionally only read or unread mail.
Returns message_ids, count and the first 50 summaries, for a bulk tool with confirm_count=count. When the plan is to archive these, archive_matching makes the same selection without passing ids. limit: up to 5000.
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": "find_old_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | ||
| limit | No | ||
| folder | No | inbox | |
| read_state | No | any |