Skip to main content
Glama

logcat_dump

Read recent Android log entries filtered by level, tag, PID, package, or keyword to debug runtime behavior without blocking on a live stream.

Instructions

Read recent Android log entries, filtered by level/tag/pid/keyword. Use for debugging runtime behaviour without blocking on a live stream.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "logcat_dump"
  }
}

Input Schema

NameRequiredDescriptionDefault
grepNoSubstring to keep (case-insensitive)
pidsNoOnly lines from these PIDs
tagsNoLog tags to include, e.g. ['ActivityManager']
clearNoClear the buffer after reading (default false)
levelNoMinimum level: V D I W E F (default W)
limitNoMax lines returned, newest kept (default 300)
secondsNoIf the buffer is empty, stream for N seconds (default 3)
packagesNoOnly lines from these app packages

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.8/5.0
Behavior3/5

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

No annotations are supplied, so the description must carry the behavioral burden; it does convey the non-blocking snapshot model. However it omits that `clear` mutates/destroys the device buffer and that the call can fall back to streaming for N seconds when the buffer is empty, which slightly undercuts "without blocking".

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, front-loaded with purpose then usage, no filler. Every clause contributes either capability or context.

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 an 8-parameter, zero-annotation, no-output-schema tool, the definition covers purpose and usage adequately, and the schema covers all parameters. The gaps are the buffered/streaming fallback and the destructive nature of `clear`, which are behaviorally relevant but partially documented in the schema itself.

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 coverage is 100%, so every parameter is already documented, establishing a baseline of 3. The description echoes level/tag/pid/keyword filtering but adds no defaults, syntax, or interaction semantics (e.g. how pids and packages combine) 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?

States a specific verb and resource ("Read recent Android log entries") plus the filter dimensions, so the agent knows exactly what it gets. It implicitly separates itself from the streaming sibling via "without blocking on a live stream", though it never names logcat_watch or logcat_crashes.

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?

"Use for debugging runtime behaviour without blocking on a live stream" gives a clear usage context and implicitly rules out the watch-style tool. There is no explicit when-not guidance or reference to logcat_crashes for crash triage, which is the obvious remaining alternative.

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