Skip to main content
Glama

document_delete

Destructive

Deletes a document and cancels any signing in progress so you can withdraw an incorrect request before creating a replacement. Requires confirm_delete; removes rather than archives.

Instructions

Delete a document and cancel signing if in progress (requires confirm_delete). Use this to withdraw an incorrect request before creating a replacement. This deletes the document; it does not archive it.

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": "document_delete"
  }
}

Input Schema

NameRequiredDescriptionDefault
document_idYes
confirm_deleteNoConfirm deletion of this document and cancellation of signing in progress.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.9

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the safety profile is carried by structured data. The description adds real value beyond that by disclosing the in-progress signing cancellation side effect, the confirm_delete requirement, and the non-archival semantics. It does not state irreversibility, permissions, or recovery options explicitly.

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 short sentences, front-loaded with the action and its guard parameter, followed by usage and a scope boundary. No filler, and each sentence carries distinct information.

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 two-parameter destructive tool with annotations and no output schema, the description covers the essentials: what is deleted, what is cancelled, the confirmation requirement, and what the tool is not. The only real gap is the absence of any statement about whether deletion is permanent or recoverable.

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 only 50% – document_id has no description at all – so the description must compensate, and it does by noting the operation "requires confirm_delete" even though the schema lists only document_id as required. That is a meaningful clarification the schema alone would obscure, though document_id's expected format is still undocumented.

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?

States a specific verb and resource ("Delete a document") plus the conditional side effect ("cancel signing if in progress"), which lets an agent distinguish it from document_get, document_update_recipients and other document siblings without opening any 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?

Gives an explicit usage scenario ("withdraw an incorrect request before creating a replacement") and an explicit exclusion ("it does not archive it"). It stops short of naming an alternative archival tool the agent should use instead, so routing to the correct sibling is only partly handled.

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