Skip to main content
Glama
jms-ssh-mcp
by digyear

Show held connections

jms_ssh_connections
Read-only

Lists hosts with live SSH connections, showing shell state, idle time, and how much output the bounded buffer dropped, so you can inspect session health and buffer loss before running more commands.

Instructions

Which hosts currently have a live connection behind them: shell state, idle time, and how much output the bounded buffer had to drop.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.1

TDQS

A3.6/5.0
Behavior4/5

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

readOnlyHint=true already declares the safety profile, so the description's job is to add return-behavior context, which it does: it enumerates shell state, idle time, and notably how much output the bounded buffer dropped, warning the agent that output loss is possible. It does not say whether results are per-connection rows or an aggregate snapshot, but for a read-only query tool that is a modest gap.

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?

A single tight fragment with a colon-delimited list of the reported fields, front-loading the scoping idea ('which hosts currently have a live connection'). The phrasing 'have a live connection behind them' is slightly awkward, but every clause carries information and there is no filler.

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?

This is a parameterless read-only reporting tool with no output schema, so the description must convey the return shape, and it names all three reported attributes. The main unresolved question for an agent is whether this covers only persistent/held sessions versus connections created by jms_ssh_run, which would sharpen the sibling split.

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 and the schema is an empty object, so there is no parameter meaning for the description to carry. Baseline for a 0-parameter tool is 4; nothing here misleads or needs compensation.

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 frames the tool as a live-session inventory: hosts that 'currently have a live connection behind them', plus shell state, idle time and buffer drop counts. That is a specific verb-less but unambiguous statement of what the tool reports, and the word 'currently' separates it from a static host listing (jms_ssh_hosts) by implication. It stops short of naming any sibling explicitly, so an agent must infer that distinction.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit when-to-use, when-not-to-use, or alternative named anywhere in the description. The word 'currently' faintly implies a freshness/liveness check, but nothing tells the agent to prefer this over jms_ssh_hosts or to call it before jms_ssh_close. Routing must be inferred entirely from the title and name.

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