trash_message
Moves a Gmail message to Trash so it can be recovered later, avoiding permanent deletion. Use it to remove a specific email without erasing it.
Instructions
Move a message to trash (recoverable).
Permanent delete is intentionally not exposed — it requires the full https://mail.google.com/ scope, which this server does not request.
Args: message_id: The Gmail message ID to trash.
Returns: Message id, thread_id, label_ids, and action 'trashed'. On failure, {"error": "..."}.
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": "trash_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||