Skip to main content
Glama

Move service file

move_service_file
Destructive

Renames or moves a single server file or symlink between absolute paths, with optional overwrite and required user confirmation; cannot cross filesystems or replace directories.

Instructions

Rename or move one entry (a symlink itself, not its target); never across file systems (filesCrossFilesystem) and never onto an existing name unless overwrite=true (a directory is never replaced). A mount point answers filesBusy. Set confirm=true only after the user approved this exact rename or move. A slow guest answers 202 with an operation: this tool polls it itself and returns the final answer, or, after waitSeconds, the operationId to continue with get_service_file_operation (never repeat the call). 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>",
      "from": "<from>",
      "to": "<to>",
      "confirm": "<confirm>"
    },
    "name": "move_service_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesAbsolute path inside the server (UTF-8, at most 4096 bytes, no . or .. components)
fromYesAbsolute path inside the server (UTF-8, at most 4096 bytes, no . or .. components)
confirmYesThe user approved this exact rename or move
orderNoYesTenant-owned service order number, e.g. VP12345
overwriteNo
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.6/5.0
Behavior4/5

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

Goes well beyond the annotations, disclosing cross-filesystem failure, filesBusy on mount points, 202/polling semantics, required scopes (files:manage on a FULL-access key, vm:files:write on the hosted connector), refusal of exec-equivalent paths, availability reasons, and the 423 2FA lock. This is rich behavioral context, though the density of error identifiers is high and could be trimmed for readability.

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 action and its scope, then constraints, then auth, then availability. Every sentence carries operational content, though the run of parenthetical error codes makes it heavier than necessary.

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, async-capable mutation with no output schema, the description covers preconditions, failure modes, return behavior (final answer vs operationId), and required permissions. Nothing an agent needs in order to call it correctly is missing.

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 86%, so the baseline is 3, but the description adds real meaning: overwrite's interaction with existing names and directories, confirm's approval precondition, and waitSeconds' polling/return behavior. confirmSystemPath is only covered by the schema, not the description, leaving a small gap.

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 and resource ('Rename or move one entry') and immediately scopes it ('a symlink itself, not its target'), which disambiguates it from siblings like write_service_file or delete_service_files. An agent can identify the operation 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 Guidelines5/5

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

Gives explicit when-nots (never across filesystems, never onto an existing name unless overwrite=true, a directory is never replaced) and explicit preconditions ('Set confirm=true only after the user approved this exact rename or move'). It also routes follow-up work: poll via get_service_file_operation after waitSeconds and 'never repeat the call'.

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