archive_emails
Archive multiple Gmail messages in one request using batchModify, reducing many individual archive calls. Pass message IDs to remove them from the inbox non-destructively.
Instructions
CHOICE HINT: When the user asks to "archive" or "remove from inbox" multiple
emails, ALWAYS prefer this tool over making N calls to archive_email(). It uses
Gmail's batchModify API in chunks of at most 1000 message IDs.
Archive multiple emails 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: Non-destructive. Use this instead of N archive_email() calls.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message_ids | Yes |