Skip to main content
Glama

DroidMind

android-log

Retrieve specific logs from an Android device using the MCP server, including logcat, app, ANR, crash logs, and battery stats, with customizable parameters for precise data extraction.

Instructions

Perform various log retrieval operations on an Android device.

This single tool consolidates various log-related actions. The 'action' parameter determines the operation.

Args: serial: Device serial number. action: The specific log operation to perform. ctx: MCP Context for logging and interaction. package (Optional[str]): Package name for get_app_logs action. lines (int): Number of lines to fetch for logcat actions (default: 1000). filter_expr (Optional[str]): Logcat filter expression for get_device_logcat. buffer (Optional[str]): Logcat buffer for get_device_logcat (default: "main"). format_type (Optional[str]): Logcat output format for get_device_logcat (default: "threadtime"). max_size (Optional[int]): Max output size for get_device_logcat (default: 100KB).

Returns: A string message containing the requested logs or status.


Available Actions and their specific argument usage:

  1. action="get_device_logcat"
    • Optional: lines, filter_expr, buffer, format_type, max_size.
  2. action="get_app_logs"
    • Requires: package.
    • Optional: lines.
  3. action="get_anr_logs"
    • No specific arguments beyond serial and ctx.
  4. action="get_crash_logs"
    • No specific arguments beyond serial and ctx.
  5. action="get_battery_stats"
    • No specific arguments beyond serial and ctx.

Input Schema

NameRequiredDescriptionDefault
actionYes
bufferNomain
filter_exprNo
format_typeNothreadtime
linesNo
max_sizeNo
packageNo
serialYes

Input Schema (JSON Schema)

{ "$defs": { "LogAction": { "description": "Defines the available sub-actions for the 'android-log' tool.", "enum": [ "get_device_logcat", "get_app_logs", "get_anr_logs", "get_crash_logs", "get_battery_stats" ], "title": "LogAction", "type": "string" } }, "properties": { "action": { "$ref": "#/$defs/LogAction" }, "buffer": { "default": "main", "title": "Buffer", "type": "string" }, "filter_expr": { "default": "", "title": "Filter Expr", "type": "string" }, "format_type": { "default": "threadtime", "title": "Format Type", "type": "string" }, "lines": { "default": 1000, "title": "Lines", "type": "integer" }, "max_size": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "default": 100000, "title": "Max Size" }, "package": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Package" }, "serial": { "title": "Serial", "type": "string" } }, "required": [ "serial", "action" ], "title": "android_logArguments", "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/hyperb1iss/droidmind'

If you have feedback or need assistance with the MCP directory API, please join our Discord server