Skip to main content
Glama
manganate006

OpenLMNP

Delete Document

delete_document
Destructive

Remove a supporting document by its ID, permanently deleting both the record and the physical file from storage. Irreversible action helps keep accounting files accurate.

Instructions

Supprime un document justificatif par son identifiant. Le fichier physique est également supprimé du stockage. Cette action est irréversible.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
document_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.3/5.0
Behavior4/5

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

Annotations include destructiveHint=true, and the description adds key context beyond that: the physical file is also removed from storage and the action is irreversible. This helps the agent understand consequences not implied by the annotation alone.

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?

Two concise sentences. Each adds value: what is deleted, the physical file deletion, and irreversibility. No fluff or repetition of schema fields.

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?

The tool is simple (one parameter, no output schema). The description, combined with the destructiveHint annotation, fully covers the essential behavior: what is deleted, how, and permanent consequences. No significant gaps for an agent to invoke it correctly.

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 coverage is 0% for the single parameter document_id. The description clarifies the parameter is the document's identifier, but provides no further detail about format, source, or constraints. This is minimal but sufficient for a simple integer 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?

The description clearly states the tool deletes a supporting document (document justificatif) by its ID. It uses a specific verb ('Supprime') and resource, distinguishing it from sibling delete_* tools such as delete_expense or delete_furniture.

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?

The purpose is clear: use when deleting a document. It doesn't explicitly mention alternatives or exclusions, but the context implies this is the tool for deleting supporting documents, and sibling names differentiate by resource type. No misleading guidance.

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