Skip to main content
Glama

ssh_upload

Uploads a local file to a remote Linux host over SFTP, enabling you to transfer scripts or assets before executing them remotely.

Instructions

把本机文件通过 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": {
      "local_path": "<local_path>",
      "remote_path": "<remote_path>"
    },
    "name": "ssh_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
sessionNo
local_pathYes本机文件路径
remote_pathYes远端目标路径

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden, yet it only names the SFTP mechanism. It says nothing about overwrite behavior when remote_path already exists, whether missing remote directories are created, permission or auth requirements, or size/timeout limits — all critical for an upload that can clobber remote files.

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 front-loaded sentence with the action and mechanism stated first and the usage hint in parentheses; nothing is wasted. It is arguably too terse for a mutation tool, but every word earns its place.

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?

There is no output schema and no annotations, so the description must cover behavior on its own, and it covers mechanism and one use case but not overwrite semantics, session requirements, or result reporting. Given a 3-parameter write operation, this leaves meaningful operational 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 coverage is 67%: local_path and remote_path have descriptions, but session has none anywhere, and the description does not explain that session likely refers to an already-open SSH/SFTP connection. The description adds no meaning beyond the schema for any of the three parameters, leaving the undocumented session parameter fully ambiguous.

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 (upload), resource (local file), transport (SFTP), and direction (local to remote), which implicitly separates it from ssh_download. It does not name the sibling explicitly, but the direction of transfer makes the distinction unambiguous.

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?

The parenthetical '适合把脚本传上去再执行' gives one concrete usage scenario (stage a script, then run it), which implies pairing with ssh_exec. There is no statement of when not to use it, no mention of ssh_download as the inverse, and no prerequisites such as needing an open session first.

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