Skip to main content
Glama

ui.dump

Capture the live Android UI hierarchy as JSON for element inspection and automation, with optional file save and node limit.

Instructions

全量节点树 JSON(实时桥数据):class/id/text/desc/bounds/checked/clickable 等语义

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
save_toNo可选,完整 JSON 落盘路径
max_nodesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

C2.8/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It mentions that data is real-time, but does not disclose read-only status, performance impact, output size limits, or what happens when max_nodes is exceeded.

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

Conciseness4/5

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

The description is a single front-loaded sentence that efficiently lists the returned fields. It is concise with no wasted words, though the dense field list could be slightly better structured.

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

Completeness3/5

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

With no output schema, the description helpfully enumerates some returned fields, but it omits return structure, truncation behavior from max_nodes, and save_to semantics. It is minimally viable but incomplete for a dump tool with two parameters.

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

Parameters2/5

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

Schema description coverage is 50%: save_to is documented in the schema, but max_nodes has no description. The tool description mentions neither parameter and adds no meaning beyond the schema, failing to compensate for the undocumented parameter.

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?

The description states the specific resource (full node tree JSON with real-time bridge data) and lists the semantic fields returned. It distinguishes itself from search-oriented siblings like ui.find or ui.get_text by implying a complete tree dump, but it does not explicitly name an alternative to route against.

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

Usage Guidelines2/5

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

There is no guidance on when to use this tool versus alternatives such as ui.snapshot or events.snapshot. The description only describes the output, leaving the agent to infer the use case.

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