Skip to main content
Glama

Write file contents

files_write

Writes raw content to a file on a Pterodactyl server, creating it or overwriting existing content.

Instructions

Write raw content to a file, creating or overwriting it.

Input Schema

NameRequiredDescriptionDefault
fileYes
panelNoName of a saved panel. Omit to use the active or default panel.
serverYes
baseUrlNoInline panel URL override, e.g. https://panel.example.com. Not persisted.
contentYes
clientKeyNoInline client API key (ptlc_…) override. Not persisted.
applicationKeyNoInline application API key (ptla_…) override. Not persisted.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It does disclose the key mutation behavior that the file is created or overwritten, which is valuable. However, it omits permission requirements, response behavior, size or encoding limits, and whether parent directories are created.

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?

The description is a single efficient sentence with the main action and overwrite behavior front-loaded. There is no wasted text.

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

Completeness2/5

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

For a seven-parameter mutation tool with no annotations and no output schema, the description is too thin. It does not explain required server/panel context, authentication overrides, overwrite implications, or what happens after writing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 57%, and several parameters such as server, file, and content have no schema descriptions. The tool description does not clarify the meaning or role of these parameters, nor does it explain panel, baseUrl, clientKey, or applicationKey overrides.

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: write raw content to a file. It also adds the important scope detail that the operation creates or overwrites the file. However, it does not explicitly distinguish this tool from nearby file operations such as files_upload_url or files_pull.

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

Usage Guidelines2/5

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

The description does not say when to use files_write instead of related tools like files_upload_url or files_pull. There is no guidance on prerequisites, alternatives, or when-not to use this direct-content write path.

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