Skip to main content
Glama
SSH MCP Server

SSH MCP Server

by icdmkg2

ssh_list_tunnels

Lists all active SSH tunnels, including local and remote forwards, across every connection so you can inspect current port-forwarding activity.

Instructions

List all active SSH tunnels (local and remote forwards) across all 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_list_tunnels"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose the key behavioral traits that this is a read-only listing and that results span all connections and both forward directions, but it says nothing about what happens with stale/closed tunnels or what identifying fields come back for use with ssh_close_tunnel.

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?

A single front-loaded sentence with the scope qualifier in parentheses; every clause adds information and nothing is padded or repeated.

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 read tool with no output schema, the description gives enough to call it correctly: what is listed, which directions, and across which connections. The only meaningful gap is the absence of any hint about the shape of returned entries (e.g., identifiers needed to close a tunnel).

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 clarify beyond confirming the no-argument, all-connections scope, which it does. Baseline 4 applies for a parameter-free tool.

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 states a specific verb and resource ("List all active SSH tunnels") and narrows scope to local and remote forwards across all connections, which separates it from creation siblings like ssh_forward_local/ssh_forward_remote. It does not explicitly name the contrasting tools (ssh_close_tunnel, ssh_list_connections), but the read-only 'list active' framing makes the intent unambiguous.

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 implied: call this to inventory currently open tunnels before closing or auditing them. There is no explicit when-to-use/when-not statement and no pointer to a sibling for adjacent needs such as listing connections or profiles, so the agent must infer the routing.

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