Skip to main content
Glama
jahrulnr

mcp-ssh-agentic

by jahrulnr

ssh_close

Close the multiplexed SSH master connection for a given target, releasing resources when the persistent session is no longer needed.

Instructions

Close the multiplexed SSH master connection for a target (no-op when multiplexing is disabled, e.g. native Windows OpenSSH).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
targetYesSSH target in the form user@host[:port]. Uses the local SSH config and keys.
Behavior3/5

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

The description discloses a key behavioral trait: that it becomes a no-op when multiplexing is disabled. However, there are no annotations, so the description carries the full burden. It doesn't mention whether this closes any active running commands, what happens to in-flight operations, or side effects on other tools using the same master connection. Adequate but could be richer.

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, efficient sentence that conveys purpose, scope, and a critical edge case (no-op when multiplexing disabled). Zero wasted words.

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 simple single-parameter no-op-capable tool, the description is largely complete. It covers the action, scoping, and the edge case of disabled multiplexing. Minor gaps include not detailing side effects on connected sessions or what the response looks like, but given the tool's simplicity these are not critical omissions.

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 single 'target' parameter is fully documented in the schema (100% coverage) with format 'user@host[:port]' and notes it uses local SSH config and keys. The description adds the behavioral context of what the target refers to (the multiplexed master). With full schema coverage, baseline is 3 and the description's scoping adds minimal extra value, so 4 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Clearly states the verb (close), resource (multiplexed SSH master connection), and target scope. It also distinguishes itself from the sibling ssh_interactive_close by specifying it operates on the multiplexed master connection rather than an interactive session.

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?

The description implies when this tool is applicable (when multiplexing is enabled) and notes the no-op behavior when multiplexing is disabled (e.g., native Windows OpenSSH). It could be stronger by explicitly contrasting with ssh_interactive_close, but the behavioral note about no-op provides practical usage context.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jahrulnr/mcp-ssh-agentic'

If you have feedback or need assistance with the MCP directory API, please join our Discord server