Skip to main content
Glama
Pterodactyl MCP Server

Pterodactyl MCP Server

by Ethereal-Jay

Delete Server Files

pterodactyl_delete_files
Destructive

Deletes one or more files or directories from a Pterodactyl server, recursively removing directory contents. Use with caution because deletion is irreversible.

Instructions

Delete one or more files or directories from the server.

WARNING: This action is irreversible. Deleting directories removes all contents recursively.

Args:

  • server (string): Server identifier

  • root (string): Root directory for relative paths (default: '/')

  • files (string[]): Array of file/directory paths to delete

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>",
      "files": "<files>"
    },
    "name": "pterodactyl_delete_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
rootNoRoot directory for relative paths/
filesYesArray of file/directory paths to delete
serverYesServer identifier (short ID like 'abc12345')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the safety profile is known. The description adds real value beyond that: irreversibility and the fact that deleting a directory removes all contents recursively, which is exactly the consequence an agent needs before invoking it. It stops short of covering error behavior for nonexistent paths or permission requirements, so it is not a 5.

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?

Purpose and the irreversibility warning are front-loaded, which is the right ordering for a destructive tool. The Args section duplicates schema text verbatim and is dead weight, costing one point.

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, open-world mutation tool with no output schema, the definition should clarify what is returned and how partial failures are handled (e.g., a missing path among several). The description covers destruction semantics well but leaves the outcome and failure behavior unstated.

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 coverage is 100%, so the schema already documents all three parameters including the '/' default for root. The Args block largely restates those definitions and adds no format or path-resolution detail beyond what the schema provides, making the baseline 3 appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb (delete) and resource (files or directories) on a server, which makes it clearly distinguishable from resource-specific delete siblings such as delete_backup, delete_database, and delete_schedule. An agent can tell what it does without opening the schema.

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 gives no guidance on when to use this tool versus alternatives, no mention of a prerequisite check such as pterodactyl_list_files, and no conditions under which deletion should be avoided. The implied use is inferable from the verb, but there is no explicit when-to-use or when-not-to-use guidance.

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