Skip to main content
Glama
ssh-mcp-server

ssh-mcp-server

by B143KC47

ssh_exec

Runs commands on remote SSH hosts listed in your SSH config, enabling automated remote administration and troubleshooting from MCP-compatible agents.

Instructions

Execute a command on a remote SSH host. The host must be defined in the SSH configuration.

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": {
      "host": "<host>",
      "command": "<command>"
    },
    "name": "ssh_exec"
  }
}

Input Schema

NameRequiredDescriptionDefault
hostYesSSH host alias from the configuration
commandYesCommand to execute on the remote host
timeout_msNoCommand timeout in milliseconds (default: 60000)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It states only that a command is executed on a remote host and that the host must be configured, without covering permissions, authentication requirements, safety implications, output behavior, or the fact that arbitrary remote commands may be destructive.

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?

The description is two short sentences, front-loads the core action, and contains no unnecessary wording. It is appropriately sized for the structured information already present in the schema.

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

Completeness2/5

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

For a remote command execution tool with no annotations and no output schema, the description is too thin. It omits return behavior, safety considerations, and authentication or permission context that an agent would need before invoking it.

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 three parameters are documented in the input schema. The description reinforces the host prerequisite but does not add meaningful semantics for command or timeout_ms beyond what the schema already provides.

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?

The description states a specific verb and resource: execute a command on a remote SSH host. It also adds the scoping prerequisite that the host must exist in the SSH configuration. It does not explicitly differentiate from siblings such as ssh_test_connection, so it falls short of a 5.

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?

The description gives a clear prerequisite for host selection, but does not explain when to use this tool versus ssh_test_connection or other SSH siblings. Usage is implied by the operation itself rather than explicitly guided.

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