Skip to main content
Glama
mcp-multi-ssh

mcp-multi-ssh

by hl9020

ssh_execute

Execute commands on any configured remote host via SSH by passing a connection ID and command, enabling targeted multi-server management from MCP clients.

Instructions

Execute a command on a remote host via SSH. connectionId accepts ANY configured connection (not just the first one); call read_ssh_connections to list all available connection IDs.

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": {
      "connectionId": "<connectionId>",
      "command": "<command>"
    },
    "name": "ssh_execute"
  }
}

Input Schema

NameRequiredDescriptionDefault
commandYesCommand to execute
connectionIdYesSSH connection ID. Any configured connection is valid; the enum lists all available IDs. Use read_ssh_connections to see them.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.17

TDQS

B3.4/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, yet it never mentions that arbitrary command execution is a side-effecting, potentially destructive operation. It says nothing about timeouts, output truncation, exit-code or stderr handling, or how long a command may block, which matters heavily for an agent invoking a remote shell.

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?

Two tight sentences with the core action front-loaded and the connection-ID caveat second. Slight redundancy with the schema's connectionId description is the only waste.

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?

Both required parameters are fully described and the discovery path for connectionId is spelled out, so an agent can construct a valid call. However, with no annotations and no output schema, the absence of any statement about results, errors, or execution limits leaves a meaningful gap for a high-impact tool.

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%, and the schema already states the same 'any connection, list via read_ssh_connections' guidance the description repeats, so the description adds little new meaning. The 'command' parameter carries no added semantics such as shell/environment context or quoting expectations.

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 and resource: 'Execute a command on a remote host via SSH.' That clearly separates it from siblings like read_ssh_connections (listing) and sftp_read_file (file transfer), though the description never explicitly names or contrasts those alternatives.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

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

Gives real workflow context: any configured connection is valid and read_ssh_connections should be called first to discover IDs. It does not state when NOT to use it (e.g., use sftp_write_file rather than shell redirection for file writes), so it stops short of full routing guidance.

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