Skip to main content
Glama

list_directory

List files and directories in a WSL path, showing type and size, with directories first. Supports pagination for large directories.

Instructions

List entries in a WSL directory, with type and size. Directories sort first. Supports offset/limit pagination for large directories.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
limitNoMax entries to return (default all)
distroNo
offsetNoEntry index to start at (default 0)
Behavior3/5

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

With no annotations provided, the description carries the full burden. It discloses useful behavior: entries include type and size, directories sort first, and offset/limit pagination is supported. However, it does not mention return format details, hidden-file handling, symlink behavior, or potential errors, leaving notable gaps.

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 two sentences and every clause earns its place: it states the operation, output fields, sort order, and pagination support. No filler or redundancy.

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 has four parameters and no output schema. The description covers the core listing behavior and pagination, but does not clarify the role of the 'distro' parameter or the structure of the returned entries. Given the WSL context and sibling tools like list_distros, this is a significant omission for a fully self-contained description.

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 only 50% (limit and offset have descriptions; path and distro do not). The description mentions offset/limit pagination, reinforcing the schema for those parameters, but it adds nothing about path semantics or how distro is selected, so the low-coverage parameters remain under-explained.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb ('List') with a clear resource ('entries in a WSL directory') and specifies additional output details (type and size). It clearly distinguishes from sibling tools like read_file and get_file_info, which focus on file content or single-file metadata.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage: it is for listing directory entries and mentions pagination for large directories. However, it does not explicitly state when to prefer this tool over alternatives, nor does it provide exclusions or when-not-to-use 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/Darling209/wsl-bridge-mcp'

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