Skip to main content
Glama

logcat

Dump recent Android device logs with optional filter specifications to inspect system and app activity. Use filters like 'ActivityManager:I *:S' to target specific log tags.

Instructions

Dump recent logcat lines. Optional filter_spec e.g. 'ActivityManager:I *:S'.

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

Input Schema

NameRequiredDescriptionDefault
clearNo
linesNo
serialNo
filter_specNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It implies a read operation but never mentions that the `clear` parameter wipes the log buffer (a destructive side effect), nor does it disclose the 200-line default cap or that `serial` targets a specific device.

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 core action and no wasted wording. The terseness is efficient, though it comes at the cost of the missing parameter and side-effect detail noted elsewhere.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/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 explained. However, for a four-parameter tool with zero annotation coverage, omitting the destructive `clear` behavior and the device-selection semantics of `serial` leaves the definition materially incomplete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across four parameters, and the description only documents `filter_spec` with an example. The `clear`, `lines`, and `serial` parameters get no explanation beyond their bare titles, leaving the destructive `clear` and the truncation behavior of `lines` entirely to inference.

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?

The description states a specific verb and resource: 'Dump recent logcat lines.' An agent can identify the operation, but it does not distinguish this tool from the generic `shell` sibling, which could also surface logcat output.

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?

No when-to-use guidance, no prerequisites, and no named alternative. The only hint is the optional filter_spec example, which implies filtered log retrieval but says nothing about when to pick this over `shell` or when to set `clear`.

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