Skip to main content
Glama
SSH MCP Server
by termau

download_file

Downloads a file from a remote server to your local machine over SFTP using a saved SSH connection. Specify the connection, remote path, and local destination.

Instructions

Download a file from a remote server via SFTP.

Parameters:

  • connection: Name of the connection (from list_connections)

  • remote_path: Path to the file on the remote server

  • local_path: Destination path on the local machine

Example usage: download_file("web1", "/var/log/nginx/error.log", "/tmp/error.log")

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

Input Schema

NameRequiredDescriptionDefault
connectionYesName of the SSH connection to use
local_pathYesDestination path on the local machine
remote_pathYesPath to the file on the remote server

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior3/5

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

Annotations only declare readOnlyHint=false, which is consistent with a transfer that writes to the local filesystem, so there is no contradiction. The description adds the SFTP transport but says nothing about overwriting an existing local_path, authentication failures, permissions, or whether transfers are streamed or size-limited — meaningful gaps for a file-transfer tool.

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?

Front-loaded with the purpose, then a compact parameter list and one example; nothing is padded. The parameter list does largely restate the schema descriptions, which is mild redundancy rather than a flaw.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

All three parameters are required and fully described, and there is no output schema that would need explaining. The only open question is return value and overwrite behavior, which is a minor gap for a three-argument transfer call.

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 bar is baseline 3, but the description genuinely adds meaning by saying the connection value must come from list_connections and by showing a concrete triple of real-looking arguments. That provenance hint is not present in the schema.

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 plus transport ('Download a file from a remote server via SFTP'), which is enough to distinguish it from upload_file. It stops short of differentiating itself from the sibling read_remote_file, so an agent facing both would still have to guess which is intended.

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 only implied by the worked example; there is no explicit statement of when to use this versus read_remote_file or list_remote_directory. The one routing hint is that the connection name comes from list_connections, which does help the agent bootstrap the call.

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