Skip to main content
Glama

List workspace files

list_files
Read-only

List paths in the server's workspace. Pass project_id to list only that project's folder (paths come back relative to the project); omit it to list the whole server workspace.

Input Schema

NameRequiredDescriptionDefault
server_idYesThe server's id, as returned by create_server or list_servers.
project_idNoOptional. List only this project's workspace folder; returned paths are relative to the project.

Output Schema

NameRequiredDescriptionDefault
filesYesFile paths.
project_idNoThe project the paths are relative to. null for the server workspace root.

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 declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds genuinely new behavior information: that omitted project_id widens the scope to the entire server workspace and that returned paths are relative to the project — a non-obvious output nuance. It stops short of noting any listing limits or pagination.

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 sentences, zero waste, with the scoping rule front-loaded ahead of the optional-parameter explanation. Nothing is repeated or padded.

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 only two well-documented parameters, full annotation coverage, and an output schema handling return values, the description covers nearly everything an agent needs. A minor gap remains around whether the listing recurses into subdirectories or has any size/limit behavior.

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 coverage is 100%, so both parameters are already documented, and the description's explanation of project_id largely restates the schema text. The one added nuance is the contrast between project-relative and whole-workspace listing, which is the baseline-plus credit for a fully covered schema.

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 uses a specific verb+resource ('List paths in the server's workspace') and immediately scopes the behavior via project_id, so an agent knows exactly what this returns. It does not explicitly name a sibling tool to differentiate from (e.g., list_projects or read_file), which keeps it just short of a 5.

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?

It gives a concrete conditional rule: pass project_id for one project's folder, omit it for the whole workspace. However, it offers no guidance on when to reach for this tool versus alternatives like list_projects, list_servers, or read_file — usage is implied rather than stated against the sibling set.

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.