Skip to main content
Glama
MCP SSH Manager

MCP SSH Manager

by bvisible

ssh_upload

Uploads a local file to a remote server path over SFTP, overwriting any existing file at the destination. Use for single-file transfers; for directory trees, use ssh_sync.

Instructions

Uploads one local file to a remote destination path over SFTP on the named server, overwriting any existing remote file at that path. Mutates remote state and is not idempotent beyond replacing the target. Creates no backup. Requires the local file to exist. Does not use sudo, so the remote path must be writable by the configured SSH user. This tool is blocked entirely on servers set to readonly or restricted security mode. On a server with a transferRoot the local file must be inside that folder. For directory trees use ssh_sync instead.

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": {
      "server": "<server>",
      "localPath": "<localPath>",
      "remotePath": "<remotePath>"
    },
    "name": "ssh_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
serverYesServer name
localPathYesLocal file path
remotePathYesRemote destination path

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv3.8.5
    • removedInput schema / additionalProperties
      Removed value: -false
  2. First observed

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does so well: overwrite semantics, non-idempotency beyond replacement, no backup created, local file must exist, no sudo so the remote path must be writable, and outright blocking on readonly servers. The only minor gap is nothing about failure/partial-transfer behavior or return values, which holds it just short of a 5.

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?

Front-loaded with the action and hazard (overwrite), then constraints, then the sibling redirect last. Every sentence is load-bearing, though the first sentence is long and the constraint clauses could be broken into a scannable list.

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

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutation tool with zero annotations and no output schema, the description covers preconditions, side effects, permission model, server-mode blocking, and the alternative tool. Nothing an agent needs before calling it is missing.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description genuinely adds constraint semantics the schema lacks: localPath must be inside transferRoot, remotePath must be writable by the configured SSH user, and the local file must already exist. That is meaningful per-parameter meaning beyond the one-line schema descriptions.

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 and resource ("Uploads one local file to a remote destination path over SFTP") and immediately scopes it to single files, explicitly routing tree transfers to ssh_sync. An agent can distinguish it from ssh_download and ssh_sync without opening 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 Guidelines5/5

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

Gives explicit when-to-use (single file) and when-not (directory trees, use ssh_sync instead), plus hard preconditions: blocked on readonly/restricted servers and local file must sit inside transferRoot. This is the full when/when-not/alternative triad.

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