Skip to main content
Glama
mcp-ssh-persistent

mcp-ssh-persistent

by vivusk

ssh_stream_read

Read buffered output from a persistent SSH stream since the last read or write and check whether it is at a prompt, awaiting input, or still running.

Instructions

Read buffered output of a stream since the last read/write. Footer [state: ...] shows prompt / awaiting_input(kind) / running.

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_read"
  }
}

Input Schema

NameRequiredDescriptionDefault
clearNoClear buffer after read (default true)
wait_msNoWait up to N ms for new output, returning after 500 ms of quiet (default 0)
stream_idYesStream ID to read from

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.2.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does add real value by disclosing the footer format and its states (prompt, awaiting_input(kind), running), which tells the agent how to detect interactivity, but it omits permission/auth prerequisites, empty-buffer behavior, and what happens after the stream terminates.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two tight sentences with the core action front-loaded and no filler. The footer sentence is dense but slightly cryptic as written, since it assumes the reader knows the footer format.

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 three-parameter read tool with no output schema, the description covers only the footer portion of the returned state and leaves the actual buffered payload and end-of-stream behavior unexplained. Adequate but not thorough given the absence of annotations and output schema.

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 description coverage is 100%, so all three parameters are already documented, including clear's default and wait_ms's quiet-period behavior. The description adds only the 'since last read/write' framing, which is baseline-level value at best.

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: 'Read buffered output of a stream', with the incremental scope 'since the last read/write'. That distinguishes it from ssh_stream_write and ssh_stream_start without needing to name them, though no sibling is explicitly referenced.

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 only implied: read after starting/writing to a stream to collect output. There is no explicit when-to-use, no guidance on when to poll versus wait, and no mention of what to do if the buffer is empty or the stream has ended.

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