Skip to main content
Glama
mcp-ssh-persistent

mcp-ssh-persistent

by vivusk

ssh_upload

Upload a local file to a remote server over SFTP, with local-path restrictions that block sensitive directories and return transfer path, bytes, and timing.

Instructions

Upload a local file to a server via SFTP (parallel fastPut). local_path must lie under os.tmpdir() or a configured localPathRoots dir; key dirs, ~/.ssh, ~/.claude, the MCP server repo/config and any .claude/.git dir, .mcp.json or CLAUDE.md are always refused. Returns one line: path, bytes, ms.

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

Input Schema

NameRequiredDescriptionDefault
serverYesServer alias from config.json (case-insensitive). Known aliases: (none configured)
local_pathYesLocal file path to upload
remote_pathYesRemote destination (file path, or directory ending with /)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.2.0

TDQS

A4.2/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 well: it discloses the SFTP fastPut implementation, enumerates refused path classes (~/.ssh, ~/.claude, .git, .mcp.json, CLAUDE.md), and specifies the one-line return shape. It omits overwrite semantics for an existing remote_path and any auth/permission requirements, which keeps it from 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tight sentences with the action first and constraints after; no filler, and the return format is compactly stated as path, bytes, ms.

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 write-side transfer tool with no annotations and no output schema, the definition covers safety restrictions and the response shape well enough to call correctly. Missing overwrite behavior and error/permission handling are the remaining gaps for a mutation tool.

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 baseline is 3, but the description adds real constraint meaning beyond the schema by specifying that local_path must lie under os.tmpdir() or a configured localPathRoots directory and listing the always-refused paths. remote_path's file-vs-directory semantics are, however, already covered by the 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?

States a specific verb and resource (upload a local file to a server) plus the transport mechanism (SFTP, parallel fastPut), which makes it clearly distinct from ssh_download and ssh_write_remote_file without needing to name them.

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 implied by the local_path root restrictions and the refusal list, which tell an agent where files may come from. However, it never states when to prefer this over ssh_write_remote_file or how it relates to ssh_download, so alternative selection is left to inference.

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