Skip to main content
Glama
ellmos-filecommander-mcp

ellmos-filecommander-mcp

List Directory

fc_list_directory
Read-onlyIdempotent

Lists files and subdirectories in a specified directory, with optional recursion depth and hidden-file display, so you can inspect folder contents.

Instructions

Lists files and subdirectories.

Args:

  • path (string): Path to the directory

  • depth (number, optional): Maximum depth for recursive listing (default: 1)

  • show_hidden (boolean, optional): Show hidden files

Returns:

  • Formatted list of all entries with icons

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_list_directory"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesPath to the directory
depthNoRecursion depth
show_hiddenNoShow hidden files

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.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and a closed-world scope, so the safety profile is covered. The description adds the default recursion depth and notes the return format ('entries with icons'), but says nothing about error behavior on nonexistent paths, permission issues, or output volume for deep listings.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The one-line purpose is front-loaded and the overall length is short, but the Args and Returns blocks duplicate what the schema already conveys, so a portion of the text does not earn its place.

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?

With no output schema, the description does supply a return summary ('formatted list of all entries with icons'), and the parameter set is fully covered by the schema. For a simple read-only listing tool this is close to complete, missing only edge-case behavior.

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 schema already documents path, depth, and show_hidden including defaults and bounds. The description's Args block largely restates those fields and adds only the clarification that depth governs 'recursive listing', which earns baseline 3 rather than more.

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?

'Lists files and subdirectories' gives a specific verb and resource, clearly distinct from siblings like fc_search_files, fc_file_info, or fc_read_file. It stops short of explicitly naming those siblings as alternatives, so it lands at 4 rather than 5.

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 when-to-use guidance and no mention of alternatives such as fc_search_files for pattern-based discovery or fc_file_info for metadata. The agent must infer usage entirely from the tool name.

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