Skip to main content
Glama

file_download

Downloads an authorized fixed app package reference to a local path, verifies all bytes, and commits atomically without overwriting existing files.

Instructions

Download an authorized fixed App package reference to a new local path, verifying all bytes before an atomic no-overwrite commit.

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": {
      "path": "<path>",
      "reference": "<reference>"
    },
    "name": "file_download"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
purposeNo
maxBytesNo
referenceYes
operationIdNo
connectionRefNoThe host connection to act on, as returned by terminal_connect (for example vrch-110.vrch.ai). Required when several hosts are connected.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / connectionRef
      Added value: +{
      +  "description": "The host connection to act on, as returned by terminal_connect (for example vrch-110.vrch.ai). Required when several hosts are connected.",
      +  "type": "string"
      +}
  2. Changed1 schema field changedv0.1.8
    • addedInput schema / properties / maxBytes
      Added value: +{
      +  "maximum": 134217728,
      +  "minimum": 0,
      +  "type": "integer"
      +}
  3. First observedv0.1.0

TDQS

B3.4/5.0
Behavior4/5

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

Annotations declare only the safety class (readOnlyHint=false, destructiveHint=false, openWorldHint=true, idempotentHint=false). The description goes meaningfully beyond that by disclosing integrity verification ('verifying all bytes') and an atomic no-overwrite commit, which tells the agent that an existing file at the path will not be clobbered and that a partial write will not be left behind. It stops short of describing failure behavior or where the downloaded package lands.

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?

A single sentence with the verb front-loaded and every clause carrying information (authorization, destination constraint, verification, atomicity). It is dense rather than padded, though the stacked qualifiers make it slower to parse than it needs to be.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With six parameters, 17% schema coverage, and no output schema, the definition leaves real gaps: it never says what the call returns (local path, byte count, handle), how failures surface, or what operationId and maxBytes are for. The safety semantics it does provide are strong, but the tool is more complex than the description accounts for.

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 only 17% (just connectionRef), so the description must carry substantial weight. It does clarify 'reference' as an authorized App package reference and 'path' as a new local path whose non-existence is implied by the no-overwrite guarantee, which is genuinely useful. However, maxBytes, operationId, and the purpose enum values are left entirely unexplained in both schema and description.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb (Download) and resource (an authorized App package reference) and states the destination (a new local path), which distinguishes it from siblings like file_upload and apps_file_export. The phrasing 'authorized fixed App package reference' is slightly jargon-dense, but the operation is identifiable 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 Guidelines2/5

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

There is no explicit when-to-use guidance and no mention of alternatives such as file_upload or apps_file_export, nor any stated precondition other than the vague 'authorized'. The scope to App packages is implied by the wording, but an agent gets no routing rule for choosing this over the other file-transfer siblings.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.