list_directory
List a directory on your computer (ls -la). Worth doing at the start of a session — the machine usually still holds work, tools and notes from last time.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Default /workspace |
List a directory on your computer (ls -la). Worth doing at the start of a session — the machine usually still holds work, tools and notes from last time.
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Default /workspace |
Changes observed during successful MCP inspections.
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden. The '(ls -la)' analogy usefully implies a read-only listing with hidden files and details, but it says nothing about permissions, path handling, or return format edge cases.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two short sentences that are front-loaded with the core action and then the rationale. Every sentence earns its place with no filler.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a trivial one-parameter read tool with no annotations or output schema, the description conveys purpose, the ls -la output shape, and when to invoke it. Only explicit return-format or permission notes are missing.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the single 'path' parameter (default /workspace) is already documented. The description adds no syntax or format detail about paths beyond what the schema supplies, matching the baseline for high-coverage schemas.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb and resource ('List a directory') and clarifies the format with the '(ls -la)' equivalence. It is clear on its own but does not distinguish itself from siblings like read_file or the other list_* tools.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Gives clear usage context — 'Worth doing at the start of a session' — and explains why (the machine holds prior work, tools, and notes). It stops short of naming alternatives or when not to use it, so it lacks exclusions.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Add one secure layer between your agents and this server.