Skip to main content
Glama

Download service file

download_service_file
Destructive

Download a file from a VPSnet server to a local path, verify its size and SHA-256, and replace existing files only with overwrite approval.

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.

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?

Beyond annotations, it discloses the internal flow (mint URL, fetch without API key, atomic write), size verification, SHA-256 response, and the user-approval condition for overwrite. It also explains explicit permission requirements, availability reasons, and the 423 2FA behavior, which directly supports the destructive and non-idempotent annotations.

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 core action is front-loaded in the first clause, and all subsequent details are relevant caveats about safety, permissions, and availability. It is dense and could be structured with bullets for readability, but no sentence is wasted.

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, open-world, non-idempotent tool with no output schema, the description covers the operation, safety behavior, auth requirements, platform availability, and failure modes thoroughly. An agent has enough information to invoke it correctly or surface a specific unavailability reason.

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 schema already documents path, orderNo, localPath, and waitSeconds. The description adds meaningful semantics for overwrite ('replaced only with overwrite=true after the user approved it') and reinforces that localPath is on the machine running the MCP server, compensating for the one undocumented schema field.

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?

It states a specific verb and resource ('Download one file from the server') and names the exact destination ('a local path on the machine running this MCP server'), which distinguishes it from read_service_file, upload_service_file, and get_service_file_download_url. 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 Guidelines4/5

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

The description gives clear context for when the tool can and cannot be used: required files:read grants, platform-specific availability, and 2FA 423 responses. It does not explicitly route among siblings such as read_service_file or get_service_file_download_url, but the operational prerequisites are unusually well specified.

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