Skip to main content
Glama

sftp-download-file

Destructive

Download binary or large remote files over SFTP to a local path inside the configured transfer root, streaming contents without passing them through model context.

Instructions

Download a remote file to local disk over SFTP, streaming it without passing the contents through model context. The destination must be inside the transferRoot directory the operator configured; without that setting this tool refuses. Use this for binary or large files; use sftp-download when you need to read the contents.

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": "sftp-download-file"
  }
}

Input Schema

NameRequiredDescriptionDefault
profileNoProfile name
localPathYesLocal destination, inside defaults.transferRoot
overwriteNoReplace an existing local file (default false)
remotePathYesRemote file to download. No leading or trailing whitespace, and no control, bidirectional or zero-width characters.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.31.0
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Changed1 schema field changedv2.11.0
    • changedInput schema / properties / remotePath / description
      Previous value: -"Remote file to download"New value: +"Remote file to download. No leading or trailing whitespace, and no control, bidirectional or zero-width characters."
  3. Addedv2.9.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations only declare destructiveHint=true, so the description adds real value by disclosing the streaming behavior (contents never enter model context) and the transferRoot refusal condition. It does not explain why the tool is destructive (e.g., that overwrite can replace an existing local file), leaving that inferential gap.

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?

Three tight sentences with the core action front-loaded, followed by the constraint and the sibling routing rule. No filler or redundant restatement of the name.

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?

For a two-required-parameter transfer tool with no output schema, the description covers the essential operating envelope: streaming, context safety, and the transferRoot gate. It stops short of describing what is returned or what happens when the destination exists and overwrite is false.

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%, so the schema already documents all four parameters including localPath's transferRoot constraint and overwrite's default false. The description reinforces the localPath constraint and its failure mode but adds little new per-parameter meaning, so the baseline 3 applies.

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?

States a specific verb and resource (download a remote file to local disk over SFTP) and immediately contrasts it with the sibling sftp-download, so an agent can route binary/large transfers here 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 names when to use this tool (binary or large files) versus the alternative (sftp-download for reading contents), and adds a hard precondition: the destination must be inside the operator-configured transferRoot or the tool refuses.

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