Skip to main content
Glama
ssh-remote-mcp
by wcbup

Upload Local File or Directory to Remote

ssh_upload
Destructive

Copy a local file or directory to a remote host over pooled SFTP, keeping file bytes out of the LLM context. Optionally verify SHA-256, preserve permissions, or exclude paths.

Instructions

Stream a local file or directory directly to a remote host without passing file bytes through the LLM context. Uses SFTP over the pooled connection with automatic pipe fallback for hosts without sftp-server. Defaults to overwrite=false and verifies SHA-256 on single files.

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>",
      "local_path": "<local_path>",
      "remote_path": "<remote_path>"
    },
    "name": "ssh_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
targetYesSSH target as configured host alias, host, user@host, user@host:port, or [ipv6]:port. Never include remote paths in target.
excludeNoOptional directory names or glob patterns to exclude during recursive upload
overwriteNoMust be true to overwrite existing remote file(s) (default: false)
recursiveNoRequired when uploading a directory (default: false)
local_pathYesLocal source file or directory path
remote_pathYesExplicit remote absolute path (e.g. /etc/nginx/nginx.conf or C:\Services\app.json) or home-relative ~/... path. Bare relative paths are rejected.
verify_checksumNoVerify SHA-256 checksum on remote after single-file upload (default: true)
preserve_permissionsNoPreserve local POSIX mode bits on remote Unix target (default: false)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, and non-idempotency, but the description adds genuine context: SFTP transport with automatic pipe fallback, pooled-connection reuse, overwrite=false by default, and SHA-256 verification on single files. It stops short of describing what happens on checksum mismatch or permission failures, so it is strong but not exhaustive.

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?

Three tight sentences, front-loaded with the core action and transport mechanism. The final sentence duplicates schema defaults already visible to the agent, which is minor waste but not harmful.

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 an 8-parameter destructive transfer tool with no output schema but rich annotations, the description covers mechanism, safety defaults, and verification. Return values and failure-mode behavior are the main omissions, which the absent output schema makes somewhat acceptable.

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

Parameters3/5

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

Schema description coverage is 100%, so all eight parameters are already documented, including the overwrite and verify_checksum defaults that the description merely restates. No additional parameter meaning (e.g. exclude pattern syntax or preserve_permissions caveats) is contributed.

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/stream) and resource (local file or directory to a remote host), and the phrase 'without passing file bytes through the LLM context' implicitly separates it from content-writing siblings like ssh_write. It does not name an explicit alternative the way a top score would.

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 context is only implied by 'stream ... directly to a remote host' and the note about bypassing the LLM context; there is no explicit when-to-use versus ssh_write or ssh_download guidance, and no mention of when to prefer ssh_exec alternatives.

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