Skip to main content
Glama

file_delete

Destructive

Delete one file or empty directory

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "workspaceSlug": "<workspaceSlug>",
      "path": "<path>"
    },
    "name": "file_delete"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
workspaceSlugYes

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, readOnlyHint=false, and openWorldHint=false, so the safety profile is covered. The description adds the useful constraint that the directory must be empty, but says nothing about irreversibility, missing-path behavior, or required authorization beyond what annotations provide.

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?

A single short sentence with no filler, and the key scope constraint ('empty directory') is included rather than buried. It is efficient, though its brevity means several needed details are simply absent rather than over-explained.

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 a destructive, two-parameter tool with no output schema and no parameter documentation, the description leaves substantial gaps: no error semantics for nonexistent paths, no permission requirements, and no clarification of workspace-relative paths. Destructive operations warrant more disclosure than this.

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

Parameters2/5

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

Schema description coverage is 0% for both parameters (path, workspaceSlug), so the schema supplies no meaning at all. The description never mentions either parameter, offering no format, path-resolution, or workspace-scoping details to compensate for the coverage gap.

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?

Specific verb plus resource: 'Delete one file or empty directory' tells an agent exactly the operation and its scope, including the constraint that only a single item is removed. It does not distinguish this from the many sibling *_delete tools, but the resource name ('file') makes the target unambiguous.

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?

Usage is only implied by the verb and the phrase 'empty directory', which hints that non-empty directories are out of scope, but no explicit when-to-use or when-not guidance is given. Nothing states the prerequisites, permissions, or what to do for recursive removal or batch 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