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

Close connection(s)

jms_ssh_close

Closes the SSH connection for a given host, or all hosts when no host is specified, releasing persistent shells held open behind the bastion.

Instructions

Close the connection for one host, or all of them when no host is given.

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

Input Schema

NameRequiredDescriptionDefault
hostNoAsset id, IP or hostname; omit to close everything

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.1

TDQS

A3.5/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 behavioral burden. It usefully discloses that omitting the host closes every connection (an important, potentially disruptive default), but says nothing about the effect on in-flight commands, behavior for an unknown host, or whether connections can be re-established.

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?

One sentence with no filler, front-loading the primary action and placing the conditional variant second. Slightly denser than ideal for the two distinct modes, but nothing is wasted.

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-optional-parameter tool with no output schema and no annotations, the description covers the essential action and the destructive default. Only edge-case behavior (unknown host, failure reporting) is left unaddressed, which is a minor gap at this complexity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The single parameter is fully documented in the schema (100% coverage), including the accepted identifier forms (asset id, IP, hostname) and the omit-to-close-all semantics. The description restates the omit behavior rather than adding meaning beyond the schema, so the baseline of 3 applies.

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 pairs a specific verb (close) with a specific resource (connection) and clarifies its scope: one host or all. It is unambiguous on its own, though it does not explicitly name a sibling such as jms_ssh_connections to contrast with.

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?

It states the two invocation modes – pass a host to close one connection, omit it to close everything – which is concrete usage context. It offers no guidance on when to prefer this tool over alternatives or on prerequisites, such as checking jms_ssh_connections first.

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