bulk_apply
Apply a single action like mark-read, flag, or trash to multiple emails in one batch call using their message IDs, speeding up bulk mailbox management.
Instructions
Apply one action (mark_read, mark_unread, flag, unflag, trash, or move) to a list of messages by RFC message-id, in a single batched call — far faster than calling set_message_flags/trash_email/move_email once per message.
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": {
"message_ids": "<message_ids>",
"op": "<op>"
},
"name": "bulk_apply"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | Yes | Action to apply to every message: mark_read, mark_unread, flag, unflag, trash, or move (move requires destination_mailbox) | |
| message_ids | Yes | RFC message-ids (with or without angle brackets) from search/list results | |
| destination_account | No | Account name to disambiguate if multiple accounts share the destination mailbox name | |
| destination_mailbox | No | Required when op is 'move'. Exact mailbox name from list_accounts_and_mailboxes. |