Skip to main content
Glama

codebase_list_files

List files in a project directory.

Input Schema

NameRequiredDescriptionDefault
pathNo
projectIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.6/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It does not disclose whether the listing is recursive or flat, whether it is paginated, whether auth or scope restrictions apply, or how many entries might be returned. For a read tool with zero annotation coverage, this leaves major gaps.

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

Conciseness4/5

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

A single short sentence with no waste. It is appropriately sized but nearly content-free, so conciseness comes at the cost of substance.

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?

With two parameters, 0% schema coverage, no annotations, and no output schema, the description is far too thin. An agent lacks enough information about scope, recursion, and parameter meaning to invoke the tool reliably in a codebase toolchain with many siblings.

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?

Schema description coverage is 0%, and the description only vaguely implies a project directory. Neither 'projectId' nor 'path' is explained: what a projectId references, whether path is relative to the project root, or whether null/empty path defaults to root.

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?

The description states a clear verb+resource ('List files') with a scoping context ('in a project directory'). It distinguishes from sibling codebase_get_file (single file retrieval), though it doesn't explicitly name that sibling.

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?

No when-to-use guidance, no alternatives mentioned, and no exclusions. An agent could infer it lists files, but nothing tells it whether recursion, depth, or hidden-file behavior applies, nor points to codebase_get_file for single-file reads.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources