Skip to main content
Glama

adb_list_devices

List all connected Android devices using ADB functionality for remote management, app control, and shell command execution.

Instructions

List all connected Android devices

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Core handler function for 'adb_list_devices' tool that lists connected Android devices using AdbClient and returns formatted success/error response.
    async listDevices() { try { const devices = await this.adbClient.getDevices(); return { success: true, data: devices, message: `Found ${devices.length} device(s)` }; } catch (error: any) { return { success: false, error: error.message, message: 'Failed to list devices' }; } }
  • src/index.ts:433-434 (registration)
    Switch case in CallToolRequestSchema handler that registers and dispatches 'adb_list_devices' calls to DeviceTools.listDevices().
    case 'adb_list_devices': return await this.handleToolCall(this.deviceTools.listDevices());
  • Tool schema definition including name, description, and empty input schema (no parameters required).
    name: 'adb_list_devices', description: 'List all connected Android devices', inputSchema: { type: 'object', properties: {}, required: [], }, },

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/richard0913/adb-mcp'

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