Skip to main content
Glama

List directory

directory_list
Read-only

List the contents of a directory within an open workspace to inspect files and folders.

Instructions

List a directory inside an open workspace.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
workspaceIdYes
pathNo.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
entriesYes
Behavior2/5

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

The annotation readOnlyHint=true already declares the tool as read-only. The description adds no extra behavioral context (e.g., error handling, response format, or consequences). It merely restates the purpose.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single sentence and concise, but it adds little value beyond the name and title. It earns its place but could be more informative without being verbose.

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?

Given the tool has two parameters, one required, and no parameter descriptions, the description is incomplete. The presence of an output schema does not excuse the lack of input parameter details.

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?

With 0% schema description coverage and no parameter explanations in the description, the agent receives no guidance on workspaceId or path. The description fails to compensate for the missing schema documentation.

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 'List a directory inside an open workspace' clearly specifies the verb (List), resource (directory), and context (open workspace). It distinguishes well from sibling tools like file_read or file_write.

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 provides no guidance on when to use this tool versus alternatives, nor does it mention when not to use it. It only implies the requirement of an open workspace.

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/majiayu000/workspaceguard-mcp'

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