Skip to main content
Glama
ssh-remote-mcp
by wcbup

Connect or Probe SSH Target

ssh_connect
Read-only

Establish, reconnect, or health-probe a pooled SSH connection to a target host, returning remote OS platform, shell, home directory, transport, read-only status, and latency.

Instructions

Explicitly establish, reconnect, or health-probe a pooled SSH connection. Returns remote OS platform, shell, home directory, active transport, read-only status, and latency. Note: other SSH tools also auto-connect lazily.

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": {
      "target": "<target>"
    },
    "name": "ssh_connect"
  }
}

Input Schema

NameRequiredDescriptionDefault
shellNoOverride remote shell detection (default: auto)
targetYesSSH target as configured host alias, host, user@host, user@host:port, or [ipv6]:port. Never include remote paths in target.
reconnectNoForce closing any existing pooled connection and establish a fresh one
transportNoOverride transport engine (default: auto)
ssh_configNoOptional alternate local OpenSSH config file path

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

The description adds useful return content (platform, shell, home dir, transport, read-only status, latency) beyond the annotations. But it does not explain practical behavior: whether reconnect reuses or kills pooled sessions in a way that affects other concurrent calls, whether connection attempts can prompt for auth or fail with specific errors, or the cost of probing. With readOnlyHint=true already declaring the safety profile, this is a modest add rather than rich disclosure.

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 tightly packed sentences: purpose, return contents, then a caveat about lazy auto-connect. Nothing is redundant and the caveat is placed last where it functions as a deconfliction note.

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 five-parameter connection tool with full schema coverage and no output schema, the description covers purpose, the return payload, and the lazy auto-connect caveat, which is what an agent chiefly needs. It falls short of complete on connection-failure/auth expectations and interaction with ssh_disconnect, but the essentials are present.

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 five parameters are already documented, and the description adds no per-parameter semantics. It does hint that returning 'read-only status' and 'transport' relates to the transport and shell overrides, but nothing beyond the schema about accepted target forms or reconnect implications. Baseline 3 applies.

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?

The description uses specific verbs (establish, reconnect, health-probe) on a specific resource (pooled SSH connection) and distinguishes itself from implicit paths by saying 'Explicitly' and noting other SSH tools auto-connect lazily. This makes the tool's distinct identity clear.

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?

It conveys that this tool exists for explicit connection setup/reconnect/health probing, which implies usage when you need to verify connectivity rather than run a command. However, it doesn't say when to prefer ssh_disconnect or the lazy auto-connect path, nor give exclusions such as 'do not use for executing commands'.

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