Skip to main content
Glama

Download service file

download_service_file
Destructive

Download a single file from a VPSnet server to a local path, writing it atomically and verifying its size and SHA-256. Set overwrite=true only after user approval to replace an existing local file.

Instructions

Download one file from the server to a local path on the machine running this MCP server: mints a download URL, fetches it without the API key (the URL is its own token) and writes the file atomically, verifying the size and answering the SHA-256. An existing local file is replaced only with overwrite=true after the user approved it. Requires files:read on the API key as an explicit grant (a key whose permission list was left empty does not hold it), read or full access; the hosted connector needs vm:files:read. 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>",
      "path": "<path>",
      "localPath": "<localPath>"
    },
    "name": "download_service_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesAbsolute path inside the server (UTF-8, at most 4096 bytes, no . or .. components)
orderNoYesTenant-owned service order number, e.g. VP12345
localPathYesAbsolute path on the machine running this MCP server
overwriteNo
waitSecondsNoHow long this tool waits for a slow guest's operation before returning its operationId (default 30, recursive delete and extract 60)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.3.17

TDQS

A4.6/5.0
Behavior5/5

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

Far exceeds the annotations: it discloses that the download URL is its own token and needs no API key, that the write is atomic with size verification and a SHA-256 answer, that an existing file is only replaced with overwrite=true after user approval, and how 423 from a 2FA lock is surfaced. The availability preconditions (agent_update_required, node_update_required, feature_disabled) and the instruction to relay reasons verbatim are exactly the behavioural context an agent needs and cannot get from structured fields.

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?

It is a single dense paragraph, but it is front-loaded with the action, then permissions, then availability, then failure modes in a logical order. The permission and availability clauses are long yet each carries operational information the agent would otherwise have to discover by failing.

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, auth-gated download with no output schema, the description covers the gaps that matter: atomicity, integrity reporting (SHA-256), overwrite approval, credential scope, and server-type availability with exact reason codes. Nothing an agent needs to invoke it correctly or interpret a refusal appears to be 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 80%, so the baseline is 3, but the description adds real meaning beyond the schema by tying overwrite=true to a user-approval precondition and to the replacement of an existing local file. path/localPath/waitSeconds are left to the schema, which documents them adequately.

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 opens with a specific verb+resource+destination: 'Download one file from the server to a local path on the machine running this MCP server.' It distinguishes this from get_service_file_download_url by explaining that it mints the URL itself and then fetches and writes the file, so an agent can pick between them without reading either schema.

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?

Usage context is clear: use it to get a file onto the local machine, with the preconditions (files:read grant, overwrite approval, 2FA lock behaviour) spelled out. It stops short of explicitly naming when to prefer read_service_file, get_service_file_download_url, or stat_service_file, though the 'download to local path' framing implies the split.

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