Skip to main content
Glama

console_read

Read-onlyIdempotent

Drain and consume buffered console output from a session, up to an optional byte limit. Surfaces data even when the reader has errors.

Instructions

Drain up to max_bytes (default all) buffered console bytes.

        Consumes the drained bytes and resets the truncated flag. An
        unknown session is a tool error; an errored reader still surfaces
        any buffered data alongside the failure (registry.read()).
        

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sessionYes
max_bytesNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, so the safety profile is known. The description adds significant behavioral context: it consumes the drained bytes, resets the truncated flag, and handles errored readers by surfacing buffered data alongside failure. These details go beyond annotations and help the agent predict side effects.

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?

The description is two compact sentences, front-loaded with the primary action. Every sentence adds value—the first states the operation and parameter, the second covers side effects and error behavior. No redundant or filler text.

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?

Given the tool's simplicity and the presence of an output schema, the description adequately covers the core behavior, parameter meaning, and error conditions. It does not explicitly address when to use it relative to siblings, but that gap is partially covered by the purpose clarity. Overall, it is sufficiently complete for a read/drain operation.

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

Parameters4/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 compensate. It explains max_bytes ('up to max_bytes (default all)') and clarifies that null means all. Session is indirectly described via 'unknown session is a tool error', implying it must reference an existing session. This adds meaning beyond the raw schema, though session semantics could be more explicit.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's function: 'Drain up to ``max_bytes`` (default all) buffered console bytes.' This uses a specific verb (drain) and resource (buffered console bytes), distinctly distinguishing it from sibling tools like console_send (which writes) and console_open/close (which manage the session).

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 description implies usage (reading console output) but does not explicitly state when to use this tool instead of alternatives like console_send or console_close. It mentions error cases ('unknown session is a tool error') which provides some context, but no direct 'use this when...' guidance or exclusion of other tools.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/onurcelep/labgrid-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server