Skip to main content
Glama

process_output

Read-only

Read the output and status of a start_process session. newOnly returns only output since the last newOnly read; waitMs waits for new output or exit; waitForPrompt waits until it asks for input (heuristic). Default: the last tailChars of output. Returns JSON with running, exitCode, output, nextCursor and interactionState.

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": {
      "id": "<id>"
    },
    "name": "process_output"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
cursorNo
lengthNo
offsetNo
waitMsNo
newOnlyNo
deviceIdNoComputer name or id
tailCharsNo
waitForPromptNo
workSessionIdNoFrom create_work_session

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / deviceId / description
      Previous value: -"Computer name or id; optional with one computer or a default"New value: +"Computer name or id"
  2. Changed2 schema fields changed
    • changedInput schema / properties / deviceId / description
      Previous value: -"Computer name or id from list_devices. Optional with one computer online or a default set."New value: +"Computer name or id; optional with one computer or a default"
    • changedInput schema / properties / workSessionId / description
      Previous value: -"Work session from create_work_session. Pass the same ID on every call in this conversation; omit for legacy unscoped work."New value: +"From create_work_session"
  3. Changed1 schema field changed
    • addedInput schema / properties / workSessionId
      Added value: +{
      +  "description": "Work session from create_work_session. Pass the same ID on every call in this conversation; omit for legacy unscoped work.",
      +  "format": "uuid",
      +  "type": "string"
      +}
  4. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, openWorldHint=false, so safety is covered. Beyond that, the description discloses the default windowing behavior (last tailChars of output), the heuristic nature of waitForPrompt, stateful newOnly semantics, and the shape of the JSON return. It does not mention the max 30s wait cap or what interactionState values mean, but the added context is substantial.

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 dense sentences, front-loaded with purpose, followed by flag semantics and the return shape. Telegraphic style is efficient, though the flag explanations read as a list without punctuation hierarchy, making them slightly harder to parse.

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 10-parameter tool with no output schema, the description does well by enumerating the JSON fields (running, exitCode, output, nextCursor, interactionState) and covering the behaviorally tricky flags. The remaining gap is the pagination trio (cursor/length/offset) whose semantics an agent must guess.

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 only 20% across 10 parameters, so the description must compensate. It does explain the non-obvious flags (newOnly, waitMs, waitForPrompt, tailChars default), but cursor, length, offset, deviceId, and workSessionId are left undocumented and their interaction with tailChars is unclear. Partial compensation only.

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 output and status of a start_process session – and names the sibling that creates the session. An agent can distinguish it from process_input/stop_process by the 'read' verb, though the description never explicitly contrasts with those siblings.

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?

Implicitly frames the polling use cases: waitMs for new output or exit, waitForPrompt for input prompts, newOnly for delta reads. There is no explicit statement of when to prefer one mode over another, no exclusions, and no guidance on how this relates to process_input when a prompt is detected.

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.

Resources