Skip to main content
Glama

list_avds

Retrieve a list of available Android Virtual Devices for development and testing purposes.

Instructions

List available Android Virtual Devices

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The actual implementation of the logic to retrieve the list of AVDs using the emulator tool.
    async getAvds(): Promise<string[]> {
      const { stdout } = await execFileAsync(this.emulatorPath, ["-list-avds"], {
        timeout: 10_000,
      });
      return stdout.split("\n").map((l) => l.trim()).filter(Boolean);
    }
  • src/index.ts:70-80 (registration)
    The MCP tool registration for 'list_avds'.
    server.tool("list_avds", "List available Android Virtual Devices", {}, async () => {
      const avds = await adb.getAvds();
      if (avds.length === 0) {
        return {
          content: [{ type: "text", text: "No AVDs found. Create one in Android Studio AVD Manager." }],
        };
      }
      return { content: [{ type: "text", text: avds.join("\n") }] };
    });
    
    server.tool(

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/martingeidobler/android-mcp-server'

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