Skip to main content
Glama

Read the screen as text

ui_dump
Read-onlyIdempotent

Captures the current Android screen as compact text, including element labels, IDs, flags, and tap coordinates, so agents can inspect UI state before and after actions without screenshots.

Instructions

Current screen as compact text: label, id, flags and @(x,y) centre per element, for android_tap. Far cheaper than a screenshot; call before and after each action.

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
serialNoDevice serial; optional if one device
interactiveOnlyNoOnly clickable/scrollable/editable

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds value beyond that by describing the return format (label, id, flags, centre coordinates) and a cost characteristic relative to screenshots. No output schema exists, so the return-format disclosure is doing real work here.

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 clauses with zero filler, front-loaded with the output format before the recommendation. Every phrase carries information: format, coordinate notation, consumer tool, cost comparison, and call timing.

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 no output schema, the description must convey what comes back, and it does at a useful level: per-element label, id, flags and tap centre. Annotations cover the read-only/idempotent profile. Minor gap: 'flags' is not explained, and nothing states whether the dump is truncated on long screens.

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?

Both parameters have 100% schema description coverage ('Device serial; optional if one device' and 'Only clickable/scrollable/editable'), so the schema carries parameter meaning. The description never mentions serial or interactiveOnly, adding no semantics beyond the schema. Baseline 3 applies when schema coverage is complete.

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?

States a specific resource and output shape: 'Current screen as compact text: label, id, flags and @(x,y) centre per element.' The closing 'for android_tap' clarifies what the output feeds into, and 'far cheaper than a screenshot' distinguishes it from the screenshot sibling. It stops short of naming android_current_screen, another screen-reading sibling, so the differentiation is not complete.

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

Usage Guidelines4/5

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

Gives an explicit usage pattern: 'call before and after each action', which is a concrete when-to-use rule an agent can follow directly. It also implicitly frames the alternative ('far cheaper than a screenshot'). It lacks an explicit exclusion, such as when a screenshot is still required (e.g. visual verification), so it falls short of a 5.

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