Skip to main content
Glama
mcp-ssh-persistent

mcp-ssh-persistent

by vivusk

ssh_disconnect

Disconnect a persistent SSH session by server alias, or omit the alias to close all active sessions.

Instructions

Disconnect one server session, or all sessions when server is 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
serverNoServer alias from config.json (case-insensitive). Known aliases: (none configured). Omit to disconnect all.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.2.0

TDQS

B3.3/5.0
Behavior2/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 says what gets disconnected but not whether active transfers or open streams are killed, whether the call is idempotent when no session exists, or whether disconnecting all is a broad/destructive action an agent should confirm first.

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 sentence with no filler, and the scope-branching rule is stated up front rather than buried.

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?

For a one-parameter, no-output tool this is nearly sufficient, but with no annotations and no return-value documentation, an agent still cannot tell whether it gets a success/failure result per session or how partial failures across multiple sessions are reported.

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 schema already documents case-insensitivity, the alias source, and the omit-to-disconnect-all behavior, which the description restates. Compared with zero configured aliases noted in the schema, the description adds no further guidance on valid values.

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 (disconnect) and resource (one server session / all sessions) plus the rule that selects the all-sessions behavior. It does not distinguish itself from close-sounding siblings like ssh_stream_stop, which also terminate something, so the agent must infer that streams and sessions are different scopes.

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 description implies when to use it (ending a connection) and encodes one branching rule via the omitted parameter, but gives no explicit when-not guidance or mention of prerequisites such as whether an active session must exist first.

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