Skip to main content
Glama

files__list_files

Lists files and folders in a specified shared-folder directory; folder names end with / to distinguish them from files.

Instructions

List the files and folders in a folder of the shared folder. Folders end with /.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "files__list_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
directoryNo.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose one genuinely useful behavioral detail — that folder entries are marked with a trailing slash — but says nothing about recursion, ordering, pagination, or access restrictions on the shared folder.

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 short sentences, front-loaded with the core action, and the trailing-slash convention is stated compactly with zero filler.

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 one-optional-parameter listing tool with an output schema covering return values, the description is close to sufficient and correctly avoids restating the schema. The remaining gap is path format and scope details for the 'directory' argument.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% for the single optional 'directory' parameter, and the description never explains its expected format, whether paths are relative to the shared folder root, or what the '.' default means. It only vaguely implies the path targets a folder inside the shared folder, which is not enough to compensate.

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 and folders within a folder of the shared folder. It is clearly distinguishable from read_file or search_file by the verb alone, though it never names those siblings to reinforce the contrast.

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?

Usage is only implied: it is the tool you call to enumerate a directory's contents. There is no explicit statement of when to prefer this over files__search_file, nor any prerequisites, so the agent must infer the division of labor.

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