Skip to main content
Glama

Read bounded operation output

operation_output
Read-onlyIdempotent

Use this to retrieve bounded stdout and stderr for a child execution owned by the authenticated grant, also after its execution session was closed or expired. This is read-only, does not consume execution units, and requires the connected device to retain the output. Without stream/offset/length it returns the retained tail. For command_run output longer than the tail, pass stream, offset and length to read the full output page by page (the agent keeps up to 8 MiB per stream in memory for recent commands); continue at nextOffset while hasMore is true.

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": {
      "operationId": "<operationId>",
      "childExecutionId": "<childExecutionId>"
    },
    "name": "operation_output"
  }
}

Input Schema

NameRequiredDescriptionDefault
lengthNoPage size in UTF-8 bytes, at most 65536 (default 32768). A page ends on a whole character and can be shorter.
offsetNoPage start, in UTF-8 bytes of the output (default 0). Continue at the returned nextOffset.
streamNoRead one page of this stream's full command output instead of the retained tail. Default stdout when offset or length is given.
operationIdYes
childExecutionIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / length
      Added value: +{
      +  "description": "Page size in UTF-8 bytes, at most 65536 (default 32768). A page ends on a whole character and can be shorter.",
      +  "maximum": 65536,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / offset
      Added value: +{
      +  "description": "Page start, in UTF-8 bytes of the output (default 0). Continue at the returned nextOffset.",
      +  "maximum": 2147483647,
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedInput schema / properties / stream
      Added value: +{
      +  "description": "Read one page of this stream's full command output instead of the retained tail. Default stdout when offset or length is given.",
      +  "enum": [
      +    "stdout",
      +    "stderr"
      +  ],
      +  "type": "string"
      +}
  2. Changed2 schema fields changed
    • removedInput schema / properties / childExecutionId / pattern
      Removed value: -"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    • removedInput schema / properties / operationId / pattern
      Removed value: -"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
  3. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the readOnly/idempotent/non-destructive annotations, it discloses that the call does not consume execution units, that the connected device must still retain the output (an availability constraint), and that only a bounded tail is returned by default. The 8 MiB per-stream memory note for paging is exactly the kind of operational detail annotations cannot express.

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?

Three sentences, front-loaded with purpose before constraints and paging instructions; every clause carries information. The parenthetical about the 8 MiB memory budget is dense but earns its place as a paging constraint.

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?

With no output schema, the description does the work of describing return behavior: a retained tail by default, page slices when paging, and nextOffset/hasMore continuation fields. It stops short of stating the exact response shape (e.g., whether both streams come back together in tail mode), which is a minor gap for a read tool.

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 60%, and the description compensates by framing stream/offset/length as a paging triple with a continuation loop over nextOffset/hasMore, and by explaining that omitting them yields the retained tail with stdout as the default. It does not restate byte-unit or maximum values, which the schema already covers.

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 names a specific verb and resource: retrieve bounded stdout and stderr for a child execution owned by the authenticated grant. It also scopes the tool to output that survives session close/expiry, which distinguishes it from the sibling command_run that produces the output in the first place.

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?

It clearly states the use case (reading output after the execution session closed or expired) and the condition for switching modes: use stream/offset/length only when the output is longer than the retained tail, continuing while hasMore is true. It does not explicitly exclude or name alternative readers such as operation_status, but the trigger conditions are concrete.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.