Skip to main content
Glama
Bridge Commander
by PaPasha215

read_process_output

Read-onlyIdempotent

Retrieve new output from a running session, waiting up to a set timeout for data to appear. Use an offset to page through retained lines without consuming them.

Instructions

Return new output of a session, waiting up to timeout_ms for some to appear. With offset, show retained output by line instead (negative offset = last N lines) without consuming it; length caps the lines.

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": {
      "pid": "<pid>"
    },
    "name": "read_process_output"
  }
}

Input Schema

NameRequiredDescriptionDefault
pidYes
lengthNo
offsetNo
timeout_msNoMilliseconds to wait for output.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the bar is lower, and the description still adds meaningful behavior: the default read consumes output while the offset read does not, and the call blocks up to timeout_ms. It does not say what is returned when the timeout expires with no output, which is the main remaining gap.

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 dense sentence that front-loads the primary behavior and then the alternate mode; nothing is wasted. The trailing clause 'length caps the lines' is slightly compressed and could be clearer, but the structure is efficient.

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?

With no output schema, the description carries the burden of describing return values, and it only loosely does so ('new output', 'retained output by line'). It does not specify the return shape (string vs. line array) or the result of a timeout with no output, leaving an agent to discover these empirically.

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?

Schema coverage is only 25% (only timeout_ms is documented), so the description must compensate, and it does: offset is explained as line-based retained output with negative meaning last N lines, and length is explained as a line cap. pid is left implicit, which is a minor omission for an otherwise well-covered parameter set.

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 ('Return new output of a session') and immediately clarifies the two operating modes (default new-output read vs. offset-based retained-output read). It is clearly distinguishable from read_file/read_multiple_files, though it never names a sibling explicitly.

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 real mode-selection guidance: use the default to get new output (waiting up to timeout_ms), or use offset to view retained output by line without consuming it. It does not name alternative tools or state when-not to use it, which keeps it short of a 5.

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