Skip to main content
Glama

draft_delete

DestructiveIdempotent

Delete a specific email draft after explicit confirmation; only affects drafts and requires MAIL_DRAFTS_ENABLED=true.

Instructions

Delete a draft. Only acts on drafts. Requires MAIL_DRAFTS_ENABLED=true and confirm=true.

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": {
      "draft_id": "<draft_id>",
      "confirm": "<confirm>"
    },
    "name": "draft_delete"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmYesExplicit confirmation required (must be `true`)
draft_idYes`draft_id` of the draft to delete
account_idNoAccount identifier (defaults to `"default"`)default

Output Schema

NameRequiredDescriptionDefault
dataYesTool-specific data payload
metaYesExecution metadata (timestamp, duration)
summaryYesHuman-readable summary of the operation outcome

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.7.1
    • removedInput schema / description
      Removed value: -"Input: delete a draft"
    • removedInput schema / title
      Removed value: -"DraftDeleteInput"
    • removedOutput schema / description
      Removed value: -"Standard response envelope for all tools\n\nWraps tool-specific data with human-readable summary and execution metadata.\nThis structure provides consistent response shape across all MCP tools."
    • removedOutput schema / title
      Removed value: -"ToolEnvelope"
  2. Addedv0.5.0

TDQS

A3.6/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare destructiveHint=true, idempotentHint=true, and openWorldHint=true, so the safety profile is largely covered. The description contributes the non-obvious gating requirements (feature flag plus explicit confirm), which is genuine added context, but says nothing about irreversibility or what a deleted draft leaves behind.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three terse sentences, all front-loaded: the action first, then scope, then prerequisites. Every clause carries information an agent needs before calling, and nothing is padded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With annotations covering destructiveness and idempotency, a full schema, and an output schema for return values, the description covers the remaining gap (feature-flag and confirmation gating). Minor omissions like error behavior on a missing draft are acceptable given the structured coverage.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so all three parameters including confirm and account_id are documented structurally. The description's mention of confirm=true merely restates the schema constraint and adds no new meaning; baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb and resource ("Delete a draft") and adds a scoping clause ("Only acts on drafts") that separates it from the message-deletion siblings such as imap_delete_message. It stops short of naming any alternative explicitly, so differentiation is implied by scope rather than stated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states prerequisites (MAIL_DRAFTS_ENABLED=true, confirm=true), which is real usage context, but it never says when to prefer this over draft_send, draft_update, or the imap delete tools, and gives no when-not guidance. Usage is implied by the scope line rather than spelled out.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.