Skip to main content
Glama

clear_logcat

Clear Android device logcat buffers to remove old logs and start fresh debugging sessions. Use this tool to maintain clean logs for development, testing, and troubleshooting workflows.

Instructions

Clear the logcat buffer

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
device_serialNo

Implementation Reference

  • The handler function for the clear_logcat tool, registered via the @mcp.tool() decorator. It executes 'adb shell logcat -c' to clear the logcat buffer on the specified device.
    @mcp.tool() def clear_logcat(device_serial: str | None = None) -> str: """Clear the logcat buffer""" return run_adb(["shell", "logcat", "-c"], device_serial)

Latest Blog Posts

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/rahulkr/r_adb_mcp_server'

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