Skip to main content
Glama

ls

Read-only

List directory contents, including hidden entries on request, to display files and subfolders at any path.

Instructions

List the contents of a directory.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
allNoInclude hidden entries
pathNoDirectory to list.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

The annotation readOnlyHint=true already establishes the tool's safety profile. The description adds no additional behavioral traits beyond the basic listing action, such as non-recursiveness or default path behavior. Since the annotation covers the key safety aspect, a score of 3 is appropriate—no contradiction, but no extra context.

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 sentence with no filler. Every word contributes to conveying the tool's purpose, making it extremely concise and efficiently structured.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool is simple, with an output schema present and well-documented parameters. The description fully captures the tool's essence for an AI agent, and no additional return-value details are needed due to the output schema. It is complete for its intended scope.

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?

The input schema fully describes both parameters (all and path) with their types, defaults, and descriptions, providing 100% coverage. The tool description adds no parameter-level information. Thus, the baseline of 3 applies; the schema does the heavy lifting.

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 the contents of a directory' uses a specific verb and resource, clearly distinguishing it from sibling tools like read (file content), find (search), and write/edit (modify). It is unambiguous and immediately conveys 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 Guidelines3/5

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

The description is too brief to provide explicit usage guidance or mention alternatives. While the purpose implies listing directory contents, it does not state when to prefer this over find or grep in recursive or search scenarios. Usage context is only implied by the tool's name and purpose.

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/garland3/basic-fns-mcp'

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