Skip to main content
Glama
Rixmerz

android-layout-inspector-mcp

by Rixmerz

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
ADB_PATHNoPath to the adb executable. Used as an alternative to having adb on PATH.
ANDROID_HOMENoPath to an Android SDK containing platform-tools/adb. Used as an alternative to having adb on PATH.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
logging
{}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_devicesA

List attached Android devices and emulators, with their adb state.

inspect_layoutA

Full computed layout of the current screen: every node with its bounds.

The Android counterpart of reading getBoundingClientRect() on a web page. Set interactive_only to get just the touchable nodes.

detect_issuesA

The main tool. Measured layout problems on the current screen.

Finds overlapping content, off-screen and clipped nodes, zero-size nodes, touch targets under Material's 48dp minimum, clickable nodes covered by something drawn later, and interactive nodes with no accessibility label. Each finding carries the geometry that produced it.

element_contextA

Deep dive on one node: its geometry, ancestry, siblings and collisions.

selector matches a resource-id, then exact text, then a substring of text or content-desc.

accessibility_spatialC

Accessibility issues that are spatial or structural.

Touch targets under 48dp, interactive nodes fully covered by something else, and clickables a screen reader cannot announce.

compare_orientationsA

Run detect_issues in portrait and landscape and diff the findings.

The Android counterpart of checking a web page across breakpoints. This rotates the device and leaves it in portrait.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.2/5.0

Scored across 6 tools

Disambiguation2/5

detect_issues and accessibility_spatial overlap significantly: both detect touch targets under 48dp, covered interactive nodes, and accessibility labeling problems. inspect_layout and element_context also both expose geometry, though one is screen-wide and the other node-specific, creating boundary ambiguity.

Naming Consistency3/5

Four tools follow a verb_noun pattern (list_devices, inspect_layout, detect_issues, compare_orientations), but element_context and accessibility_spatial break the pattern with noun-first names. The mixed conventions are still readable and not chaotic.

Tool Count5/5

Six tools is well-scoped for an Android layout inspector: device enumeration, layout inspection, issue detection, deep node context, accessibility-specific checks, and orientation comparison. Each tool has a clear role in the workflow, and the count is neither thin nor bloated.

Completeness4/5

The tool surface covers the main inspection lifecycle: enumerate devices, dump layout, identify issues, drill into a node, run accessibility checks, and compare orientations. Minor gaps exist, such as no screenshot capture or explicit way to filter issues by type, but agents can accomplish core layout analysis workflows.

Maintenance

ActivityMaintained
ResponsivenessNo issues