Skip to main content
Glama

ck_fs_ls

Read-onlyIdempotent

List files and directories in a project root to browse directory structure. Read-only operation without modifying any files.

Instructions

List files and directories inside the bound project root. Read-only — no files are modified. path is a relative directory path to list; omit to list the project root. Use ck_fs_ls to browse directory structure. Use ck_fs_find to locate files by name fragment. Use ck_fs_read to read a specific file. Use ck_fs_grep to search file contents.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathNo
project_rootNoAbsolute path to the project root directory on the local filesystem.
session_idNoUnique session identifier for correlating findings, proofs, budget, and audit trail.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
entriesNo
pathNo
Behavior4/5

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

Annotations already declare readOnlyHint, destructiveHint, and idempotentHint. The description adds context by stating 'Read-only — no files are modified' and explaining the optional path parameter's default behavior. This reinforces and slightly extends beyond the annotations.

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 compact: five sentences with no wasted words. The main purpose and read-only nature are front-loaded, followed by parameter explanation and sibling tool references. Every sentence earns its place.

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?

Given the presence of annotations (readOnlyHint, etc.) and an output schema (not shown), the description is complete for the tool's complexity. It covers purpose, usage, parameters, and alternatives without needing to detail return values.

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

Parameters4/5

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

The description adds meaning to the 'path' parameter by explaining it's a relative directory path and that omitting it lists the project root. The other two parameters (project_root, session_id) are already documented in the input schema with descriptions, so overall coverage is good.

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 clearly states it lists files and directories inside the bound project root, using the verb 'list' and specifying the resource. It also distinguishes itself from sibling tools like ck_fs_find, ck_fs_read, and ck_fs_grep by describing their different purposes.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

The description explicitly tells when to use this tool: 'Use ck_fs_ls to browse directory structure.' It also provides clear alternatives: ck_fs_find for name-based search, ck_fs_read for reading files, and ck_fs_grep for content search, along with the note that omitting path lists the project root.

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/aryaminus/controlkeel'

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