archive_email
Remove a Gmail message from the inbox without deleting it; archived emails remain searchable and accessible.
Instructions
Archive an email — removes it from INBOX without deleting it.
Archived emails are still searchable and accessible via search.
Required:
message_id (str) — Gmail message ID from list_emails.
Returns on success:
{"message_id": "...", "labels": ["IMPORTANT", "SENT"]}}
(INBOX is removed from labels)
Workflow note: This is non-destructive. The email stays in Gmail
with all other labels intact. Use list_emails(query="is:inbox")
to confirm it's gone from the inbox view.
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_id": "<message_id>"
},
"name": "archive_email"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message_id | Yes |