Skip to main content
Glama
SSH MCP Server
by termau

test_connection

Read-only

Verifies SSH server connectivity by attempting a connection and reporting success or failure with latency, so you can confirm reachability before running commands.

Instructions

Test connectivity to an SSH server.

Attempts to establish an SSH connection and reports success/failure with latency.

Parameters:

  • connection: Name of the connection to test (from list_connections)

Example usage: Verify a server is reachable before running commands.

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": {
      "connection": "<connection>"
    },
    "name": "test_connection"
  }
}

Input Schema

NameRequiredDescriptionDefault
connectionYesName of the connection to test

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 is consistent with that (a test does not mutate). It adds useful behavior beyond the annotation: an actual connection attempt is made and the result includes latency, so the agent knows to expect a timing cost and a pass/fail outcome. Auth requirements and timeout behavior are not disclosed.

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?

Front-loaded with the core action, then behavior, then a parameter note and example. Efficient overall, though the parameter line largely restates the schema text ('Name of the connection to test'), which is mild redundancy.

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 one-parameter read-only probe with no output schema, the description covers what it does, what it returns conceptually (success/failure plus latency), and where the parameter value comes from. Only deeper operational details such as credentials or timeout handling are absent, which are minor for this tool.

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?

Schema coverage is 100% for the single parameter, so the baseline is 3. The description earns above baseline by pointing to the source of valid values ('from list_connections'), which is a cross-tool hint the schema does not provide.

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: 'Test connectivity to an SSH server', then elaborates that it attempts a connection and reports success/failure with latency. This clearly separates it from command-executing siblings like run_command, though it never names a sibling explicitly.

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 concrete usage context: 'Verify a server is reachable before running commands.' That tells the agent the pre-flight scenario well. It stops short of explicit when-not-to-use or naming an alternative tool, so it is clear context rather than full routing guidance.

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