Skip to main content
Glama

Ls

ls
Read-only

Lists one directory level in Basic Memory, showing projects at '/' or nodes under '/path' with paginated results.

Instructions

List one directory level. '/' lists projects; paths accept '/path'.

Input Schema

NameRequiredDescriptionDefault
pageNoPage number (1-indexed).
pathNoDirectory path to list. '/' (the default) with no project param lists the active projects as mount points; '<project>/path' routes into that project./
projectNoProject name. Optional - '/' lists projects; qualified paths route themselves; other unqualified paths refuse when several projects are addressable.
page_sizeNoNodes per page.
project_idNoProject external_id (UUID); takes precedence over `project`.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.24.1

TDQS

B3.4/5.0
Behavior3/5

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 the routing behavior ('/' lists projects, '<project>/path' routes into a project), which is genuine added value, but says nothing about pagination behavior or the 'refuses when several projects are addressable' condition that the schema mentions.

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?

Two tightly packed sentences with the core action front-loaded and the root-path special case attached directly. Nothing redundant.

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

Completeness4/5

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

With an output schema present and full schema coverage, the description need not explain returns or parameters. It covers the main conceptual hurdle (root vs project-qualified paths); only the sibling distinction and pagination expectations are absent, which are minor.

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?

Schema description coverage is 100%, so all five parameters including page, page_size and project precedence are already documented in structured fields. The description merely restates the path convention at a higher level, which is a baseline-level contribution.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource ('List one directory level') and immediately clarifies the special root case. It does not, however, distinguish itself from the sibling list_directory / bm_list, which an agent could easily confuse with this tool.

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?

There is no explicit guidance on when to choose this over list_directory or bm_list, and no stated prerequisites or exclusions. Usage is only weakly implied by the path-shape hints.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.