Skip to main content
Glama

agent_read

Read-onlyIdempotent

Read terminal output from an agent to review its response after prompting; use source=detection to retrieve raw bottom-of-screen text.

Instructions

Read an agent's terminal output. Use after agent_prompt to see the response; use source=detection for the raw bottom-of-screen text.

Input Schema

NameRequiredDescriptionDefault
ansiNo
linesNo
sourceNorecent-unwrapped
targetYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already establish that this is a safe, read-only, idempotent operation. The description adds useful behavioral context by explaining when to call it and what source=detection returns, though it does not explain default source behavior or line-limiting semantics.

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 short sentences with no wasted wording, and the primary purpose is front-loaded before the usage note.

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?

The existence of an output schema reduces the need to describe return values, and annotations cover the safety profile. However, for a read tool with four parameters and no schema descriptions, the description is not complete enough to guide correct use of target, lines, ansi, or the full source enum.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must carry parameter meaning, but it only explains one enum value for source. It leaves target, lines, ansi, and the other source values undocumented, which is a significant gap for four parameters.

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 an agent's terminal output." This is clear enough to identify the operation, though it does not explicitly distinguish itself from the sibling pane_read tool.

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 explicit usage guidance: use it after agent_prompt to see the response, and use source=detection for raw bottom-of-screen text. It does not compare against alternatives like agent_wait or pane_read, so it stops short of full routing guidance.

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