Skip to main content
Glama

ssh_download_file

Idempotent

Download a file from a remote SSH host to a local destination via SFTP. Parent directories are created automatically.

Instructions

Download a file from a remote SSH host to the local machine via SFTP.

The local parent directory is created automatically if needed.

Args: alias: Source host alias. remote_path: Absolute POSIX path of the file on the remote host. local_path: Absolute destination path on the local machine, in the format native to the machine running the MCP server (e.g. 'C:\Users\me\downloads\file.txt' on Windows, '/home/me/downloads/file.txt' on Linux/macOS). Call ssh_get_local_info first if you are unsure which format to use.

Returns: Success message with byte count, or an error description.

Examples: - Fetch a log: remote_path='/var/log/app.log', local_path='/tmp/app.log' - Pull a DB dump: remote_path='/backups/db.sql.gz', local_path='/tmp/db.sql.gz'

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
aliasYes
remote_pathYes
local_pathYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Beyond annotations (not read-only, not destructive, idempotent, open world), the description adds that local parent directories are automatically created and indicates return format (success with byte count or error). It does not specify overwrite behavior, but no contradictions with annotations.

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?

The description is well-structured: a concise summary, behavioral note, parameter details, return description, and examples. It is front-loaded with the main purpose, and every part adds value without fluff.

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 description covers parameter semantics, automatic directory creation, return format, and examples. It does not discuss overwrite behavior or authentication, but given idempotentHint and sibling tools for host management, these are not critical gaps.

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

Parameters5/5

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

With 0% schema coverage, the description fully compensates by providing clear semantics: alias is source host alias, remote_path is absolute POSIX path, local_path includes format differences across OS and advice on calling ssh_get_local_info. Examples further clarify usage.

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?

The description clearly states the tool downloads a file from a remote SSH host to the local machine via SFTP, specifying direction and method. It distinguishes from siblings like ssh_read_file (content reading) and ssh_upload_file (uploading), and includes automatic local directory creation.

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

Usage Guidelines4/5

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

The description advises calling ssh_get_local_info for path format guidance and provides examples. It implicitly suggests when to use (file transfer from remote to local) but does not explicitly exclude scenarios or contrast with alternatives.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/muradmalik23/sshand'

If you have feedback or need assistance with the MCP directory API, please join our Discord server