Skip to main content
Glama
j0hanz

filesystem-mcp

by j0hanz

List

list
Read-only

List sorted directory entries or ASCII tree with configurable depth, pagination, and filters for hidden or ignored files.

Instructions

List sorted directory entries and an ASCII tree. maxDepth=1 is top-level. maxEntries sets page size; continue with nextCursor. resourceUri is only for hard-cap overflow.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathNoDirectory to list (default: first allowed root)
cursorNoOpaque pagination cursor; pass unchanged for the next page. Pages slice one snapshot taken on the first call; it expires after ~60s — re-request without a cursor if rejected.
maxDepthNoMax directory depth to traverse (default: 1 = top-level only; increase to recurse deeper)
maxEntriesNoPage size (default: 1000). Continue with nextCursor; resourceUri is only for hard-cap overflow.
includeHiddenNoInclude hidden items (starting with .)
includeIgnoredNoInclude ignored items (node_modules, .git, etc).
Install Server

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds behavioral details such as the ASCII tree output, sorting, and the pagination mechanism ('continue with nextCursor'). However, it omits details like snapshot expiration (which is only in the cursor schema) and does not fully describe output format, keeping it at an average level.

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, tightly packed sentence with a clear front-loaded purpose. It avoids redundancy and every clause adds value, efficiently conveying the core function and key parameter behaviors without fluff.

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 tool with no output schema and six fully documented parameters, the description provides adequate but not exhaustive context. It explains the main behavioral aspects (tree structure, pagination) but does not describe the output format or error handling. Given the tool's simplicity and the rich schema, this is minimally sufficient but leaves room for more detail.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3. The description adds extra semantic context beyond the schema by explaining maxDepth semantics ('maxDepth=1 is top-level') and pagination behavior ('maxEntries sets page size; continue with nextCursor'), including a note about 'resourceUri' for hard-cap overflow, which enriches parameter understanding.

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 a specific action ('List') and the resource ('sorted directory entries and an ASCII tree'), going beyond a tautology. It provides useful keywords like 'sorted' and 'ASCII tree' that help distinguish the tool from others like find_files, though it does not explicitly contrast them.

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 description offers parameter-level guidance (e.g., 'maxDepth=1 is top-level', 'maxEntries sets page size') but does not explain when to use this tool versus its siblings (e.g., find_files, search_text). There is no mention of exclusions or alternatives, leaving the agent to infer the appropriate context.

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

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/j0hanz/filesystem-mcp'

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