archive_matching
Archives messages in an Outlook folder by sender and/or age, showing a preview match count before confirming bulk cleanup.
Instructions
Archive every message in a folder that matches the criteria, without collecting ids. The tool for large backlogs: "archive read mail older than a year", "archive everything from news@example.com".
Needs older_than_days or sender (or both), so a whole folder can never be
archived by accident. read_state: any, read or unread.
confirm_count: omit it first; the preview returns the match count and ten
samples. Show them to the user, then call again with
confirm_count equal to that count.
Archives up to 1000 per call. If remaining is above zero, preview again (the
count will have changed) and repeat.
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": "archive_matching"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder | No | inbox | |
| sender | No | ||
| read_state | No | any | |
| confirm_count | No | ||
| older_than_days | No |