Skip to main content
Glama

delete_draft

Destructive

Permanently delete a draft by ID to remove it for good; unlike trashing, this action cannot be undone.

Instructions

Permanently delete a draft. Unlike trash_message, it can't be recovered.

Args: draft_id: The draft ID (from list_drafts or create_draft).

Returns: {"id": draft_id, "action": "deleted"}. 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": {
      "draft_id": "<draft_id>"
    },
    "name": "delete_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
draft_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.9.6

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true, and the definition reinforces this with the irreversible-deletion warning plus an explicit return payload. It does not discuss permissions or failure modes beyond the generic {"error": ...} shape, but for a single-argument delete this covers the important behavioral risk.

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

Conciseness4/5

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

The warning and the sibling contrast are front-loaded in the first two sentences, with parameters and returns scoped to labeled blocks. It is appropriately sized, with only mild redundancy in restating the return value.

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?

For a one-parameter destructive delete with annotations covering the risk profile, the definition supplies purpose, irreversibility, parameter provenance, and return shape. An output schema exists, so the explicit Returns line is redundant but not harmful; permissions requirements are the only notable omission.

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

Parameters4/5

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

Schema description coverage is 0%, so the description carries the burden, and it does add real meaning: draft_id is the draft ID sourced from list_drafts or create_draft, which tells the agent where to obtain a valid value. It omits the value format, but the provenance hint is the substantive gap-filler here.

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

Purpose5/5

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

The definition states a specific verb and resource ("Permanently delete a draft") and immediately distinguishes it from the sibling trash_message by noting the deletion is unrecoverable. An agent can tell this apart from trashing or updating a draft without opening the schema.

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

Usage Guidelines4/5

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

The contrast with trash_message gives a clear decision rule: use this only when the draft should never be recoverable. It stops short of an explicit "use trash_message instead when X" instruction, but the alternative and the condition that separates them are both present.

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

Deploy Server

Other Tools