Skip to main content
Glama

ssh_download

Destructive

Copies a remote file or directory to a local path over SFTP; set recursive=true to transfer directories.

Instructions

Copy a remote file (or directory with recursive=true) from the remote host to a local path via SFTP.

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

Input Schema

NameRequiredDescriptionDefault
targetYes
recursiveNo
local_pathYes
remote_pathYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true, and openWorldHint=true, so the description's only job is to add context — yet it adds none. Notably it never explains why a download is flagged destructive (e.g., does it overwrite an existing local file, follow symlinks, or create directories?), and says nothing about target authentication or partial-transfer/error behavior.

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?

A single compact sentence with the operation and the key option front-loaded, and no filler. It could have used its remaining budget on 'target' or overwrite behavior instead of stopping there.

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

Completeness3/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 core semantics of file-vs-directory copy are clear. But for a destructive, open-world transfer tool with a fully undocumented schema, the missing explanation of the 'target' parameter and of local overwrite consequences leaves real gaps.

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

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% — every parameter has only a title — so the description must carry the meaning, and it does not. It clarifies directionality for remote_path/local_path and the recursion switch, but 'target' (apparently an SSH target selector) is never mentioned, and no path format, absolute/relative, or overwrite semantics are given for the local destination.

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?

States a specific verb ('Copy'), the resource ('remote file (or directory with recursive=true)'), the direction (remote host to local path), and the transport (SFTP). The explicit remote-to-local direction distinguishes it from ssh_upload and the adb_* transfer siblings without the agent needing to open any schema.

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

Usage Guidelines2/5

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

There is no when-to-use guidance at all: nothing tells the agent whether to prefer this over ssh_read_file (which presumably returns content rather than materializing a file) or the adb_pull counterpart. No prerequisites, no exclusions, no alternative routing are given.

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