Skip to main content
Glama

ssh_monitor

Idempotent

Check SSH connection health: list profiles, test status, view pool stats, reload profiles, or close connections. See if a connection is ready, limited, no-route, or rejected.

Instructions

Looks after the SSH connections, not the machines behind them: lists the configured profiles, tests one and names the state (ready, limited, no-route, rejected), reports pool statistics, closes a connection or reloads the profile file. Close and reload drop live connections; the other actions only read. Start here on a machine you have not used yet — test says whether anything else will work.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYesWhich of the five to do.
profileNoWhich machine. Required for stats, test and close; list and reload take none.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
stateNo
actionNo
brokenNo
legendNoWhat the words in this answer mean. A key names the field before the value — "state=limited", "jobs[].state=lost" — and only the values this answer actually used are listed.
profileNo
profilesNo
exit_codeNo
latency_msNo
Behavior5/5

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

Discloses concrete side effects beyond annotations: close and reload drop live connections, while the other actions only read. It also explains the test output states (ready, limited, no-route, rejected). This does not contradict the annotations; destructiveHint=false is consistent with affecting only transient connections rather than data.

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?

Two tight sentences: the first scopes and enumerates capabilities, the second gives side-effect warnings and usage guidance. No filler; information is efficiently front-loaded.

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

Completeness5/5

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

For a tool with two parameters and an output schema, the description covers all actions, side effects, read/write behavior, and a clear starting use case. Nothing an agent needs to select and invoke it correctly appears missing.

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 schema fully covers both parameters, including profile requirements per action, so the baseline is 3. The description adds real meaning to the action enum by explaining what stats, reload, test, list, and close actually do, going slightly beyond the schema's generic 'Which of the five to do.'

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?

States a precise scope: manages SSH connections, not the machines behind them, and enumerates the five actions (list profiles, test, stats, close, reload). This clearly distinguishes it from the ssh_* sibling tools focused on machine health, file operations, and logs.

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?

Gives explicit entry-point guidance: start here on an unfamiliar machine because test tells whether other tools will work. It also warns that close/reload are destructive to live connections while other actions only read, though it does not name specific sibling alternatives or state when not to use it.

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/hypnosis/ssh-mcp-server'

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