Skip to main content
Glama

Delete Draft

delete_draft
DestructiveIdempotent

Delete an unsent Draft entirely: the envelope, its documents, and the stored PDF bytes. Wraps DELETE /api/v1/documents/drafts/{document_id}. Use when a draft is abandoned -- there is no archive. Sent and completed envelopes cannot be deleted (use void_envelope on a live send instead); on one of those this returns the same 404 as a draft that never existed. Requires Authorization: Bearer zs_....

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": {
      "document_id": "<document_id>"
    },
    "name": "delete_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
document_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses exactly what is destroyed (envelope, documents, PDF bytes), that there is no archive/recovery path, that non-drafts return an indistinguishable 404, and that a Bearer zs_ key is required. That is precisely the irreversibility and auth context an agent needs before a destructive call.

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?

Four sentences, each doing distinct work: what is destroyed, the underlying call, selection guidance, and auth. The destructive scope is front-loaded ahead of the routing advice.

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

Completeness5/5

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

An output schema exists so return values need not be explained, and the description still covers the notable error behavior (404 parity). For a single-param destructive tool this is complete enough to call correctly and safely.

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 coverage is 0% for the single document_id parameter, so the description must carry that burden. It implicitly identifies it as the draft's document id via the DELETE /api/v1/documents/drafts/{document_id} path, but gives no id format, prefix, or example. Adequate but thin for a fully undocumented param.

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?

Specific verb plus resource ('Delete an unsent Draft entirely') with the exact scope enumerated: envelope, documents, and stored PDF bytes. It also names the underlying endpoint and explicitly differentiates from void_envelope, so an agent can pick it out among 29 siblings.

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

Usage Guidelines5/5

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

States the positive trigger ('when a draft is abandoned'), the negative case ('Sent and completed envelopes cannot be deleted'), and the correct alternative ('use void_envelope on a live send instead'). Nothing about tool selection is left to inference.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources