Skip to main content
Glama

Snapshot screen UI

snapshot
Read-onlyIdempotent

Returns a text outline of the current screen's accessibility tree, letting you find exact labels to tap and verify the screen after a tap; read-only and masked on sensitive screens.

Instructions

Return a text outline of the current screen's accessibility tree, one line per visible element: [ref] Class "label" {click,edit,focused,disabled} (x,y), where x,y is the element's center in screen pixels. Use it to find the exact label to pass to tap_label and to verify the screen after a tap; use foreground for just the app name. Read-only. Password fields are masked, and the call is refused with an error on sign-in, password or recovery screens. Output can still contain private on-screen text, so treat it as sensitive.

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": "snapshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
serialNoADB serial of the target device, as returned by list_devices. Required when the server has no --device scope; when scoped, omit it or pass the same serial (any other serial is rejected).

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.1
    • addedInput schema / properties / serial / description
      Added value: +"ADB serial of the target device, as returned by list_devices. Required when the server has no --device scope; when scoped, omit it or pass the same serial (any other serial is rejected)."
  2. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world, but the description adds substantive context they don't carry: password fields are masked, the call is refused with an error on sign-in/password/recovery screens, and output may contain sensitive on-screen text. This is exactly the kind of failure-mode and privacy disclosure annotations can't express.

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?

Front-loaded with the output format, then usage, then safety caveats — a logical progression with no filler. It is dense and slightly long for a snapshot tool, but nearly every clause carries operational value.

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

Completeness5/5

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

Covers format, purpose, alternatives, error conditions and privacy handling; the return shape is described even though an output schema exists. Nothing an agent needs to call this correctly is missing.

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?

Only one parameter and the schema already documents serial at 100% coverage, including the scoping rule and rejection behavior, so the description adds nothing about it. Baseline 3 applies since the schema does the full job.

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

Purpose5/5

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

States a concrete verb and resource ('Return a text outline of the current screen's accessibility tree') and even spells out the per-line format, so the agent knows exactly what comes back. It explicitly separates itself from the sibling foreground ('use foreground for just the app name').

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

Usage Guidelines5/5

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

Gives two concrete use cases (finding the label to pass to tap_label, verifying the screen after a tap) and names the sibling alternative with its distinguishing condition. When-to-use, when-to-use-something-else, and the follow-up call are all covered.

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

Deploy Server

Other Tools