Skip to main content
Glama
ssh-remote-mcp
by wcbup

Disconnect Pooled SSH Connections

ssh_disconnect
Idempotent

Closes and removes a pooled SSH connection for a specific target, or all pooled connections when no target is given. Use it to release sessions and free resources after remote work.

Instructions

Close and remove a specific target's pooled SSH connection, or omit target to close all pooled 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_disconnect"
  }
}

Input Schema

NameRequiredDescriptionDefault
targetNoOptional target to disconnect. Omit to close all pooled connections.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare non-read-only, non-destructive, idempotent behavior, and the description adds that connections are both closed and removed from the pool. It does not say whether in-flight commands are killed or whether a subsequent ssh_exec auto-reconnects, which is the main behavioral question for an agent. Adequate but limited added value over annotations.

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?

One front-loaded sentence covering both modes with zero filler; the scope (single target vs. all) appears before the parameter 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?

For a one-optional-parameter tool with full schema coverage, annotations, and no output schema, the definition covers what is needed to call it correctly. The only gap is downstream effect on live sessions, which is meaningful but secondary.

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?

Schema coverage is 100% and the single parameter is documented in the schema; the description restates the same omit-to-close-all semantics almost verbatim. Baseline 3 is appropriate since the schema does the work.

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?

Specific verb+resource: "Close and remove a specific target's pooled SSH connection." It clearly targets the pooled-connection lifecycle, which distinguishes it from the execution/read/write siblings, though it never names ssh_connect as the establishing counterpart.

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?

Explains the optional-parameter branch explicitly: pass a target to close one connection, omit target to close all. It gives clear usage context but no exclusions (e.g., whether it is safe to call while commands are running).

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