Skip to main content
Glama

ui_dump

Dump the Android accessibility hierarchy to inspect on-screen elements’ text, resource ID, bounds, and tap center for reliable UI automation.

Instructions

Dump the accessibility hierarchy: every element with text, resource-id, bounds and tap centre. This is how you 'see' the screen.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "ui_dump"
  }
}

Input Schema

NameRequiredDescriptionDefault
freshNoBypass the short-lived hierarchy cache
max_nodesNoCap the node list (default 250)
include_rawNoInclude the raw uiautomator XML

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.6/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations exist, so the description carries the full burden. It usefully discloses the shape of what comes back (element text, resource-id, bounds, tap centre), but says nothing about read-only semantics, output volume limits, or that the result is a snapshot that goes stale — though max_nodes and the cache flag are covered in the schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences, front-loaded with the verb and resource, then the payoff of what the agent gains. Nothing is wasted or restated from the schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With zero required parameters, no output schema and no annotations, this is a simple read tool — and the description fills the main gap by explaining what the returned element list contains. It is nearly complete, missing only a note on snapshot freshness and result size.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so fresh, max_nodes and include_raw are already documented in structured form. The description adds no further meaning about what bypassing the cache costs or when include_raw is worth setting, so baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Dump the accessibility hierarchy" names a specific verb and resource, and the sentence enumerates the returned fields (text, resource-id, bounds, tap centre). It implicitly separates itself from ui_find and logcat_dump by framing itself as full-screen visibility, though it never names a sibling explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

"This is how you 'see' the screen" implies the tool should be used to inspect the UI before acting, which is real guidance but only implied. There is no explicit statement of when to prefer ui_find or ui_wait, nor any exclusion for cases where this tool is unnecessary.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.