Skip to main content
Glama

delete_file

Permanently delete a single file only after confirm: true is set, preventing accidental removal when an AI agent needs to remove a specified path.

Instructions

Delete a single file. DESTRUCTIVE — requires confirm: true.

Input Schema

NameRequiredDescriptionDefault
pathYes
confirmNoMust be true to proceed

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.5.3

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does the most important thing: flags the operation as DESTRUCTIVE in caps and requires an explicit confirm flag. However it never says whether deletion is permanent/irreversible, what happens on a missing path, or what permissions are needed — material gaps for a delete tool.

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 short sentences with zero filler, and the destructive warning is front-loaded right after the purpose statement. Nothing could be trimmed without losing meaning.

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 no output schema and no annotations, the description covers purpose, safety warning, and the required guard flag. What remains missing is reversibility and failure behavior, which is a real but modest gap.

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 50%: 'confirm' is documented in the schema, while 'path' is undocumented. The description compensates for 'confirm' by restating the true-required constraint and lets 'a single file' imply that path targets a file rather than a directory, but adds no syntax for path.

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?

States a specific verb and resource ('Delete a single file'), and the qualifier 'single' implicitly separates it from the delete_directory sibling. It stops short of naming the sibling explicitly, so differentiation is inferred rather than stated.

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

Usage Guidelines3/5

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

No explicit when-to-use or when-not-to-use guidance, but the description does state a hard precondition ('requires confirm: true') that governs invocation. That is enough to imply usage for an agent, though not enough to route it against delete_directory or move_file.

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