Skip to main content
Glama

Folder

list_files
Read-onlyIdempotent

Lists files and folders in a Minecraft server directory with names, sizes, timestamps, and read/edit access, or lists config files when configs is true.

Instructions

A folder of the server: names, folders first, sizes, times, and whether read_file and edit_file accept each. Paths are relative to the server folder: config/paper-global.yml, logs/latest.log. Files under logs/ need logs:read, the rest files:read. WorldAPI's folder, hidden files, keys, databases, and jars stay hidden. configs true lists instead the server's and each plugin's config files (needs files:read).

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
pathNoThe server folder when left out
configsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv5.0.0
    • removedInput schema / properties / configs / description
      Removed value: -"List the server's and plugins' config files instead"
    • changedInput schema / properties / path / description
      Previous value: -"The folder; the server folder itself when left out"New value: +"The server folder when left out"
  2. First observedv4.1.0

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the annotations (which only cover read-only, idempotent, closed-world), it discloses material behavior: hidden filtering (WorldAPI's folder, dotfiles, keys, databases, jars), ordering (folders first), per-entry acceptance flags for read_file/edit_file, and the exact permission scope per subpath. These are the constraints an agent needs before calling.

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?

Four dense sentences, front-loaded with the core action and output shape before permissions and the mode switch. The telegraphic phrasing ('configs true lists instead…', 'WorldAPI's folder') occasionally reads clipped, but no sentence is filler.

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

Completeness3/5

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

There is no output schema, and the description does a good job describing return fields, so the main gap is behavioral limits: nothing about recursive listing, result caps/pagination, or behavior on a nonexistent path. For a simple two-parameter lister this is adequate but not fully closed.

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 50% — `path` is documented but `configs` is not. The description compensates by defining what `configs: true` does and its permission, and by giving concrete relative-path examples (`config/paper-global.yml`, `logs/latest.log`) plus the default when `path` is omitted.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific operation on a specific resource — listing a folder's contents — and immediately enumerates what each entry reports (name, folders first, size, times, and whether read_file/edit_file accept it). Cross-references to read_file and edit_file plus the alternate `configs` mode make it unambiguous against the sibling list_* tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It clearly distinguishes the default listing from `configs: true`, which 'lists instead the server's and each plugin's config files', and states the permission needed in each case (logs:read for logs/, files:read otherwise). It stops short of naming any alternative tool for cases this one doesn't cover, so there are no explicit exclusions.

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