Skip to main content
Glama
ssh-sftp-mcp

ssh-sftp-mcp

by endjoker

sftp_download_start

Destructive

Starts an SFTP download from a remote path to a writable local path, publishing atomically and refusing overwrites by default. Returns a transfer ID for progress and final status checks.

Instructions

Downloads to a local path writable by the server account. Publishes atomically and refuses to overwrite by default. Returns a transferId immediately; query progress and the final result with sftp_transfer_status.

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_start"
  }
}

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
errorNo
phaseYes
stateYes
resultNo
endedAtYes
directionYes
startedAtYes
totalBytesYes
transferIdYes
targetStateYes
tempCleanedYes
connectionIdYes
bytesVerifiedYes
bytesTransferredYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Beyond the annotations (destructiveHint=true, idempotentHint=false) the description discloses atomic publish, default no-overwrite behavior, and that the local path must be writable by the server account — real permission and side-effect context. It stops short of covering failure behavior (partial file cleanup, what cancel does to an in-flight download) or any concurrency/rate limits.

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 short sentences, front-loaded with the destination constraint, then the safety behavior, then the async follow-up. Every clause carries information an agent needs and nothing is repeated.

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?

The async lifecycle is closed off by pointing at sftp_transfer_status, and an output schema exists so return values need no prose. What remains thin is error/failure semantics for a destructive, non-idempotent operation, which the annotations flag but the description does not elaborate.

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?

At 43% schema coverage, three of seven parameters (connectionId, remotePath, localPath) have no schema text, and the description compensates only partially — it constrains localPath to server-writable locations and clarifies the overwrite default. It adds nothing about connectionId or remotePath resolution, and duplicates rather than enriches the documented expectedSha256/remotePathStyle/verifyAfterWrite fields.

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 ("Downloads to a local path") plus the async contract ("Returns a transferId immediately"). It implies but never explicitly contrasts with the sibling sftp_download (sync variant), so an agent must infer the async-vs-sync split from the name and the transferId sentence.

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?

It routes the agent forward by naming sftp_transfer_status for progress and final result, which is genuine usage guidance. However, it never says when to prefer this over sftp_download or sftp_upload_start, and gives no prerequisite conditions (e.g., an established ssh_connect session) for starting a transfer.

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