List files
list_filesList files in a directory
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| project_id | No | Project id (or use session from use_project) |
list_filesList files in a directory
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| project_id | No | Project id (or use session from use_project) |
Changes observed during successful MCP inspections.
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds only the bare notion of listing within a directory and says nothing about recursion, pagination, hidden files, or ordering behavior, so it barely clears the lower bar set by annotations.
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?
The single sentence is front-loaded and free of noise, but its brevity reflects under-specification rather than efficient communication. It withholds details the agent needs to call the tool correctly.
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?
With no output schema and one undocumented parameter, the description should carry more weight. It omits the meaning of the default empty path, the role of project_id/session, recursion behavior, and return shape, leaving material gaps for a tool with two parameters and several sibling alternatives.
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 coverage is only 50%: project_id is documented, but path has no description and defaults to an empty string. The description does not explain what an empty path means, whether it is relative or absolute, or how the project/session context affects the listing, so it fails to compensate for the coverage gap.
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?
The description states a clear verb and resource: list files in a directory. It does not distinguish this from closely related siblings such as glob_files, search_files, or read_file, so it falls short of the sibling-differentiation bar for a 5.
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?
There is no guidance on when to use this tool versus glob_files, search_files, or read_file. The agent must infer that this is a plain directory listing rather than a pattern search or content read.
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.