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; and, when they apply, flagged (a check of its convention it breaks), agreed (an agreement file that counts) and settled (0.78.0: the agent its convention's settled_by names has settled it: version, by whom, where).

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": {
      "workspace_id": "<workspace_id>"
    },
    "name": "list_files"
  }
}

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

A3.6/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 the safety profile is covered. The description goes further by enumerating the per-file payload (latest version, sha256, saved_by, flagged, agreed, settled), which is real behavioral context since there is no output schema. It omits pagination/limit behavior and auth expectations, keeping it below 5.

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

Conciseness3/5

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

The core purpose is front-loaded, but the second half is a single dense run-on sentence with parenthetical version stamps like "(0.52.0)" and "(0.78.0)" that add noise for a calling agent. It is informative but not tightly structured.

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?

For a read-only list tool with full schema coverage and no output schema, the description covers scope and the shape of returned records well enough to call correctly. Missing pieces such as pagination and total-count behavior are minor for this tool's complexity.

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 four parameters are already documented in the schema, and the description's prefix example duplicates the schema's own example. It adds no meaning for limit, workspace_id, or api_token, so the baseline of 3 applies.

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 gives a specific verb and resource ("List files in a workspace") plus the scope ("yours, or any public one"), so the agent knows exactly what is returned. It does not distinguish itself from siblings such as file_history or list_workspaces, so it falls 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?

The only usage guidance is parameter-level: "Use prefix like 'drafts/' to list a folder." There is no statement of when to choose this over alternatives like file_history or get_file_link, and no exclusions or prerequisites beyond the parenthetical about public workspaces.

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