Skip to main content
Glama

Delete service files

delete_service_files
Destructive

Permanently deletes 1–100 files or directories on a VPSnet service order; use recursive mode for non-empty directories and confirm only user-approved paths.

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.

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": {
      "orderNo": "<orderNo>",
      "paths": "<paths>",
      "confirm": "<confirm>"
    },
    "name": "delete_service_files"
  }
}

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.4/5.0
Behavior5/5

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

Beyond the annotations, it discloses permanence with no recycle bin, recursive deletion boundaries, waitSeconds operation behavior, permission grants, availability failure reasons, and 423 responses for 2FA locks. This is rich behavioral context for a destructive operation and is consistent with destructiveHint=true.

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?

The most important constraint, permanent deletion with no recycle bin, is front-loaded and most clauses carry operational value. The passage is dense and the waitSeconds clause is awkwardly phrased, but the detail is largely justified for a destructive tool.

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?

For a destructive, permission-sensitive operation with no output schema, it covers scope, confirmation, permissions, availability constraints, refused targets, and 2FA behavior. The remaining parameter ambiguity is minor and partly resolved by the input schema itself.

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 67%, and the description adds useful meaning for recursive, confirm, and path limits. However, it does not explain the confirmSystemPath approval path and says operating-system directories are refused without noting the explicit override, which can make that parameter unclear.

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 states a specific verb and resource: 'Permanently delete 1-100 files or directories', with immediate scope and permanence details. This clearly distinguishes the tool from list, search, and restore siblings.

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

Usage Guidelines4/5

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

It gives clear usage conditions: recursive=true for non-empty directories, confirm=true only after exact-path user approval, and when system or execution-equivalent targets are refused. It does not point to an alternative sibling for path discovery or restoration, so the guidance is strong but not fully exhaustive.

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