Skip to main content
Glama

read

Read-only

Retrieves stdout or error log streams for a specified agent, with line- and byte-range limits for targeted log inspection.

Instructions

Read an agent log stream selected by stream=stdout|errors. Uses lines_from/lines_to (0-based, end exclusive), max_lines, and max_bytes, or bytes_from/bytes_to. Long lines over 10k chars are truncated with a marker, warning, and byte offsets.

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": {
      "agent_id": "<agent_id>"
    },
    "name": "read"
  }
}

Input Schema

NameRequiredDescriptionDefault
streamNostdout
agent_idYes
bytes_toNo
lines_toNo
max_bytesNo
max_linesNo
bytes_fromNo
lines_fromNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true; the description adds real behavioral context beyond that: line indices are 0-based and end-exclusive, the two addressing modes are alternatives ('or'), and long lines over 10k characters are truncated with a marker, a warning, and byte offsets. It does not disclose defaults (max_bytes=1024) or what happens at end-of-stream, keeping it from a 5.

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?

Three compact sentences that are front-loaded with the resource and selection mode, then parameter semantics, then the truncation caveat. Every sentence carries information an agent needs; nothing is padding.

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?

An output schema exists, so return values need not be described, and the readOnly annotation covers the safety profile. For an 8-parameter tool the description covers the substantive semantics well, leaving only minor gaps such as defaults and agent_id meaning.

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 carries the burden and largely does: it explains the stream enum values, the 0-based end-exclusive semantics of lines_from/lines_to, and the role of max_lines, max_bytes, bytes_from and bytes_to. Only agent_id and the default values are left unexplained.

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: reads an agent log stream, selected via the stream parameter (stdout|errors). An agent can tell this is a log-reading tool, but nothing in the description distinguishes it from siblings like grep or list, so it stops short of a 5.

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?

Usage is implied through the two addressing modes (line-based vs byte-based), which hints at when to use which, but there is no explicit statement of when to prefer this tool over grep or list, nor any stated prerequisites or exclusions.

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