Skip to main content
Glama
liang04
by liang04

download_file

Download files from remote servers to your local system using SFTP protocol. Specify remote and local paths to transfer files securely over SSH connections.

Instructions

使用SFTP协议从远程服务器下载文件到本地

Args:
    remote_path: 远程服务器文件路径(绝对路径)
    local_path: 本地文件保存路径
               推荐使用绝对路径以避免路径解析问题
               如果使用相对路径,将基于MCP服务器的工作目录进行解析
    timeout: 传输超时时间(秒),默认60秒
    connection_name: SSH连接名称,如果不指定则使用默认连接

Returns:
    Dict包含下载结果:
    - success: 是否成功下载
    - remote_path: 远程文件路径
    - local_path: 本地文件路径(转换为绝对路径后)
    - file_size: 文件大小(字节)
    - connection: 使用的连接名称
    - error: 错误信息(如果有)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
remote_pathYes
local_pathYes
timeoutNo
connection_nameNo
Behavior4/5

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

With no annotations provided, the description carries full burden and does well by specifying the SFTP protocol, timeout behavior with default, connection selection logic, and return format details. It explains what happens with relative vs absolute paths and describes the comprehensive return dictionary structure.

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 efficiently structured with a clear purpose statement followed by well-organized Args and Returns sections. Every sentence adds value - no wasted words, and the most important information (what the tool does) is front-loaded.

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 4-parameter tool with no annotations and no output schema, the description provides excellent coverage of parameters, behavior, and return values. The only minor gap is not explicitly mentioning error conditions or edge cases, but it's otherwise comprehensive for this complexity level.

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 description coverage, the description fully compensates by explaining all 4 parameters in detail: remote_path as absolute path, local_path with guidance on absolute vs relative paths, timeout with default value, and connection_name with default behavior. It adds significant value beyond the bare schema.

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 specific action ('使用SFTP协议从远程服务器下载文件到本地' - download files from remote server to local using SFTP protocol), identifies the resource (remote files), and distinguishes it from sibling tools like upload_file. It's precise about the protocol and direction of transfer.

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 provides clear context about when to use this tool (SFTP file downloads) and implicitly distinguishes it from upload_file for the opposite operation. However, it doesn't explicitly mention when NOT to use it or alternatives like execute_command for different remote operations.

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/liang04/ssh-mcp'

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