Skip to main content
Glama

Read lines from a run's full output

read_output

Retrieve a defined range of lines from a previous command run's stored output by run ID to page through full logs while keeping errors and summaries intact.

Instructions

Returns a range of lines from the full stored output of an earlier run.

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": "read_output"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesRun id from `run`.
countNoHow many lines to return.
startNoFirst line, counted from 1. grep_output shows line numbers.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden. It makes clear this is a read operation over stored output, but it does not disclose what happens when start or count exceeds available lines, whether output is paginated, or any retention/access constraints.

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?

The definition is a single front-loaded sentence with no filler or repetition. It is efficient, though its brevity leaves little room for usage or behavioral context.

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?

This is a simple three-parameter read tool with full schema coverage and no output schema. The description covers the core concept and source of data, but it omits enough usage and edge-case behavior that an agent might need to infer how this tool relates to siblings.

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 100%, so the schema already explains id, start, and count in detail. The description adds only the general notion of a line range and does not extend parameter meaning beyond what the schema provides, making the baseline 3 appropriate.

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?

The description states a specific verb and resource: it returns a range of lines from the stored output of an earlier run. This is clear enough for an agent to understand the operation, but it does not explicitly distinguish itself from siblings like grep_output or squeeze_text.

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?

The phrase 'of an earlier `run`' establishes the prerequisite that a run must already exist, and 'range of lines' implies paged reading. However, there is no explicit when-to-use guidance, no when-not conditions, and no naming of alternatives such as grep_output for pattern searching.

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

Deploy Server

Other Tools