Skip to main content
Glama

list-files

Read-only

Lists entries under a local or remote absolute folder with kind, byte size, and timestamp without hashing, optionally including all subfolders.

Instructions

dbabrain common.cli list-files: Every entry under a folder - kind, bytes, time - without hashing (0.37.0). Request fields (pass them as request):

  • host: Where the folder is: {runtime (windows | linux | docker | k8s), access (ssh | winrm), host, port, username, password | key_file, container, sudo}; left out, this machine.

  • folder (required): The absolute folder to list; not there is folder_found false.

  • max_files: The most entries answered; more is truncated, never cut silently.

  • timeout_seconds: Seconds the listing may take on the host.

  • with_folders: True also answers every folder under the folder, as folders (0.38.0) - what a staging cleanup names an emptied backup set's folders from.

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": "list-files"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover the read-only, non-destructive, open-world profile, and the description adds genuinely new behavior: no hashing is performed, results are truncated rather than silently cut short by max_files, and a missing folder yields folder_found false instead of an error. It also discloses that credentials/host targeting are needed for remote runs, which annotations do not convey.

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 purpose sentence is front-loaded and the field list is bulleted for scannability. Minor waste and awkwardness remain: version tags like (0.37.0)/(0.38.0) and the convoluted phrase 'what a staging cleanup names an emptied backup set's folders from' add noise.

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 an output schema present, return values need not be spelled out, and the description still explains truncation behavior, the folder_found false case, and remote-host targeting. Complete enough for an agent to call it correctly; only cross-tool routing is unaddressed.

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

Parameters4/5

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

Schema coverage is 0% — the schema exposes only an untyped `request` object — so the description carries the full burden and does so well, enumerating host sub-fields (runtime, access, host, port, username, password|key_file, container, sudo), folder, max_files, timeout_seconds, and with_folders. It falls short of 5 because the host sub-fields are listed without explaining how values combine (e.g. when to use ssh vs winrm).

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 first sentence gives a concrete verb and resource (list every entry under a folder) plus the exact fields returned (kind, bytes, time) and a differentiator (without hashing). It is clearly not a backup or copy operation, but it never names a sibling such as list-backup-files or smb-list to sharpen the boundary.

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 through field semantics — e.g. with_folders is framed around a staging-cleanup scenario. There is no explicit when-to-use/when-not guidance and no routing to alternatives like list-backup-files or smb-list, so an agent must infer which listing tool fits.

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

Deploy Server

Other Tools