Skip to main content
Glama

get_output

Destructive

Retrieve buffered stdout, stderr, and debug adapter output for a session, filtering by category or fetching only new entries passed on a prior call's nextSince value.

Instructions

Get buffered stdout/stderr and debug adapter output for a session. Pass since (the nextSince from a previous call) to get only newly-emitted entries — useful for polling logpoint output without re-reading the full buffer.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_output"
  }
}

Input Schema

NameRequiredDescriptionDefault
clearNoClear the output buffer after reading (default: false)
sinceNoReturn only entries with seq > since. Pass the `nextSince` value from a prior call to fetch incremental output.
categoryNoFilter by output category: 'stdout', 'stderr', 'console', etc.
sessionIdNoSession ID (omit if only one session is active)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.19

TDQS

A3.8/5.0
Behavior3/5

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

The annotations declare destructiveHint=true, and that destructiveness comes from the `clear` parameter wiping the buffer — the description says only 'Get', which reads as a benign fetch and never warns about the destructive option. The buffering and incremental-cursor semantics it does add are useful, but the one risky behavior is left to the schema.

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?

Two sentences, front-loaded with what is returned, followed by the incremental-polling tip. No filler or 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?

With no output schema, the description adequately conveys what comes back (buffered stdout/stderr and adapter output, cursor-based entries). The remaining gap is the destructive side effect of `clear`, which an agent would only learn from the schema annotation.

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 coverage is 100% and the description's only parameter guidance (pass `since` from a prior `nextSince`) restates the schema's own wording for that field almost verbatim. Baseline 3 applies when the schema already carries parameter meaning; no extra format or interaction details are added.

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: 'Get buffered stdout/stderr and debug adapter output for a session.' That is concrete enough for an agent to distinguish this from get_state (state inspection) and evaluate (expression evaluation), though it 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 Guidelines4/5

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

Gives a concrete usage pattern: pass `since` (the `nextSince` from a previous call) to poll logpoint output without re-reading the full buffer. It stops short of stating when not to use it (e.g. when to prefer get_state for session status) and does not mention that `clear` destroys buffered data.

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