Skip to main content
Glama

ssh_list_targets

Read-only

Lists available SSH targets from device config, ~/.ssh/config Host aliases, and open connections, helping you pick a valid target for other SSH tools.

Instructions

List SSH targets: devices from the misc-mcp config, Host aliases from ~/.ssh/config, and currently open connections. Any of these names can be used as target in other ssh_* tools, as can a plain [user@]host[:port] string.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior3/5

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

readOnlyHint and openWorldHint annotations already tell the agent this is a safe, environment-touching read, so the bar is lower. The description adds useful behavioral context by naming the three backing sources (local config, ~/.ssh/config, live connections), but says nothing about failure modes such as a missing ~/.ssh/config or how expensive the live-connection probe is.

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 short clauses, front-loaded with the definition and followed immediately by how to use the output. No filler, no restatement of the tool name, and the actionable routing information comes before the format detail.

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 an output schema present and zero parameters, the description only needs to explain sources and semantics, which it does. It is nearly complete; the only omission is any hint about what happens when individual sources are unavailable or empty.

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, which sets the baseline at 4. The description does clarify the `target` string grammar ('[user@]host[:port]') consumed by sibling tools, which is genuinely helpful even though it is not a parameter of this call.

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 opens with a specific verb+resource ('List SSH targets') and then enumerates the three concrete sources it aggregates: misc-mcp config devices, Host aliases from ~/.ssh/config, and currently open connections. That enumeration makes the scope unambiguous and clearly separates it from ssh_job_list or ssh_exec.

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?

It explicitly states downstream usage: any listed name can be passed as `target` to other ssh_* tools, and a plain `[user@]host[:port]` string is also acceptable. It gives clear context for when to call it (discovery before exec/upload/read), though it doesn't explicitly say when NOT to call it, e.g. that it is unnecessary if the host string is already known.

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