Skip to main content
Glama

Category List Files

category_list_files

List documents in a category directory and the document store, returning each entry's path, size, basename, and source; optionally filter by filesystem, store, or exact document name.

Instructions

List documents in a category directory and the document store.

Returns path, size, basename, and source for each entry. Does not filter by the category's configured patterns; use source to limit to filesystem or stored documents, and name for an exact document name.

Arguments

  • session_id: string | null

    • Opaque Guide interaction identifier returned by set_project. Pass it through unchanged on later tool, prompt, and resource calls. Do not construct, alter, or treat it as a FastMCP transport session id.

  • category (required): string

    • Name of the category to list files from

  • source: enum: 'files', 'stored' | null

    • Filter by source: 'files' (filesystem only), 'stored' (store only), or omit for both

  • name: string | null

    • Filter by document name (exact match)

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": {
      "args": "<args>"
    },
    "name": "category_list_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
argsYesArguments for category_list_files tool.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv2.0.0
    • removedInput schema / properties / args / additionalProperties
      Removed value: -false
    • addedInput schema / properties / args / properties / session_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Opaque Guide interaction identifier returned by set_project. Pass it through unchanged on later tool, prompt, and resource calls. Do not construct, alter, or treat it as a FastMCP transport session id."
      +}
    • changedOutput schema / (root)
      Previous value: -{
      -  "properties": {
      -    "result": {
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "result"
      -  ],
      -  "type": "object",
      -  "x-fastmcp-wrap-result": true
      -}New value: +null
  2. First observedv1.3.2

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations present, the description carries the full burden and does real work: it names the returned fields (path, size, basename, source) and discloses a non-obvious behavioral trait, that category patterns are not applied. It doesn't state permission requirements or pagination, but for a list operation the essential behavior is covered.

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 opening two sentences are front-loaded and earn their place. The Arguments block, however, duplicates the input schema field-for-field and roughly doubles the length for no informational gain.

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?

There is no output schema, so spelling out the returned fields is necessary and done well. With no annotations, a note on read-only safety and any limits on result size would make it fully complete, but nothing an agent needs to call it correctly is missing.

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 every parameter already has documentation. The description's Arguments section restates the schema text almost verbatim, adding no new syntax, format, or edge-case guidance beyond the baseline.

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?

Opens with a specific verb and resource ('List documents in a category directory and the document store') and immediately states what each entry contains. It does not explicitly contrast itself with likely alternatives such as category_collection_list or category_content, so it stops short of full sibling differentiation.

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?

Gives useful filtering direction ('use source to limit to filesystem or stored documents, and name for an exact document name') and a genuine exclusion ('Does not filter by the category's configured patterns'). However, it never says when to choose this tool over related siblings, so usage is only implied.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.