imap_delete_spam
Scan a mailbox folder to identify and delete emails from known spam or disposable domains, with dry-run preview and confidence filtering.
Instructions
Find and delete emails from known spam/disposable email domains.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"accountId": "<accountId>"
},
"name": "imap_delete_spam"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of emails to check | |
| dryRun | No | If true, only report what would be deleted without deleting | |
| folder | No | Folder name | INBOX |
| accountId | Yes | Account ID | |
| minConfidence | No | Minimum confidence level for spam detection | high |