Skip to main content
Glama
Pterodactyl MCP Server

Pterodactyl MCP Server

by Ethereal-Jay

List Server Files

pterodactyl_list_files
Read-onlyIdempotent

List files and directories on a Pterodactyl server to inspect content or navigate paths. Specify server ID and optional directory; choose markdown or JSON output.

Instructions

List files and directories in a given directory on the server.

Args:

  • server (string): Server identifier

  • directory (string): Directory path (default: '/')

  • response_format ('markdown' | 'json'): Output format (default: 'markdown')

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": {
      "server": "<server>"
    },
    "name": "pterodactyl_list_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
serverYesServer identifier (short ID like 'abc12345')
directoryNoDirectory path to list (default: root '/')/
response_formatNoOutput format: 'markdown' for human-readable or 'json' for machine-readablemarkdown

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

The annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so the safety profile is fully covered by structured data. The description adds little beyond that — it does not say whether hidden files appear, whether output is paginated, what fields each entry carries, or how a nonexistent directory is handled. With annotations carrying the safety burden, a 3 fits, but the operational gaps are real.

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 core sentence is front-loaded and wastes nothing. The Args block is a straight restatement of the schema, which is mildly redundant, but it is short and does not obscure the purpose.

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?

Annotations cover safety and there is no output schema, so the description need not explain return values in depth. Still, for a listing tool the agent would benefit from knowing the shape of returned entries (name, type, size) and error behavior on an invalid path; neither is present, leaving the definition merely adequate for a low-complexity read tool.

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 all three parameters are already documented in the schema, including the server short-ID format and the enum meanings for response_format. The description's Args block restates the same defaults and types verbatim rather than adding new meaning such as path syntax rules or whether relative paths are accepted. Baseline 3 is correct when the schema does the heavy lifting.

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 states a specific verb and resource: 'List files and directories in a given directory on the server.' An agent can tell this apart from the backup, schedule, and allocation listers based on the resource word 'files/directories'. However, it never explicitly distinguishes itself from the file-mutating siblings (delete, compress, copy) or states that it is the read-only inspection counterpart.

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 by the read-only 'list' framing; there is no explicit when-to-use or when-not-to-use guidance and no named alternative. The default directory of '/' hints at the typical starting call, but an agent gets no rule for preferring this over, say, get_server_resources when exploring a server.

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