Skip to main content
Glama

Delete service files

delete_service_files
Destructive

Permanently delete 1-100 files or directories from a VPSnet server without a recycle bin. Requires confirmed absolute paths; non-empty directories need recursive mode.

Instructions

Permanently delete 1-100 files or directories (no recycle bin). A non-empty directory needs recursive=true; a recursive delete never leaves the path's file system, never follows links and always runs as an operation this tool follows for waitSeconds (default 60). /, top-level and operating-system directories are refused. Set confirm=true only after the user approved deleting exactly these paths. Requires files:manage on a FULL-access API key as an explicit grant; the hosted connector needs vm:files:write. Execution-equivalent targets (authorized_keys, cron, systemd units, sudoers, PAM, profile files) are refused to every API key (filesExecEquivalentScopeMissing). Availability: Firecracker servers need the updated guest agent (filesUnavailable reason agent_update_required; node_update_required while the host node is not updated yet) and Cloud VPS (KVM) servers need the VDS file-manager switch (reason feature_disabled while it is off); relay any unavailable reason verbatim and never work around it. A server whose 2FA lock is on answers 423.

Input Schema

NameRequiredDescriptionDefault
pathsYes
confirmYesThe user approved deleting exactly these paths
orderNoYesTenant-owned service order number, e.g. VP12345
recursiveNo
waitSecondsNoHow long this tool waits for a slow guest's operation before returning its operationId (default 30, recursive delete and extract 60)
confirmSystemPathNoSet true only after the user explicitly approved changing this operating-system path (otherwise 409 filesSystemPathConfirmRequired)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.3.17

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true, but the description goes far beyond: no recycle bin, recursive delete stays within the path's file system and never follows links, refuses / and top-level/OS directories, refuses execution-equivalent targets (authorized_keys, cron, sudoers, etc.), documents required scopes (files:manage, vm:files:write), availability gating (agent_update_required, feature_disabled) and a 423 response for 2FA-locked servers.

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 with the core destructive action and its scope, then layers constraints. Dense but nearly every sentence carries operational value; the error-code and availability detail is long but justified for an irreversible operation.

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

Completeness5/5

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

With no output schema, the description still tells the agent it may return an operationId (via waitSeconds) and enumerates the failure modes and reason codes it must surface verbatim. Complete for a destructive, permission-gated file operation.

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 67%, and the description adds real meaning for recursive (needed for non-empty dirs), confirm (approval semantics), confirmSystemPath (OS-path approval) and waitSeconds (default 60 here). Minor tension: the schema documents waitSeconds default as 30, which the description does not reconcile.

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?

States a specific verb+resource ('Permanently delete files or directories'), scopes it (1-100, no recycle bin) and disambiguates from sibling file tools such as move_service_file and write_service_file. The permanent, irreversible nature is stated up front.

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

Usage Guidelines5/5

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

Explicit when-to-use conditions: recursive=true is required for non-empty directories, confirm=true only after the user approved exactly these paths, confirmSystemPath=true only after explicit OS-path approval. It also states when-not: relay unavailability reasons verbatim and never work around them.

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

Deploy Server

Other Tools