Skip to main content
Glama

Delete workspace file

delete_file
DestructiveIdempotent

Delete a file from the server's workspace. With project_id, path is resolved inside that project's folder; without it, path is relative to the server workspace root.

Input Schema

NameRequiredDescriptionDefault
pathYesFile path, e.g. "public/index.html". Relative to the project folder when project_id is given, otherwise to the server workspace root.
server_idYesThe server's id, as returned by create_server or list_servers.
project_idNoOptional. Resolve path inside this project's workspace folder instead of the server workspace root.

Output Schema

NameRequiredDescriptionDefault
pathYesThe path, as given.
deletedYestrue once the file is gone.
project_idNoThe project the path was resolved in. null for the server workspace root.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/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 danger profile and repeat-safety are covered structurally. The description adds only the path-resolution rule and says nothing about behavior on a missing path, permission requirements, or whether deletion is recoverable, so it contributes modestly beyond annotations.

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, front-loaded with the action, then the one non-obvious resolution rule. No filler and nothing repeated unnecessarily.

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?

An output schema exists so return values need not be explained, and annotations cover destructiveness and idempotency. The path-resolution gotcha, the main source of wrong calls, is addressed; only error behavior on nonexistent files is unstated.

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 100%, and the description's statement about project_id resolving path inside the project folder is essentially a restatement of the project_id and path schema descriptions. Baseline 3 applies since the schema already does the heavy lifting.

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 file from the server's workspace") with clear scope. It does not distinguish itself from nearby siblings such as delete_project, cleanup_project, or delete_secret, so an agent must infer the boundary between deleting a file and deleting a project/secret.

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?

The description explains path resolution but never says when to use this tool versus alternatives (e.g., cleanup_project for bulk removal, list_files to confirm existence). There are no prerequisites, no confirmation guidance, and no when-not-to-use clause.

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.