Skip to main content
Glama
Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as Formify. If you published it, claim ownership there.

Delete Document

delete_document
DestructiveIdempotent

Delete a document from the account. Only documents with status 'completed' or 'revoked' can be deleted; an expired document has to be revoked first. A revoked document is deleted together with its file. A completed document is shared with the people who signed it: it is removed from the account right away, and it is permanently deleted, together with its signed file, once every signer has also deleted their own copy. Always call get_document first to confirm status, then ask the user for confirmation — deletion is irreversible.

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

Input Schema

NameRequiredDescriptionDefault
documentIdYesUnique identifier of the document to delete

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true, but the description goes well beyond them: it explains that a revoked document is deleted along with its file, and that a completed document is removed from the account immediately but permanently purged only after every signer deletes their copy. That two-phase semantics plus the irreversibility warning is exactly the context an agent needs before invoking a destructive tool.

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?

Sentences are dense and every clause carries operational meaning — no filler. The only structural weakness is that the critical procedural instruction (confirm status, then get user confirmation) sits at the end rather than being front-loaded.

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?

For a one-parameter destructive tool with no output schema, the description covers eligibility, prerequisite lookups, user-confirmation requirement, file consequences, and irreversibility. Nothing an agent needs to call this safely is missing.

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?

The single parameter (documentId) is fully documented in the schema at 100% coverage, and the description adds no identifier format, source, or example. With one well-described param, the schema carries the semantics and the baseline 3 applies.

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 description states a specific verb and resource ('Delete a document from the account') and immediately narrows scope by eligible status ('completed' or 'revoked'), which cleanly distinguishes it from sibling deletions like delete_draft, delete_file, or delete_link without needing to name them.

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?

It gives explicit preconditions and ordering: call get_document first to confirm status, revoke an expired document before deletion, and obtain user confirmation because deletion is irreversible. This is a clear when-to-use / when-not-to-use split rather than implied usage.

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