gmail_delete_draft
Delete or discard a Gmail draft by index, optionally targeting a search query with a subject safety check. Requires confirm=true because the action is destructive.
Instructions
Delete (discard) a draft: index from gmail.drafts, optionally with the same query.
Requires confirm=true (outward-facing or destructive).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "gmail_delete_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | No | Row index from gmail.drafts (default 0 when query is given). | |
| query | No | The query used with gmail.drafts (searches 'in:drafts <query>'); default: the query of the last gmail.drafts listing (else the Drafts folder). | |
| confirm | No | Must be true: this action is outward-facing or destructive. | |
| expect_subject | No | Safety check: the draft's subject must contain this text. |