Skip to main content
Glama
MCP SSH Manager

MCP SSH Manager

by bvisible

ssh_download

Download a single remote file to a local path over SFTP, overwriting existing local files and respecting transfer-folder restrictions on readonly servers.

Instructions

Downloads one remote file from the named server to a local destination path over SFTP, overwriting any existing local file at that path. Affects only the local filesystem and is read-only on the remote side, so it stays allowed even on servers in readonly or restricted security mode, where the local path must be inside the transfer folder (~/.ssh-manager/transfers, or the transferRoot set on the server): a relative path is read from it, and anything outside it, or reached through a link, is refused. On other servers the local path is unrestricted unless a transferRoot is set. Reads the remote file using the configured SSH user, which must have permission to read it. Handles single files only; use ssh_sync for directories.

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>",
      "remotePath": "<remotePath>",
      "localPath": "<localPath>"
    },
    "name": "ssh_download"
  }
}

Input Schema

NameRequiredDescriptionDefault
serverYesServer name
localPathYesLocal destination path
remotePathYesRemote file path

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv3.8.5
    • removedInput schema / additionalProperties
      Removed value: -false
  2. First observed

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so well: it discloses that the local file is overwritten, that the remote side is only read, that observability into restricted-mode path rules (transferRoot, relative path resolution, symlink refusal) applies, and that the configured SSH user must have read permission on the remote file.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core action and its filesystem side effect are front-loaded, and no sentence is filler. The middle sentence about transferRoot and link refusal is dense and slightly run-on, but the information is load-bearing.

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 three-parameter, annotation-free tool with no output schema, the description covers the action, path constraints, permissions, and sibling alternative. It omits what the tool returns or how failures/partial downloads surface, which is a minor but real gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/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, but the description goes beyond the schema by explaining that server means the named configured host, that localPath is resolved relative to the transfer folder on restricted servers, and that remotePath is read as the configured SSH user.

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?

Opens with a specific verb and resource: 'Downloads one remote file from the named server to a local destination path over SFTP.' It immediately scopes to a single file and differentiates from the sibling ssh_sync, which handles directories.

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 routes directory work to ssh_sync ('Handles single files only; use ssh_sync for directories') and states the condition under which the tool remains available (servers in readonly/restricted mode). It also names the exact refusal conditions for the local path, so an agent can predict what will be rejected.

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