Skip to main content
Glama

logcat_crashes

Extracts Java exceptions, ANRs, native crashes, and Force finishing activity lines from Android logcat, optionally scoped to one app package to pinpoint crash causes.

Instructions

Extract Java exceptions, ANRs, native crashes and 'Force finishing activity' lines. Optionally scope to one package.

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

Input Schema

NameRequiredDescriptionDefault
limitNoMax events (default 40)
packageNoApp package to scope to
secondsNoStream for N seconds first if the buffer looks quiet

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3.2/5.0
Behavior3/5

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

No annotations, so the description carries the burden. It does disclose the extracted event classes and that scoping is optional, but says nothing about output format, whether results are bounded/paginated, device targeting, or that the call may block while streaming — the streaming caveat lives only in the schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences, front-loaded with the payload of extracted event types and no filler. Only mild waste in the redundant "Optionally scope to one package" tail.

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?

Adequate for a simple three-parameter read tool with no output schema, since the event categories explain the return content. It still leaves out device targeting, blocking/streaming behavior, and any relationship to the logcat_dump and logcat_watch siblings.

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% with per-parameter descriptions including a default for limit and the quiet-buffer rationale for seconds. The description's "optionally scope to one package" merely restates the package parameter's optionality, adding no syntax, format, or matching semantics 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?

Specific verb ("Extract") plus a precise enumeration of what is extracted: Java exceptions, ANRs, native crashes, and "Force finishing activity" lines. An agent knows exactly what this returns, though nothing in the text distinguishes it from logcat_dump or logcat_watch.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Only "Optionally scope to one package" hints at usage; there is no statement of when to choose this over logcat_dump or logcat_watch, no prerequisite (device connected/selected), and no note on when the unfiltered tools are preferable.

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