delete_email
Permanently delete an email from your Gmail inbox by providing its message ID. Remove unwanted messages to keep your account organized.
Instructions
Permanently delete an email
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": {
"messageId": "<messageId>"
},
"name": "delete_email"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| messageId | Yes | Email message ID to delete |
Implementation Reference
- src/gmail-service.ts:72-74 (handler)The actual Gmail API call that deletes an email by ID via the Gmail API users.messages.delete endpoint.
async deleteEmail(id: string): Promise<void> { await this.gmail.users.messages.delete({ userId: 'me', id }); } - src/tools.ts:11-11 (schema)Zod schema defining the input for delete_email: expects a 'messageId' string parameter.
delete_email: z.object({ messageId: z.string().describe("Email message ID to delete") }),