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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message_ids | Yes |