Skip to main content
Glama
mcp-ssh-persistent

mcp-ssh-persistent

by vivusk

ssh_download

Download a remote file over SFTP to a local destination using an atomic .part-then-rename process, preventing incomplete files.

Instructions

Download a remote file via SFTP (parallel fastGet to a .part file, then renamed over the target: no half files). Same local path policy as ssh_upload. Returns one line: path, bytes, ms.

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": {
      "server": "<server>",
      "remote_path": "<remote_path>",
      "local_path": "<local_path>"
    },
    "name": "ssh_download"
  }
}

Input Schema

NameRequiredDescriptionDefault
serverYesServer alias from config.json (case-insensitive). Known aliases: (none configured)
local_pathYesLocal destination (file path, or directory ending with / or \)
remote_pathYesRemote file path to download

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.2.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does well: it discloses atomicity (write to .part then rename, 'no half files'), parallelism, and the exact return shape ('path, bytes, ms'). It omits auth/session prerequisites and what happens if the local target already exists (implicitly overwritten by the rename), and says nothing about error or partial-retry behavior.

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 dense clauses, zero filler, with the mechanism and the return format front-loaded. Every parenthetical earns its place by explaining the temp-file-then-rename detail.

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 simple 3-required-param transfer tool with no output schema, the description covers mechanism, safety trait, and return format well. It stops short of overwrite/error/permission behavior for the destination, which matters for a download that overwrites an existing local file.

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 all three parameters are documented in the schema itself; baseline is 3. The description adds only marginal semantic value, chiefly that local_path follows the ssh_upload policy (file path vs directory).

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 via SFTP') and pins the mechanism (parallel fastGet to a .part file, renamed over the target). It doesn't explicitly contrast with the sibling ssh_read_remote_file, so the agent must infer that this one writes to local disk while the other presumably returns content.

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?

Usage is implied rather than stated: 'Same local path policy as ssh_upload' tells the agent this writes a local file and shares upload's conventions, but there is no explicit when-to-use versus ssh_read_remote_file or ssh_write_remote_file. No prerequisites (e.g., an active connection to the aliased server) or exclusions are given.

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