Skip to main content
Glama

upload_file

Upload a local binary or text file from disk to a Pterodactyl server directory using a signed upload URL, with optional destination folder and filename override.

Instructions

Upload a local file (binary or text) from disk to a server directory using Pterodactyl's two-step signed upload URL.

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_id": "<server_id>",
      "local_path": "<local_path>"
    },
    "name": "upload_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
directoryNoDestination directory inside container (default '/')
server_idYesShort server identifier
local_pathYesAbsolute or relative path to the local file to upload
remote_filenameNoOptional filename override on the server (defaults to local basename)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

A3.5/5.0
Behavior3/5

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

Annotations only declare readOnlyHint=false, so the description correctly reinforces a write operation and adds the useful detail that the transfer uses a two-step signed upload URL. It does not disclose overwrite behavior for an existing remote path, size limits, required permissions, or failure semantics — meaningful gaps for a mutation tool.

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; the mechanism detail ('two-step signed upload URL') is arguably the least actionable part but is short enough not to hurt. Nothing needs trimming for comprehension.

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

Completeness4/5

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

Four parameters are fully described in the schema and there is no output schema to explain, so the description's job is mostly routing and risk context. The main omission is whether an existing remote file is overwritten and any size restriction, which matters given only readOnlyHint=false is declared.

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 four parameters are already documented in the schema, including the default '/' directory and basename fallback. The description restates only that the source is local and may be binary or text, adding minimal meaning beyond the schema; baseline 3 applies.

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?

Specific verb ('Upload') plus resource ('a local file (binary or text) from disk') and destination ('server directory'). The phrase 'from disk' implicitly separates it from content-writing siblings like write_file and remote-source siblings like pull_remote_file, but no sibling is named explicitly.

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 phrase 'local file ... from disk' implies when this tool applies versus remote-pull or content-write alternatives, but there is no explicit when-to-use, when-not-to-use, or named alternative. An agent must infer the routing decision from the sibling list.

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