Skip to main content
Glama

Delete Document

delete_document
DestructiveIdempotent

Delete a document and its pages.

Input Schema

NameRequiredDescriptionDefault
idYes

Output Schema

NameRequiredDescriptionDefault
deleteDocYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and readOnlyHint=false, so the safety profile is structured. The description's one added fact — that pages are deleted along with the document — is genuinely useful cascade information not present in the annotations, but it stops short of saying the deletion is irreversible or whether confirmation/recovery exists.

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?

One short sentence, front-loaded with the verb and resource, with zero filler. Its brevity is slightly under-specified for a destructive operation rather than wordy, but there is no wasted text to trim.

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

Completeness2/5

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

For an irreversible, destructive, cascading operation, the description omits permanence/recovery, permission requirements, and how the id is obtained. The output schema exists so return values needn't be explained, but the behavioral gaps around a delete are significant.

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 description coverage is 0%, so the single required parameter 'id' is documented nowhere. The description implies the identifier refers to a document, which is the minimum needed to use it, but it adds no format, source (where to obtain the id), or behavior for invalid ids.

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?

"Delete a document and its pages" states a specific verb (delete) and resource (document), and adds scope detail — the deletion cascades to the document's pages. It does not differentiate from the sibling archive_document, so an agent must infer on its own which of the two is the soft vs hard removal path.

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

Usage Guidelines2/5

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

There is no when-to-use guidance and no mention of the obvious alternative, archive_document, which is present in the sibling list. The description also gives no prerequisites (ownership, permissions) or warning about when to prefer archiving over permanent deletion.

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