Skip to main content
Glama
SSH MCP Server
by termau

list_connections

Read-only

List all configured SSH connections to view available hosts, ports, and usernames before running remote commands.

Instructions

List all configured SSH connections.

Returns the name, host, port, and username for each connection. Connections are configured via the SSH_CONNECTIONS environment variable.

Example usage: Before running commands, list connections to see what's available.

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": "list_connections"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint: true, and the description adds value beyond that: it lists the returned fields (host, port, username) and, crucially, identifies the source of truth as the SSH_CONNECTIONS environment variable. That tells an agent why the result may be empty or unexpected. It does not mention behavior when the env var is unset, but the additions are substantive.

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?

Purpose is stated in the first line, with return shape and configuration source following in logical order. The 'Example: Example usage:' style line is slightly redundant with the earlier content but is short and still adds the routing hint. No filler sentences.

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 compensates by enumerating the returned fields and naming the environment variable that populates them. Combined with the readOnly annotation, an agent has enough to call this confidently. Minor gap: behavior on missing/empty configuration is not stated.

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?

The tool takes no parameters, so there is nothing for the description to disambiguate and the baseline applies. The description doesn't introduce spurious parameter-like concepts, keeping the zero-arg contract clear.

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 opens with a specific verb+resource: 'List all configured SSH connections.' An agent can tell this is a read of connection config rather than a directory listing or a command execution. It stops short of naming siblings like refresh_connections or add_connection to disambiguate within the connection-management group.

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?

The final sentence gives a concrete use context: "Before running commands, list connections to see what's available." That is clear guidance on when to reach for this tool. It does not state when not to use it, nor name refresh_connections/add_connection as alternatives.

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