Skip to main content
Glama

sftp-download-file

Destructive

Download remote files to local disk over SFTP without sending contents through model context. Use for binary or large files; destination must be inside transferRoot.

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.

Input Schema

TableJSON 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.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."
  2. Addedv2.9.0

TDQS

A4.4/5.0
Behavior4/5

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

The description discloses important behavioral traits beyond annotations: it streams without passing contents through model context and refuses if transferRoot is not configured. Annotations only include destructiveHint: true, so the description adds valuable context. It doesn't cover overwrite behavior, but that is in the schema; overall it provides solid behavioral transparency.

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?

The description is two concise sentences. The first front-loads the core action and a key trait (streaming, no model context), while the second covers usage guidance and a critical constraint. No waste; every sentence earns its place.

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 download tool with full schema coverage and no output schema, the description covers the purpose, usage guidance, and key behavioral constraints. It doesn't mention error cases like missing files or authentication, but those are typical and not required. The description is sufficiently complete for an agent to call it correctly.

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 coverage is 100%, so the baseline is 3. The description does not add extra semantics about parameters beyond what the schema already documents. It mentions the streaming behavior but does not explain parameter-specific details or constraints beyond the schema's own descriptions.

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?

The description clearly states the action: 'Download a remote file to local disk over SFTP' with the specific streaming behavior. It also distinguishes itself from the sibling tool sftp-download by specifying when to use each ('Use this for binary or large files; use sftp-download when you need to read the contents'), making the purpose unmistakable.

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?

Explicit usage guidance is provided: the tool is for binary/large files, and sftp-download is the alternative for reading contents. It also states a key prerequisite (the destination must be inside transferRoot) and that the tool refuses otherwise, which tells the agent when not to use it.

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