Skip to main content
Glama

logcat_watch

Stream Android logcat for a fixed capture window and return parsed events filtered by tags, PIDs, packages, level, or grep so you can inspect current device activity.

Instructions

Stream logcat for a fixed window (max seconds) and return parsed events. Trigger the action first, then watch — this catches what is happening right now.

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_watch"
  }
}

Input Schema

NameRequiredDescriptionDefault
grepNoKeep only lines containing this substring
pidsNoLimit to these PIDs
tagsNoLog tags to include
levelNoMinimum level V D I W E F (default V)
limitNoMax events returned, newest kept (default 200)
secondsNoCapture window in seconds (default 5)
packagesNoLimit to these app packages

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden: it discloses that capture is time-boxed by `seconds` and only observes the present, which is the most consequential behavior (events before invocation are missed) and is not visible in the schema. It does not state that the call blocks for the window duration, nor anything about permissions, read-only nature, or output shape beyond "parsed events".

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, no filler, with the core streaming scope front-loaded before the operational hint. Every clause carries information an agent needs.

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?

For a 7-parameter, no-annotation, no-output-schema tool it covers the essentials (bounded window, live-only capture, parsed events) but omits blocking duration, default behavior when filters are combined, and what the returned events look like structurally. Adequate, not complete.

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 all seven parameters are documented in structured form and the baseline is 3. The description adds only the notion that `seconds` is a hard maximum window; it adds nothing about grep/pid/package filter interaction or about `limit` truncation beyond what the schema already says.

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 ("Stream logcat") plus a bounded scope ("for a fixed window"), which implicitly separates it from a one-shot dump or crash-focused sibling. It never names logcat_dump or logcat_crashes, so differentiation is inferred rather than stated.

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?

"Trigger the action first, then watch" gives a usable sequencing hint for reproducing an issue live, which is genuine when-to-use guidance. However, no alternative is named and no exclusion is given (e.g., use logcat_dump for events that already happened), leaving the agent to guess between logcat tools.

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