Skip to main content
Glama

get_cpu_info

Retrieve CPU usage data from Android devices to monitor performance and identify resource bottlenecks during development and testing.

Instructions

Get CPU usage information

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
device_serialNo

Implementation Reference

  • The main handler function for the 'get_cpu_info' tool. It executes 'adb shell top -n 1 -b' to retrieve CPU usage information for the specified device. The @mcp.tool() decorator also serves as the registration mechanism in FastMCP.
    @mcp.tool() def get_cpu_info(device_serial: str | None = None) -> str: """Get CPU usage information""" return run_adb(["shell", "top", "-n", "1", "-b"], 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