Skip to main content
Glama

list_dir

List a directory's contents recursively with configurable depth and entry limits to browse filesystem hierarchies.

Instructions

List a directory recursively with bounded depth and entry limits.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
depthNo
Behavior2/5

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

No annotations are provided, so the description must disclose behavioral traits. It mentions 'bounded depth and entry limits' but does not state that the operation is read-only, does not describe side effects, permissions, or error behavior. This is insufficient for a fully transparent description.

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?

The description is a single, front-loaded sentence that efficiently conveys the core action and constraints. However, 'entry limits' is vague and unnecessary, slightly reducing clarity. Overall, it is concise but could be more precise.

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?

With no output schema and 0% schema coverage, the description should explain return format, error handling, and the meaning of 'entry limits'. It does not. An agent would lack sufficient information to interpret results or handle errors, making the description incomplete for this tool's complexity.

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

Parameters2/5

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

Schema coverage is 0%, so the description should add meaning for both parameters. It adds context for depth (bounded, recursive) but not for path. 'Entry limits' is mentioned but not reflected in schema, causing confusion. The description partially compensates for depth but fails for path.

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 uses the specific verb 'List' with resource 'directory' and adds constraints 'recursively' and 'bounded depth and entry limits'. It differentiates from sibling tools like read_text_file (file content) and run_command (execution). However, it does not specify what is listed (names, sizes, etc.), leaving some ambiguity.

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 explicit guidance on when to use this tool versus alternatives. The description does not mention when not to use it or any prerequisites. The context of sibling tools implies use for directory listing, but the description itself offers no such guidance.

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/mauro3422/bridgeWEB-MCP'

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