Skip to main content
Glama

ssh_disconnect

Idempotent

Close a pooled SSH connection to a specified target or all connections when no target is provided, freeing resources and cleaning up remote sessions.

Instructions

Close the pooled SSH connection to target, or all connections if omitted.

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
targetNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, destructiveHint=false, so the safety profile is covered. The description adds the pooling concept and the target-versus-all effect, but does not say whether in-flight jobs or shells on the connection are terminated, which is the main behavioral risk for a disconnect.

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 sentence, front-loaded with the action, and the conditional scope is attached immediately. Nothing is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need not be explained, and the tool is simple. However, for a connection-teardown tool with zero parameter documentation, the description should say what happens to active work on the connection and whether reconnection is implied.

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?

Schema description coverage is 0% for the single optional `target` parameter, so the description carries the burden and does: it explains that supplying `target` closes only that connection while omitting it closes everything. That is real meaning beyond the schema's type/default.

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?

States a specific verb and resource ('Close the pooled SSH connection') and adds scope semantics ('to `target`, or all connections if omitted'). An agent can distinguish this from adb_disconnect from the SSH wording alone, though it never explicitly contrasts with siblings.

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?

The 'all connections if omitted' clause implies when the no-argument form applies, but there is no guidance on when to disconnect a single target versus all, and no mention of how this interacts with active ssh_job_* operations or whether a reconnect is required.

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