Skip to main content
Glama

List SSH hosts

ssh_list_hosts
Read-only

Lists configured remote hosts available for connection, providing the host names needed by other tools to target SSH operations.

Instructions

Lists the hosts this server can connect to. Other tools take one of these names.

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_list_hosts"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0-dev.1

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the agent knows this is a safe, non-external read, and the description usefully clarifies the listing is of locally connectable hosts. It does not describe the shape of the result (presumably host names), whether the list can be empty, or any auth/config prerequisites for the hosts being present.

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?

Two short sentences with no filler, and the core purpose is front-loaded ahead of the interoperability note. Every clause earns its place.

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 zero-parameter discovery tool with no output schema, the description covers what it does and how its output is used. The only gap is that it does not state the return type explicitly, though 'names' strongly implies a list of host strings.

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 zero parameters, so there is nothing for the description to disambiguate and the baseline applies. The note that returned names feed other tools adds a small amount of meaning about how the values are consumed.

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 gives a specific verb ('Lists') and resource ('the hosts this server can connect to'), which immediately separates it from siblings like ssh_exec and ssh_read_file that operate on a host rather than enumerate them. It stops just short of a fully explicit statement that this is the discovery entry point, but the second sentence carries that idea.

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?

'Other tools take one of these names' implies the tool should be called to obtain valid host identifiers before invoking siblings, but it never says so directly and names no alternative or exclusion. The when-to-use signal is inferable rather than stated.

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