Skip to main content
Glama
pebblehost-mcp
by numycode

List files

list_files
Read-only

Lists files and folders in a server directory, including sizes and modification times, so you can inspect and manage hosted Minecraft server contents.

Instructions

Lists the files and folders in a directory of the server, with sizes and modification times.

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
serverNoServer identifier or UUID. Omit to use the configured server (PEBBLEHOST_SERVER_ID); other servers are refused unless PEBBLEHOST_ALLOW_ALL_SERVERS is set.
directoryNoDirectory to list, relative to the server root, such as "plugins". Defaults to "/"./

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds genuinely new context by disclosing that entries come back with sizes and modification times, but it says nothing about recursion depth, ordering, handling of nonexistent directories, or result size limits for large directories. With annotations carrying the safety burden, this is a modest but real add.

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?

A single front-loaded sentence with no filler, and the returned payload details are attached to the verb rather than buried. It is appropriately sized, though the phrase "of the server" is slightly redundant given the server parameter.

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?

For a low-complexity, two-optional-parameter read tool with annotation coverage, no output schema, and no nested objects, the description is close to sufficient. The remaining gap is behavioral: recursion scope and failure modes for invalid directories are unstated even though an output schema is absent and would otherwise have covered result shape.

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?

Both parameters are fully documented in the schema at 100% coverage, including the server-resolution rule and a default for directory, so the baseline is 3. The description contributes no additional meaning about path syntax (absolute vs relative, whether subdirectories need trailing separators) beyond what the schema already states.

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 ("Lists") plus resources ("files and folders in a directory of the server") and states the return payload shape (sizes and modification times), which distinguishes it from read_file or edit_file style siblings. It stops short of naming a sibling or noting that it is non-recursive, so it is clear but not maximally differentiated.

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?

Use is implied by the phrasing — browse a directory to see what is present — but there is no explicit when-to-use, when-not-to-use, or pointer to a sibling such as read_file or list_backups. An agent must infer that this is a discovery step rather than a content-fetch step.

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