trash_emails
CHOICE HINT: When the user asks to "trash" or "delete" multiple emails, ALWAYS prefer this tool over making N calls to trash_email(). It uses Gmail's batchModify API in chunks of at most 1000 message IDs.
Instructions
CHOICE HINT: When the user asks to "trash" or "delete" multiple emails,
ALWAYS prefer this tool over making N calls to trash_email(). It uses
Gmail's batchModify API in chunks of at most 1000 message IDs.
Move multiple emails to trash in a single MCP request.
Uses messages().batchModify() with up to 1000 IDs per Gmail API call.
Required:
message_ids (list[str]) — Gmail message IDs.
Returns on success:
{"ok": true, "data": {
"requested": N, "succeeded": N, "failed": 0,
"results": [{"id": "...", "ok": true}, ...]
}}
Workflow note: Use this instead of N trash_email() calls.
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>"
},
"name": "trash_emails"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message_ids | Yes |