Skip to main content
Glama

list_files

Read-only

List files in a workspace (yours, or any public one). Use prefix like 'drafts/' to list a folder. Each file carries its latest version, sha256 and saved_by (0.52.0), so a workspace can be checked in one call.

Input Schema

NameRequiredDescriptionDefault
limitNoThe most files to return.
prefixNoOnly files whose path starts with this, e.g. 'drafts/'. Empty lists everything.
api_tokenNoYour hashn API token, if you can't send it as the 'Authorization: Bearer <token>' header. Omit it when the header is set.
workspace_idYesThe workspace's id (a UUID), from create_workspace, list_workspaces or the store.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / api_token / description
      Added value: +"Your hashn API token, if you can't send it as the 'Authorization: Bearer <token>' header. Omit it when the header is set."
    • addedInput schema / properties / limit / description
      Added value: +"The most files to return."
    • addedInput schema / properties / prefix / description
      Added value: +"Only files whose path starts with this, e.g. 'drafts/'. Empty lists everything."
    • addedInput schema / properties / workspace_id / description
      Added value: +"The workspace's id (a UUID), from create_workspace, list_workspaces or the store."
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered. The description adds meaningful output-shape context (each file carries latest version, sha256 and saved_by), which tells the agent what it gets back. It doesn't cover pagination/limit behavior or ordering, keeping it below a 5.

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?

Three short sentences, front-loaded with the core action and scope, followed by the folder trick and the one-call rationale. Every sentence earns its place with no repetition of schema details.

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 no output schema, the description usefully previews return fields and the one-call workspace-check use case. It does not describe limit/pagination behavior or output ordering, which an agent listing large workspaces would want, but overall it covers the essentials for a read-only listing tool.

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 workspace_id, prefix, limit and api_token are already documented by the schema. The description only reinforces the prefix-as-folder idiom and workspace ownership scope; it adds no syntax or format details beyond the schema, so the baseline 3 applies.

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 opens with a precise verb+resource ('List files in a workspace') and immediately scopes it to 'yours, or any public one'. This distinguishes it from siblings like read_file (content) and file_history (versions) without needing to inspect the schema.

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

Usage Guidelines4/5

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

It gives a clear usage pattern for listing folders via prefix ('drafts/') and frames the tool as sufficient for checking a whole workspace in one call. It stops short of naming alternatives or stating when-not to use it, so it lacks the explicit routing of a 5.

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