Skip to main content
Glama
Pterodactyl MCP Server

Pterodactyl MCP Server

by Ethereal-Jay

Read Server File

pterodactyl_read_file
Read-onlyIdempotent

Read the contents of a file on a Pterodactyl server by specifying the server ID and full file path; use list_files first to check size for large files.

Instructions

Read the contents of a file on the server.

Note: For large files, use list_files to check the size first.

Args:

  • server (string): Server identifier

  • file (string): Full path to the file (e.g., '/server.properties')

  • 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>",
      "file": "<file>"
    },
    "name": "pterodactyl_read_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileYesFull file path to read
serverYesServer identifier (short ID like 'abc12345')
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

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description adds the large-file caution, but says nothing about encoding, truncation of very large files, or behavior on binary/unreadable paths.

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?

Front-loaded one-line purpose followed by a targeted caveat and a short Args list. The Args block largely duplicates the schema, so it is mildly redundant but still scannable and not padded.

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 simple read tool with full schema coverage and no output schema, the essentials are present. What the returned content looks like (raw text, size limits, binary handling) is left unspecified, which matters for an agent deciding whether a read will succeed.

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 100%, so baseline is 3, but the description adds a concrete path example ('/server.properties') and restates the server identifier and format choices in a compact Args block, which slightly helps the caller construct valid input.

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?

States a specific verb and resource: 'Read the contents of a file on the server.' This clearly separates it from write/upload/copy/compress siblings by implication, but it never names an alternative or scopes it further.

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?

The note 'For large files, use list_files to check the size first' gives one concrete usage condition, which is genuinely useful. There is no when-not guidance, no mention of binary files, and no guidance on read limits.

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