Skip to main content
Glama

Read a logcat stream

read_logcat_stream
Read-only

Fetches buffered Android logcat output accumulated since last read, capped per call, with remaining data kept for next read and overflow drops reported.

Instructions

Return buffered logcat output accumulated since the previous read of this stream. Output is capped per call; anything not returned stays buffered for the next read. Dropped bytes are reported when the ring buffer overflowed.

Input Schema

NameRequiredDescriptionDefault
max_bytesNoMaximum bytes to return in this call (default 65536).
stream_idYesstream_id returned by start_logcat_stream.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.0

TDQS

A3.8/5.0
Behavior4/5

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

With readOnlyHint already covering the safety profile, the description adds real behavioral context beyond annotations: per-call output capping, that unreturned data stays buffered for the next read, and that dropped bytes are reported on ring-buffer overflow. It stops short of covering error behavior (e.g., invalid or stopped stream) or whether the read blocks.

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 tight sentences, each earning its place, with the core incremental-read semantics front-loaded ahead of the buffering and overflow caveats.

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 two-parameter read tool with no output schema, the description adequately explains return semantics (incremental buffer, cap, remainder carried over, dropped-byte reporting). Minor gaps remain around failure modes and blocking behavior, but nothing essential to calling it correctly is missing.

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 both parameters are already documented, including max_bytes' default of 65536 and stream_id's origin. The description's mention of a per-call cap reinforces max_bytes but adds no syntax or format detail beyond the schema, so baseline 3 applies.

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+resource ('Return buffered logcat output') and pins down the scope with 'accumulated since the previous read of this stream', which implicitly distinguishes it from logcat_snapshot and the start/stop stream siblings. It does not explicitly name the alternative tools, so an agent must infer the split.

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 rather than stated: the phrase 'since the previous read of this stream' and the schema's 'stream_id returned by start_logcat_stream' tell the agent this is a follow-up to start_logcat_stream, but there is no explicit when-to-use guidance or contrast with logcat_snapshot.

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