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

List SSH Hosts and Active Connections

ssh_hosts
Read-onlyIdempotent

Lists SSH host aliases from ~/.ssh/config with read-only policy flags, descriptions, credential status, and active pooled connections so agents can select valid remote targets.

Instructions

List SSH host aliases from ~/.ssh/config, local policy entries (read-only flags, descriptions, whether credentials are configured), and currently active pooled connections.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "ssh_hosts"
  }
}

Input Schema

NameRequiredDescriptionDefault
ssh_configNoOptional alternate local OpenSSH config file path

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, idempotentHint=true, and openWorldHint=false, so the safety profile is covered. The description adds real context beyond that: it names the source (~/.ssh/config), discloses that policy metadata such as read-only flags and whether credentials are configured are surfaced, and notes active pooled connections are included — meaningful because it tells the agent credential-configured status is visible without leaking secrets. It does not mention the local-vs-remote nature of the read or how connections are enumerated, keeping it below 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?

One front-loaded sentence with the verb and primary source first, then the additional data classes. Every clause adds information; the parenthetical is a compact enumeration rather than filler. Slightly dense as a single run-on sentence, but no wasted wording.

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?

With no output schema, the description must describe returns — and it does, naming the three categories of information returned. For a parameterless, read-only inventory call the behavioral surface is small, so this is nearly complete; only the shape of each returned entry (fields per host) is left unspecified.

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?

There is a single optional parameter (ssh_config) with 100% schema description coverage, so the schema already explains the alternate config path. The description mentions ~/.ssh/config as the default source, which implicitly frames the override, but never explicitly says the parameter lets you point at a different file. Baseline 3 is appropriate when the schema carries the semantics.

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 ('List SSH host aliases') and enumerates the three data sources it aggregates: ~/.ssh/config aliases, local policy entries, and active pooled connections. That makes it clearly a discovery/inventory tool, distinct in kind from the operational siblings (ssh_connect, ssh_exec, ssh_edit). It stops short of naming a sibling or explicitly disclaiming mutation, so it is clear but not sibling-routed.

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 is only implied: an agent can infer this is the inventory step before ssh_connect/ssh_exec, but the description never says 'use before connecting' or 'use when you need to discover available hosts.' No when-not-to-use condition or named alternative is given, so guidance is adequate-but-inferred rather than explicit.

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