Skip to main content
Glama

list_files

Lists files and directories in the workspace, with an optional path to inspect a specific folder.

Instructions

List files and directories in the workspace.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathNo
Behavior3/5

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

With no annotations, the description carries the transparency burden. The verb 'list' implies a read-only operation, which is helpful but not explicit. It omits details like recursive listing, hidden file behavior, or what happens with a nonexistent path. For a simple read tool, this is adequate but not rich.

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, clear sentence with no wasted words. It is appropriately brief for the tool's simplicity.

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?

The description is minimal and does not cover key context such as parameter behavior, return format, or usage nuances. While the tool is simple, the lack of output schema and annotations means the description should provide more detail to be complete.

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

Parameters1/5

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

Schema description coverage is 0% and the description does not explain the 'path' parameter at all. The agent cannot determine what path does, whether it is optional, or how it affects the listing, making the parameter semantics practically undocumented.

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') plus a resource ('files and directories in the workspace'), clearly differentiating it from sibling tools like read_file (which reads content) and write_file (which writes files). It unambiguously states the tool's function.

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 does not provide any guidance on when to use this tool versus alternatives like read_file or workspace_info. No exclusions or scenarios are mentioned, so the agent must infer usage on its own.

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/relr-prog/mcp-agent-to-vsc'

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