Skip to main content
Glama

Stop logcat capture

stop_logcat_capture

Stops the active logcat capture and returns collected logs, optionally filtered by substring, priority, or tags, with a default tail cap of 500 lines.

Instructions

Stop the running logcat capture and return what was collected since start, optionally filtered by a case-insensitive substring, a minimum priority (V/D/I/W/E/F), and/or tags (OR'd). Output is capped to the last 500 lines by default (override with tail) so a long capture doesn't blow the token budget — narrow with the filters first.

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

Input Schema

NameRequiredDescriptionDefault
tagsNoKeep only lines whose log tag contains one of these (case-insensitive, OR'd).
tailNoKeep only the last N lines after filtering (the most recent, where a crash usually is). Default 500; pass a larger number for more, or a huge one to effectively disable the cap.
filterNoCase-insensitive substring to keep.
redactNoMask common secrets (token, password, authorization, api key, secret) before returning captured lines.
serialNoTarget device serial (adb -s). Optional when exactly one device is attached.
priorityNoMinimum priority to keep: V, D, I, W, E, or F.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare openWorldHint=false and destructiveHint=false, so the description does not need to explain safety from scratch. It adds useful behavioral context: captured lines are capped to the last 500 by default, tail overrides the cap, and filters should be narrowed first to avoid token-budget issues. It does not mention error behavior when no capture is running, but the main operational traits are disclosed.

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?

The description is two sentences, front-loaded with the action and return behavior, and every clause adds useful operational context. The cap rationale is placed immediately after the filter description, making it easy to parse.

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 six-parameter tool with no output schema, the description covers the essential purpose, return content, filtering behavior, and default output cap. It leaves less-critical details such as redaction and serial targeting to the schema, but is sufficient for correct selection and invocation.

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

Parameters4/5

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

Schema coverage is 100%, so the schema already documents all six parameters thoroughly. The description adds cross-parameter guidance by explaining the purpose of the cap and tail in token-budget terms and by advising filter narrowing, though it does not describe redact or serial beyond what the schema provides.

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?

The description states a specific verb and resource: stop the running logcat capture. It also adds the distinctive return behavior, 'return what was collected since start,' which separates it from start_logcat_capture, logcat, and clear_logcat.

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?

It implies the tool is used when a logcat capture is already running and mentions narrowing with filters, but it does not explicitly name alternatives such as logcat, clear_logcat, or last_crash. The when-to-use context is therefore present only by implication.

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