Skip to main content
Glama
Pterodactyl MCP Server

Pterodactyl MCP Server

by Ethereal-Jay

Write Server File

pterodactyl_write_file
Destructive

Write content to a file on a Pterodactyl server, creating it if missing or overwriting existing files. Specify the server ID, full file path, and content to update game panel files.

Instructions

Write content to a file on the server. Creates the file if it doesn't exist, overwrites if it does.

Args:

  • server (string): Server identifier

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

  • content (string): Content to write to the file

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>",
      "content": "<content>"
    },
    "name": "pterodactyl_write_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileYesFull file path to write to
serverYesServer identifier (short ID like 'abc12345')
contentYesFile content to write

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?

The annotations already declare destructiveHint=true, idempotentHint=false, and openWorldHint=true, so overwrite danger is partly pre-declared. The description reinforces this by saying it 'overwrites if it does' exist, which is useful confirmation, but adds no permission requirements, size limits, encoding expectations, or whether parent directories must exist.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two front-loaded sentences covering behavior, followed by a compact args list. Nothing is wasteful, and the key destructive trait (overwrite) appears immediately.

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 destructive mutation tool with no output schema, the description covers the core behavior but omits operational details an agent would need: whether the file is truncated on failure, typical size limits, and permission/error behavior. Annotations carry safety signals, but the description should do more for a destructive write operation.

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 the schema already documents all three parameters. The description largely restates them, adding only a concrete path example ('/config.yml'), which is a minor value-add over the structured schema.

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 ('Write content to a file on the server') and clarifies create-vs-overwrite semantics, so the agent knows what happens on the target file. It does not distinguish itself from file-writing siblings like upload_file, pull_file, or copy_file, leaving some ambiguity about which write path to choose.

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?

Implies usage through the create/overwrite behavior, but never says when to use this instead of upload_file (local content), pull_file (remote URL), or copy_file. The agent gets enough to know it's for writing content but not enough to route between the file-writing siblings.

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