Skip to main content
Glama

List files

list_files
Read-onlyIdempotent

List the files of a space, most recent first.

query: words searched in the name and description (most relevant first). archived: true to list only archived files. Pass next_cursor as cursor.

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

Input Schema

NameRequiredDescriptionDefault
limitNo
queryNo
spaceYesSpace identifier, e.g. “k3x9p2m4ta”: the `id` field returned by list_spaces.
cursorNo
archivedNo

Output Schema

NameRequiredDescriptionDefault
itemsYes
next_cursorYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / query / anyOf
      Previous value: -[
      -  {
      -    "description": "Mots cherchés, tous requis (8 au plus).",
      -    "maxLength": 200,
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "description": "Search words, all required (8 at most).",
      +    "maxLength": 200,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / space / description
      Previous value: -"Identifiant de l'espace, ex. « k3x9p2m4ta » : le champ `id` que donne list_spaces."New value: +"Space identifier, e.g. “k3x9p2m4ta”: the `id` field returned by list_spaces."
    • changedOutput schema / $defs / FileSummaryOut / properties / size / description
      Previous value: -"Taille en octets."New value: +"Size in bytes."
  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 readOnly, idempotent, non-destructive, closed-world behavior, so the safety profile is covered. Beyond that, the description adds real behavioral detail: results are ordered most recent first, and `query` searches name and description with relevance ordering. Pagination mechanics (cursor/next_cursor flow) are only hinted at.

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?

The core behavior is front-loaded in one sentence, followed by compact per-parameter notes with no filler. The trailing 'Pass `next_cursor` as `cursor`' is slightly disjointed since it describes output-to-input flow rather than a parameter definition, but it is still compact.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return shape need not be explained, which resolves the otherwise confusing `next_cursor` mention. With only one required parameter and a low schema coverage on two optional filters, the remaining gaps (`limit`, `space`) are minor relative to the complexity of a simple list operation.

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 only 20%, so the description must carry more weight; it explains `query` (searches name and description, most relevant first) and `archived`, and hints that the output `next_cursor` should be passed back as `cursor`. It says nothing about `limit` or the `space` identifier beyond what the schema already documents.

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 and resource and names the scope and order ('List the files of a space, most recent first'), so an agent immediately understands what is returned. It does not distinguish itself from siblings such as get_file or list_documents, leaving differentiation to inference.

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 guidance on when to choose this tool over siblings like get_file or list_documents, and no stated prerequisites or exclusions. The only conditional advice is per-parameter ('archived: true to list only archived files'), which is parameter usage rather than tool-selection guidance.

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