Skip to main content
Glama
ssh-sftp-mcp

ssh-sftp-mcp

by endjoker

sftp_download

Destructive

Downloads a remote file over SFTP to a local writable path, waiting for completion and publishing atomically while refusing overwrite by default.

Instructions

Downloads to a local path writable by the server account. Publishes atomically and refuses to overwrite by default. This call waits for the transfer to finish. Use the matching *_start tool for long transfers.

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

Input Schema

NameRequiredDescriptionDefault
localPathYes
overwriteNo
remotePathYes
connectionIdYes
expectedSha256NoVerify a known SHA-256 in a single pass
remotePathStyleNoUse windows when the remote is Windows OpenSSH; accepts a full drive path or a plain relative pathposix
verifyAfterWriteNoRead back and verify SHA-256; adds extra disk or network I/O

Output Schema

NameRequiredDescriptionDefault
bytesYes
sha256Yes
verifiedYes
localPathYes
durationMsYes
remotePathYes
overwrittenYes
tempCleanedYes
atomicPublishYes
expectedSha256MatchedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses that publishing is atomic, that overwrite is refused by default (mitigating the destructiveHint=true), that the call blocks until completion, and that the target path must be writable by the server account. These are exactly the operational facts an agent needs before triggering a write.

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?

Four short sentences, front-loaded with the destination and overwrite behavior, then the blocking trait, then the alternative-tool pointer. No filler and no repetition of the schema.

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?

An output schema exists, so return values need not be described, and the description covers the behaviors that matter most (atomicity, blocking, overwrite default, sibling routing). Minor gaps remain around verification-failure behavior and whether the local directory must pre-exist.

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 43% across 7 parameters, so the description should carry more. It does explain the overwrite default and implies localPath must be server-account-writable, but says nothing about expectedSha256, verifyAfterWrite, remotePathStyle, or connectionId, leaving four parameters undocumented in both places.

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 (downloads) plus the destination constraint ('local path writable by the server account'), which is more precise than the name alone. It also implicitly separates itself from the async variant by saying 'Use the matching *_start tool for long transfers,' though it never names sftp_download_start directly.

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

Usage Guidelines4/5

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

Explicitly routes long transfers to the *_start sibling, which is the key usage decision for this tool family. It gives no guidance on when to prefer sftp_upload or how to check transfer status afterward, but the primary when/when-not split is present.

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