Skip to main content
Glama

delete_file

Deletes a single file from the workspace using a relative path. Fails if the path does not exist or is a directory.

Instructions

Delete a single file inside the workspace.

Args: path: Path to the file to delete, relative to the workspace root.

Returns: The deleted path. Fails if the path does not exist or is a directory (use delete_directory for directories).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does disclose key behavior: single-file scope, workspace-relative resolution, and the two failure modes. It omits irreversibility and any permission requirements, which are worth noting for a destructive operation, but the disclosure is well above baseline.

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-loaded one-line purpose, then compact Args/Returns sections. Every sentence adds information; nothing is redundant.

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 one-parameter destructive tool with no output schema and no annotations, the description covers purpose, parameter meaning, failure modes, and the sibling alternative. Only the irreversibility/permission angle is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must carry the parameter. It does: 'Path to the file to delete, relative to the workspace root' adds the resolution base that the schema's bare string type does not convey.

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 (delete) and resource (a single file) and immediately distinguishes itself from delete_directory, its closest sibling. An agent can select it confidently without opening the schema.

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?

Names the alternative for the directory case ('use delete_directory for directories') and states the failure conditions (path does not exist, is a directory). It doesn't cover permissions or edge cases like symlinks, but the primary routing guidance is explicit.

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