Skip to main content
Glama
feli0x

DocFS

by feli0x

list_files

List files and directories from configured roots as JSON, with .gitignore filtering, optional path, glob pattern, recursion, and hidden file options.

Instructions

Lists files and directories in the configured root directories and returns JSON data

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathNoOptional specific path within the root directories to list
patternNoOptional glob pattern to filter files (e.g., "*.js", "*.md")
maxDepthNoMaximum directory depth to traverse (default: 10)
recursiveNoWhether to list files recursively (default: true)
includeHiddenNoWhether to include hidden files and directories (default: false)
Behavior3/5

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

With no annotations, the description carries the full burden of behavioral disclosure. It adds useful context about the scope ('configured root directories') and output format ('returns JSON data'), but does not cover details like symlink handling, error behavior, or performance characteristics. These omissions are not critical for a read-only listing tool, but more depth would improve transparency.

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?

The description is a single, front-loaded sentence that directly states the action and output. Every word earns its place, and there is no unnecessary detail or repetition.

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?

The tool is relatively simple and the schema covers all parameters, but the description does not mention relationship to sibling tools or provide a return structure beyond 'JSON data'. A note on when to use this vs dir_tree would improve completeness, though the current text is minimally viable given the tool's simplicity.

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?

All five parameters are fully described in the input schema (100% coverage), so the description adds no additional parameter semantics. The baseline score of 3 applies because the schema handles parameter documentation adequately.

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?

The description clearly states the tool lists files and directories within configured root directories and returns JSON data. However, it does not explicitly distinguish this tool from the sibling 'dir_tree', which might present a similar listing in a different format.

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?

No guidance is provided on when to use this tool versus alternatives like search_files, read_files, or dir_tree. There is no context or exclusions, leaving the agent to infer the appropriate usage solely from the tool name and description.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/feli0x/docfs'

If you have feedback or need assistance with the MCP directory API, please join our Discord server