Skip to main content
Glama
MCP SSH Manager

MCP SSH Manager

by bvisible

ssh_deploy

Deploy local files to remote server paths with automatic backups, permissions, ownership, and optional post-deploy commands. Update remote files safely while preserving existing versions.

Instructions

Deploys a list of local files to remote paths on the named server, uploading each to a temporary location first and then moving it into place. Mutates remote state. By default it backs up any existing target file before overwriting; backup can be disabled per call. Options can set owner and permissions, supply a sudo password, and give a shell command to run afterward (restart, for example "sudo systemctl restart nginx"), which runs as written on the server as the SSH user and is shown in full to whoever approves the deploy. Detects sensible owner and permission defaults from the remote path. Runs pre and post deploy hooks. Blocked entirely on servers in readonly or restricted security mode.

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>",
      "files": "<files>"
    },
    "name": "ssh_deploy"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesYesArray of files to deploy
serverYesServer name or alias
optionsNoDeployment options

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv3.8.5
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / files / items / additionalProperties
      Removed value: -false
    • removedInput schema / properties / options / additionalProperties
      Removed value: -false
  2. First observed

TDQS

A3.8/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 behavioral burden and does well: it discloses remote state mutation, default backup, per-call backup disable, sudo password handling, post-deploy shell command visibility to approvers, automatic owner/permission detection, hooks, and security-mode blocking. It omits failure/rollback semantics and return information, keeping 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.

Conciseness4/5

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

Front-loads the purpose in the first sentence, then layers behavioral details efficiently. The paragraph is dense but every sentence carries useful information, with no filler or repetition.

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 mutation tool with no annotations or output schema, the description is nearly complete: it covers security-mode blocking, backups, sudo, hooks, and post-deploy commands. Gaps around failure handling and how hooks are configured (there is a sibling ssh_hooks) keep it at 4.

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. The description adds meaning by clarifying that backup defaults to true and can be disabled per call, that restart is an arbitrary shell command shown to approvers (more precise than the schema's 'Service to restart'), and that owner/permissions have detected defaults.

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 (deploys) and resource (a list of local files to remote paths on the named server), and explains the two-step upload-then-move mechanism. It does not explicitly name sibling alternatives, so it stops short of full differentiation, but the operation is clearly distinct.

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?

Provides a when-not condition (blocked on servers in readonly or restricted security mode) and notes default backup behavior, but offers no explicit alternatives such as ssh_sync for directory synchronization or ssh_execute for arbitrary commands. Usage is implied by the deploy framing rather than fully guided.

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