Skip to main content
Glama

Get service file download URL

get_service_file_download_url

Generate a read-only, time-limited download URL for one file on a VPSnet service to retrieve or share it without exposing server credentials.

Instructions

Mint a one-file download URL (bound to the file version and size and to the caller's address /24 or /64; valid 10 minutes until first use, 6 hours after it, read-only). The URL itself is a credential: hand it only to the user who asked. Prefer download_service_file to save the file on this machine. Refused for an abuse-suspended service or while a service action runs. 30 per minute. 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>"
    },
    "name": "get_service_file_download_url"
  }
}

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
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?

Annotations only say readOnlyHint=false, destructiveHint=false, idempotentHint=false; the description goes far beyond by disclosing token lifetime (10 minutes until first use, 6 hours after), IP binding, credential-handling warning, the 423 for 2FA-locked servers, and per-hypervisor unavailable reasons like agent_update_required and feature_disabled. None of that is derivable from the structured fields, which is exactly the value the description should add.

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 and the credential warning are front-loaded before the prerequisites and availability caveats, and every sentence carries actionable content. It is dense to the point of being a semicolon-chained single paragraph, which costs it a point on readability, but there is little wasted wording.

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 security-sensitive tool with no output schema, the description covers authentication scope, the empty-permission-list edge case, hosted-connector scope, lifespan, rate limiting, and enumerated failure reasons with instructions to relay them verbatim. An agent has everything it needs to call this correctly or to decline and explain why.

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 description coverage is 100%, with path, orderNo and waitSeconds each documented in the schema itself, so the baseline is 3. The description adds no further meaning about any of the three parameters (for example, how the path interacts with the version binding or what waitSeconds does here), so it neither compensates nor detracts.

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?

"Mint a one-file download URL" names a specific verb and resource, and the surrounding clauses pin down exactly what is minted: a URL bound to the file version and size and to the caller's address. The very next sentence routes the agent away from this tool toward download_service_file, so it is distinguishable from its closest sibling without opening a 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?

Explicitly states the preferred alternative ("Prefer download_service_file to save the file on this machine"), the refusal conditions (abuse-suspended service, service action running), the rate limit, the required permission, and the per-platform availability gates. It also tells the agent what not to do: never work around an unavailable reason. This is close to a complete decision procedure.

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