Skip to main content
Glama

Read Agent Output

agent_read
Read-onlyIdempotent

Read terminal output from a local coding agent by target, defaulting to recent unwrapped output and 120 lines so completed responses and code reviews are easy to inspect.

Instructions

Read terminal output from a coding agent. Defaults to 'recent-unwrapped' (soft wraps joined) and 120 lines, which is best for reading completed responses and code reviews.

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": {
      "target": "<target>"
    },
    "name": "agent_read"
  }
}

Input Schema

NameRequiredDescriptionDefault
ansiNoPreserve ANSI color/style escape codes when true.
linesNoNumber of lines/rows to read (default 120).
sourceNoSnapshot source: 'recent-unwrapped' (default), 'recent', 'visible', or 'detection'.
targetYesUnique live agent name or hosting pane ID (for example 'reviewer' or 'w1:p2').

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.1

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered without the description. The text adds only a gloss on the default source ('soft wraps joined') and its best-fit scenario; it says nothing about truncation, behavior for an unknown or dead target, or whether the call blocks while no output is available.

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: the action first, then the default configuration and its best use. Nothing is redundant, and the most decision-relevant information (what it reads, what you get by default) is front-loaded.

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-only, four-parameter tool with full schema coverage and no output schema, the description covers the essentials: what is read, from what target, and which defaults apply. The remaining gaps — line-limit tradeoffs and error behavior for a missing agent — are small for this complexity level.

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 all four parameters including the source enum are already documented — the baseline is 3. The description reinforces the default source and default line count and hints at why 'recent-unwrapped' is preferable, but adds no syntax, format, or boundary detail (e.g., maximum lines) beyond the schema.

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 opens with a specific verb and resource: 'Read terminal output from a coding agent.' That is unambiguous about what the tool returns. It does not, however, contrast itself with closely named siblings such as pane_read, agent_wait, or pane_wait_output, so an agent must infer which read variant applies.

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?

It gives a positive usage signal — the defaults are 'best for reading completed responses and code reviews' — which implies you call this after work has finished. It never states when not to use it (for example, when output is still streaming and a wait tool would be better) and names no alternative.

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