Skip to main content
Glama
MCP Filesystem Server

MCP Filesystem Server

by pocho23

delete_file

Deletes files or directories from the Downloads folder, with an optional recursive mode for removing directory contents. Use it to clean up downloaded items while restricting deletion to that safe location.

Instructions

Delete a file or directory (only allowed in Downloads folder for safety)

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": {
      "path": "<path>"
    },
    "name": "delete_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesPath to the file or directory to delete (must be in Downloads)
recursiveNoIf true, delete directories and their contents recursively (default: false)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It discloses the Downloads-only restriction, but says nothing about irreversibility (permanent vs trash), what happens if the path is outside Downloads, whether confirmation is required, or how recursive deletion affects nested content.

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 sentence with the core action front-loaded and the safety constraint attached inline. No filler, though the constraint could be a fuller clause rather than a terse parenthetical.

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, annotation-free tool with no output schema, the definition is under-specified: it omits irreversibility, error behavior outside Downloads, and the consequences of recursive deletion. An agent could call it correctly but not safely.

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%, so the path and recursive parameters are already fully documented. The description adds no meaning beyond the schema — it only restates the Downloads constraint already present in the path property.

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?

Contains a specific verb plus resource ('Delete a file or directory') and a scope constraint ('only allowed in Downloads folder'). It is clearly distinguishable from read_file/write_file/get_file_info siblings, though no sibling is named as an alternative.

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 parenthetical gives a location constraint but no when-to-use/when-not guidance, no mention of how to remove directory contents vs the file itself, and no pointer to alternatives such as list_directory for verification before deletion.

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