Skip to main content
Glama

read_process_output

Read-only

Fetch new stdout and stderr from a running background process. Pass offsets to retrieve only recent output and wait_ms to block until new output appears or the process exits.

Instructions

Read captured stdout and stderr from a managed background process. Pass the previous "next_stdout_offset" and "next_stderr_offset" values as "since_stdout" and "since_stderr" to receive only new output, and "wait_ms" to block until output arrives or the process exits.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pidYesProcess ID returned by start_process.
wait_msNoWait up to this long for new output or process exit.
since_stderrNoReturn stderr produced after this offset.
since_stdoutNoReturn stdout produced after this offset.
Behavior5/5

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

Beyond the readOnlyHint and destructiveHint annotations, the description discloses meaningful behavior: output is captured incrementally using offsets, and wait_ms causes blocking until output arrives or process exits. This adds substantial value beyond the structured annotations.

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?

The description is two sentences, front-loaded with the core purpose, followed by the essential usage pattern. Every sentence carries useful information and there is no redundancy.

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

Completeness4/5

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

For a simple read tool with clear annotations and full schema coverage, the description covers the key call semantics: offsets for incremental reads and blocking behavior. The response structure is not explicitly described, but the tool's behavior and parameters are sufficiently specified for correct invocation.

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 100%, so the schema already documents each parameter. The description adds extra semantics by explaining how since_stdout and since_stderr relate to previously returned next offsets, and how wait_ms modifies tool behavior, improving parameter understanding beyond the schema alone.

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?

The description states a specific verb and resource: reading captured stdout/stderr from a managed background process. It clearly differentiates from sibling tools like process_status (status vs output) and process_write (write vs read), so an agent can select it correctly.

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?

The description gives concrete usage context: pass prior offset values to fetch only new output, and use wait_ms to block. It does not explicitly state when not to use this tool or name alternatives, but the usage pattern is clear enough for correct invocation.

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/JonusNattapong/ChatGPTMCP'

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