Skip to main content
Glama

Delete a document

delete_document
Destructive

Permanently delete a document you sent. An open document must be voided first. A voided, declined or expired document is erased at once. A completed document is erased 7 days later, and everyone on it is told to save their signed copy before then. Erased means the files, names, addresses, numbers and signature images are gone; only hashes and times remain, so a signed copy someone holds can still be verified. This cannot be undone, so it is meant for a document the user has clearly said to delete.

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": {
      "id": "<id>"
    },
    "name": "delete_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the destructiveHint annotation: it distinguishes timing by document state (voided/declined/expired erased immediately, completed erased after 7 days), discloses that recipients are notified to save their signed copy, and defines what 'erased' leaves behind (hashes and timestamps) so verification still works. It also restates irreversibility as a caution rather than merely repeating destructiveHint=true.

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-loads the action, then layers prerequisite, timing, notification, data-retention semantics, and the caution. Every sentence contributes distinct information; nothing restates the title or annotations redundantly.

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 single-parameter destructive tool with no output schema, the description covers timing, side effects, recipient notification, and residual data thoroughly. The only gap is that the 'id' parameter's format and provenance are left to the bare schema.

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?

Only one parameter, 'id', and schema description coverage is 0%. The description implies the identifier refers to a document the caller sent, which is modest added meaning, but it never states the id format, source, or whether it accepts anything beyond an integer document id.

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 with a scope qualifier: 'Permanently delete a document you sent.' The word 'permanently' plus the prerequisite that an open document must be voided first makes it distinguishable from void_document without opening either schema.

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?

Gives an explicit prerequisite ('An open document must be voided first'), which routes the agent to void_document for the open case, and a when-to-use condition ('meant for a document the user has clearly said to delete'). The when-not path and the confirmation bar are both stated rather than implied.

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