Skip to main content
Glama
mcp-ssh-persistent

mcp-ssh-persistent

by vivusk

ssh_stream_stop

Stops a single streaming shell by sending Ctrl+C and closing only that stream's channel, leaving other streams and the persistent SSH connection active.

Instructions

Stop one stream: sends Ctrl+C, then closes only the shell channel of that stream.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "stream_id": "<stream_id>"
    },
    "name": "ssh_stream_stop"
  }
}

Input Schema

NameRequiredDescriptionDefault
stream_idYesStream ID to stop

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.2.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations at all, the description carries the full disclosure burden, and it does add real value by revealing the sequence: a Ctrl+C (SIGINT) is sent before the channel is closed. It stops short of stating whether the remote process is actually terminated, whether the interruption is graceful or forced, and what a caller observes after the call, which are the facts an agent most needs for a mutating terminate operation.

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 front-loaded sentence with the resource and the two-step mechanism in immediate order; every clause earns its place and nothing is padded.

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?

The tool is simple (one required string, no output schema, no nested objects), so the definition is close to sufficient, and the signal sequence is well covered. It is still missing the post-condition details a terminating tool should disclose: whether the remote command dies, whether the stream ID becomes reusable, and what the caller gets back.

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% for the single required stream_id, so the schema already defines the parameter. The description reinforces the scope ("one stream") but adds no identifier format, source of the ID, or behavior for an unknown/stale ID beyond what the schema provides.

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 ("Stop one stream") and adds mechanism ("sends Ctrl+C, then closes only the shell channel of that stream"). The phrase "only the shell channel" implicitly separates it from a full connection teardown like ssh_disconnect, but no sibling is actually named, so differentiation still requires inference.

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?

Usage is implied by being the shutdown counterpart to ssh_stream_start, and "one stream" signals single-stream scope. However, there is no explicit when-to-use statement and no guidance on when to prefer ssh_disconnect over stopping a single stream, nor any note about conditions under which stopping is inappropriate.

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