Skip to main content
Glama

Start logcat capture

start_logcat_capture
Destructive

Start streaming device logcat into a buffer, optionally clearing it first, so you can capture everything logged during an interaction and stop later with stop_logcat_capture.

Instructions

Begin streaming logcat into a buffer for this device (optionally clearing first). Pair with stop_logcat_capture to get everything logged DURING a flow — use this instead of the one-shot 'logcat' when you need logs across an interaction.

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

Input Schema

NameRequiredDescriptionDefault
clearNoClear the logcat buffer before capturing. Default true.
serialNoTarget device serial (adb -s). Optional when exactly one device is attached.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.4/5.0
Behavior4/5

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

The destructiveHint=true is explained by 'optionally clearing first', and the description adds the important workflow fact that capture is a stateful session ended by stop_logcat_capture. It does not say where the captured buffer lives, whether multiple captures can overlap, or whether the buffer persists after the session, so it stops short of full disclosure.

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 tight sentences: the action and its scope lead, followed by the workflow pairing and the discriminating alternative. Every clause carries selection-relevant information.

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

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter stateful tool with no output schema, the description covers purpose, prerequisite pairing, and the alternative it supersedes. What is missing is only secondary: retrieval of the buffer and any device/session preconditions.

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%, so both parameters are already fully documented with defaults. The description's 'optionally clearing first' and 'for this device' merely restate the schema's clear and serial semantics rather than adding format or edge-case guidance.

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 and resource ('Begin streaming logcat into a buffer for this device') and explicitly contrasts itself with the one-shot 'logcat' sibling. An agent can distinguish this from logcat and clear_logcat without opening any schema.

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

Usage Guidelines5/5

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

Gives an explicit when-to-use rule ('when you need logs across an interaction'), names the alternative it replaces ('the one-shot logcat'), and names the required companion tool (stop_logcat_capture). Nothing is left to inference about the capture workflow.

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