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