Skip to main content
Glama

Delete draft document

delete_draft_document
DestructiveIdempotent

Delete a Markdown source of a tender — the draft, and by default the PDF that was typeset from it, file included. Without this there was no way back from create_draft_document: a source stayed in the tender's folder and every render_plan_folder set it again. keep_rendered leaves the PDF in place; it then carries no source any more and cannot be produced again, which is exactly the state the plan pipeline was built to end, so it is not the default.

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_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
draft_idYes
keep_renderedNoKeep the typeset PDF at the tender. Default false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so the safety profile is covered. The description adds real information beyond that: the default also deletes the rendered PDF file, and keep_rendered leaves a PDF with no source that 'cannot be produced again'. It does not mention failure behavior for a missing or already-deleted draft_id, which the idempotent hint only partly covers.

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?

Front-loaded with the action and its default effect, then the parameter caveat. The middle clause about create_draft_document and render_plan_folder is a bit discursive, but it earns its place by explaining why the tool must exist.

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?

A destructive mutation tool with no output schema and annotations covering the safety hints; the description supplies the missing consequence-of-parameters information. What remains thin is error/precondition behavior and permissions, which keeps it short of complete.

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 coverage is 50%, and the description substantially compensates for keep_rendered by explaining its downstream consequence (orphaned, non-reproducible PDF) far beyond the schema's 'Keep the typeset PDF at the tender. Default false.' The draft_id parameter is still only described indirectly as 'a Markdown source of a tender', with no format or lookup guidance.

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 names a specific verb and resource ('Delete a Markdown source of a tender — the draft') and immediately states the default cascade ('by default the PDF that was typeset from it, file included'). It is clear enough to distinguish this from a plain document delete, though it never explicitly contrasts itself with siblings like delete_document or delete_dossier_document.

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?

Usage context is implied through the rationale ('Without this there was no way back from create_draft_document') and the non-default keep_rendered path, which tells the agent the normal case is to remove both source and PDF. However, there is no explicit when-to-use/when-not-to-use statement or named alternative for deleting non-draft documents.

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