Skip to main content
Glama

collect_adb_bugreport

Capture a device-generated Android bugreport archive into a chosen output directory to diagnose device state, dumpsys, and logcat issues; collection may take minutes.

Instructions

Collect one device-generated bugreport archive (adb bugreport) into a caller-selected output directory, digesting the zip. The archive contains the device's own dumpstate, dumpsys, and logcat report; collection can take minutes. Read-only with respect to configuration.

Input Schema

NameRequiredDescriptionDefault
serialYesDevice serial exactly as `adb devices` reports it
output_directoryYesLocal directory for the bugreport archive; REA writes exactly one new zip into it
analysis_project_idNoOptional investigation to retain this tool result in. Does not prove target identity or causal relationships.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.9/5.0
Behavior4/5

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

Adds real context beyond annotations: the multi-minute latency of collection and the fact that only configuration is left untouched while one new zip is written to the target directory — which reconciles the `readOnlyHint: false` / `idempotentHint: false` flags with the 'read-only' framing. Nothing here contradicts the annotations, but failure modes (no device, adb timeout, partial transfer) are unmentioned.

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, zero filler, with the operation and destination front-loaded ahead of the cost warning. Every clause carries information an agent cannot get from the schema alone.

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?

There is no output schema and the description never says what the call returns (zip path, artifact handle, or whether the result is retained in a project). Combined with the ambiguous phrase 'digesting the zip', an agent still lacks the post-call picture for a long-running, file-producing operation.

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 the schema already explains `serial`, `output_directory`, and `analysis_project_id`. The description reinforces that the directory is caller-selected but adds no format, collision, or retention semantics beyond what the schema states.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (collect) and resource (a device-generated `adb bugreport` archive) and names the output destination, so it is immediately distinguishable from siblings like `read_adb_logcat` or `pull_adb_file`. Enumerating what the archive contains (dumpstate, dumpsys, logcat) confirms scope without ambiguity.

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?

The description implies usage ('one device-generated bugreport archive', 'collection can take minutes') and thereby signals this is the heavyweight option, but it never states when to prefer it over `read_adb_logcat`, `pull_adb_file`, or `inspect_adb_device`. No exclusions or prerequisites (device connected, adb authorized) are given.

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

Deploy Server

Other Tools