sweep_snoozed
Resurface due snoozed email threads by returning them to the inbox marked unread; set dryRun to preview due items without waking them.
Instructions
Resurface all snoozed threads whose date is due (<= today), batched at 1000 messages per API request. Set dryRun:true to rehearse: reports the due labels and threads (dueLabels/dueThreads) as the sweep would find them (from the live label listing; a single snooze label with more than 5000 messages is under-counted in the rehearsal), and wakes nothing. USE WHEN: the user asks to process due snoozes, or as a scheduled maintenance call; dryRun to answer 'what is due right now?' without acting. SIDE EFFECTS: due threads return to the inbox marked unread (none with dryRun); safe to run repeatedly. failedCount/errors report messages a batch could not wake (their label is kept for the next sweep).
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": "sweep_snoozed"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | ||
| woken | Yes | ||
| dryRun | Yes | ||
| errors | Yes | ||
| dueLabels | Yes | ||
| dueThreads | Yes | ||
| wokenCount | Yes | ||
| failedCount | Yes | ||
| dueThreadCount | Yes |