Skip to main content
Glama

android_logs

Fetches capped Android logcat output for a package, allowing level, time-window, and line-limit filters, and falls back to post-crash logs if the app has exited.

Instructions

Fetch capped logcat output for a package (with post-crash fallback if exited).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "package": "<package>"
    },
    "name": "android_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
levelNoW
packageYes
max_linesNo
since_secondsNo

Output Schema

NameRequiredDescriptionDefault
okYes
pidNo
errorNo
linesNo
packageNo
truncatedNo
process_runningNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.7/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, and it does disclose two real behaviors: output is capped and there is a post-crash fallback when the process has exited. It omits the safety/read-only profile, permission or connectivity requirements, and how truncation interacts with the cap.

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?

A single compact sentence with the scope front-loaded and no filler. It is dense and efficient, though its terseness is partly what leaves parameters undocumented.

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?

For a tool with four parameters, zero schema coverage, and no annotations, the description is far too thin. The absence of output-schema explanation is acceptable, but the unexplained time-window and log-level parameters leave an agent guessing at core behavior.

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

Parameters1/5

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

Schema description coverage is 0%, so the description must explain the four parameters, yet it only implies 'package' and loosely gestures at 'capped' for max_lines. The level enum (V/D/I/W/E, default W) and since_seconds are completely unexplained anywhere.

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 names a specific verb and resource ('Fetch ... logcat output') scoped to a package, which is clearly distinct from siblings like android_screenshot or android_doctor_*. It does not explicitly contrast with a sibling, but the resource itself is unambiguous.

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?

There is no statement of when to prefer this over android_assert, android_snapshot, or doctor tools, and no prerequisites (e.g., device must be connected via android_connect). The only usage hint is the implicit debugging context of logcat.

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