Skip to main content
Glama

server_session_read

Reads newly buffered output from a running SSH session so you can retrieve recent command or terminal data without opening a new connection.

Instructions

Read newly buffered output from a running SSH session.

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": {
      "session_id": "<session_id>"
    },
    "name": "server_session_read"
  }
}

Input Schema

NameRequiredDescriptionDefault
wait_msNo
session_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.6/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 burden, and it discloses only that output is "newly buffered." It does not say whether reading consumes/clears the buffer, whether the call blocks, what happens when no output is available, or what errors look like for a finished/unknown session.

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?

A single front-loaded sentence with no filler. It is efficient, though its brevity borders on under-specification given zero annotation and schema coverage.

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

Completeness1/5

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

For a session-I/O tool with no annotations, no output schema, and 0% parameter documentation, one sentence is far short of what an agent needs. Blocking behavior, buffer lifecycle, and termination/error semantics are all missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so both parameters are undocumented. session_id is guessable, but wait_ms (default 500) is the semantically load-bearing parameter and its meaning — presumably a maximum wait for new output — is nowhere explained, leaving the key control ambiguous.

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 from a running SSH session. The qualifier "newly buffered" signals incremental/delta reads, which implicitly separates it from server_session_list and server_session_start, though no sibling is ever named.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description never says when to call this instead of siblings such as server_session_list or server_read_file, nor does it state the precondition that a session must exist (from server_session_start). An agent must infer the polling/read loop context entirely on its own.

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