Skip to main content
Glama

file_download

Download a remote file to an absolute local path over SFTP, report byte counts, and prevent overwriting an existing destination unless overwrite is true.

Instructions

Download a remote file to an absolute local path over SFTP and report byte counts; missing remote files fail with REMOTE_ERROR. Refuses an existing local destination unless overwrite:true.

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": {
      "remotePath": "<remotePath>",
      "localPath": "<localPath>"
    },
    "name": "file_download"
  }
}

Input Schema

NameRequiredDescriptionDefault
hostNo
localPathYesAbsolute local destination path
overwriteNoReplace the local file if it already exists (default false)
remotePathYesRemote source path

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden. It does disclose two real behaviors — REMOTE_ERROR on a missing source and a refusal guard on existing destinations — plus a byte-count report, which is genuinely valuable. It omits authentication/prerequisite expectations for `host`, whether a partial local file can be left behind on failure, and whether parent directories must already exist.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single dense sentence with the core action first, followed by the result and the two failure/guard behaviors. No filler and nothing buried.

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

Completeness4/5

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

There is no output schema, so mentioning byte counts usefully covers the return value, and the failure mode is explicit. What is missing is any handling of the `host` parameter and transfer prerequisites, which matters for a network file-transfer operation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 75% schema coverage already documenting remotePath, localPath, and overwrite, the description only restates those. The remaining parameter, `host`, gets no explanation anywhere — neither schema nor description says what host identifies or how it is chosen. The overwrite clause adds a little refusal semantics but little else beyond the schema.

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?

States a specific verb and resource — 'Download a remote file to an absolute local path over SFTP' — plus what it returns (byte counts). The download direction implicitly separates it from file_upload and file_list, but no sibling is named, so it sits just below the top band.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

Gives useful preconditions (missing remote file fails, existing local target refused without overwrite) but never states when to choose this over alternatives such as file_upload or shell-based transfer tools. Usage is implied by the preconditions rather than spelled out.

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