dump_ui_hierarchy
Obtain the current UI hierarchy of a connected Android device for debugging or automation purposes.
Instructions
Dump the UI hierarchy of the connected Android device
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Obtain the current UI hierarchy of a connected Android device for debugging or automation purposes.
Dump the UI hierarchy of the connected Android device
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description must disclose behavioral traits. It only states the action without explaining what the dump contains (e.g., full tree, accessibility info), performance impact, or output format. This leaves significant ambiguity.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single sentence that is concise and front-loaded. However, it could be slightly improved by adding brief context about the dump format without sacrificing conciseness.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given no output schema and no annotations, the description is insufficiently complete. It does not clarify what the output looks like, whether it returns a tree or flat structure, or how to interpret the hierarchy. This is a critical gap for an agent invoking the tool.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema has no parameters (coverage 100%), so the description does not need to explain them. A baseline of 4 is appropriate since no parameter information is lacking.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description 'Dump the UI hierarchy of the connected Android device' clearly specifies the action (dump), the resource (UI hierarchy), and the scope (connected Android device). It distinguishes itself from sibling tools like 'take_screenshot' or 'list_apps' which perform different operations.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives. It does not mention prerequisites, context, or scenarios where another tool might be more appropriate, such as using 'take_screenshot' for visual inspection.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/vs4vijay/espresso-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server