Skip to main content
Glama

List files

fs_list
Read-onlyIdempotent

List a directory of the project ("workspace", "workspace/src", "data"). With recursive, lists the tree (dependency, build and git directories are skipped), up to 500 entries. env production lists the live site's files, read-only.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "project": "<project>"
    },
    "name": "fs_list"
  }
}

Input Schema

NameRequiredDescriptionDefault
envNopreview (default), or production: the live site's files, read-only (its code as published plus its own /data), for the project's owner and editors.preview
pathNoPath starting with "workspace/" (the code, /workspace) or "data/" (runtime files, /data).workspace
projectYesProject slug or id.
recursiveNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already establish readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered. The description still adds real behavior beyond them: dependency, build and git directories are skipped during recursion, results are capped at 500 entries, and env=production reflects the live site in read-only form.

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?

Three sentences, front-loaded with what the tool does, then the recursive behavior, then the production environment caveat. Dense and largely waste-free, though the nested parentheticals make it slightly harder to scan than it needs to be.

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?

No output schema exists, so the description carries the burden of return expectations, and it does so by disclosing the 500-entry cap and the skipped directories. What it omits — whether truncation is signaled, and what fields each entry contains — is minor for a read-only listing tool with strong annotations.

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?

With schema coverage at 75%, path and env are already documented, but the description adds the meaning of 'recursive' that the schema leaves blank — the tree shape, the skipped directories, and the 500-entry ceiling. Only 'project' and the exact truncation behavior around the 500 cap remain unelaborated.

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 (list) and resource (a project directory), and grounds it with concrete example paths ("workspace", "workspace/src", "data"). It is clear on its own, but it never names fs_search or fs_read, so the agent gets no explicit contrast with the sibling tools that also read files.

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?

Usage is implied through the example paths and the note that 'recursive' produces a tree, which helps an agent choose flag combinations. However, there is no explicit guidance on when to pick this over fs_search, or when a path belongs under workspace/ versus data/ beyond the schema's own wording.

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