Skip to main content
Glama
ellmos-filecommander-mcp

ellmos-filecommander-mcp

Delete Directory

fc_delete_directory
DestructiveIdempotent

Delete a directory, optionally including all contents recursively, to remove empty or non-empty directories from the filesystem.

Instructions

Deletes a directory.

Args:

  • path (string): Path to the directory

  • recursive (boolean): Delete non-empty directories too

Warning: With recursive=true ALL contents are irreversibly deleted!

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": "fc_delete_directory"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesPath to the directory
recursiveNoDelete recursively

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.11.5
    • removedInput schema / additionalProperties
      Removed value: -false
  2. Addedv1.9.3
  3. Removedv1.9.3
  4. First observedv1.7.8

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, so the safety profile is known; the description still adds real value by spelling out that recursive=true irreversibly removes ALL contents. It stops short of saying what happens when recursive=false on a non-empty directory (error vs. silent no-op) or whether a safe-mode lock (fc_check_cloud_lock exists) can block the call.

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?

Short and front-loaded: the action, then parameters, then the warning last. The Args block largely duplicates the schema, so it isn't maximally economical, but nothing is padded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive, no-output-schema mutation, the description covers the headline risk but omits key behaviors: failure mode on non-empty directories without recursive, whether deletion bypasses any trash/safe-delete mechanism, and permission or lock prerequisites. Annotations carry the destructive flag, so this is adequate but with clear gaps.

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 both parameters are already documented. The description restates them nearly verbatim ('Path to the directory') but does add the meaning of recursive as 'delete non-empty directories too', which is a modest enrichment over the schema's bare 'Delete recursively'.

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 ('Deletes a directory') that unambiguously identifies the operation. It does not differentiate itself from close siblings like fc_delete_file or fc_safe_delete, which an agent could reasonably confuse with this tool.

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?

There is no guidance on when to use this versus fc_safe_delete (presumably a recoverable deletion) or fc_delete_file. The only conditional hint is the recursive flag, which is operational rather than a use-case routing rule.

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