Skip to main content
Glama
expoli

android-phone-mcp-server

by expoli

diff_state

Compare the current Android screen with the last cached snapshot to identify added, removed, or text-changed elements. Returns stable-id diffs and screen hashes for precise verification.

Instructions

Diff the current screen against the last cached snapshot.

Returns added/removed/text-changed element lists (stable-id diff) plus both screen hashes — the explicit counterpart of the automatic evidence returned by every action tool.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
deviceNoADB serial; omit with a single connected device.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

With no annotations, the description carries the full burden. It discloses that it compares against the last cached snapshot, returns added/removed/text-changed element lists (stable-id diff), and both screen hashes. It also clarifies its relationship to automatic evidence. It does not explicitly state it is read-only or what happens if no snapshot exists, but 'diff' strongly implies non-mutating behavior, and the output description adds context beyond the tool name.

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 sentences, tightly packed with meaningful information: what it does, what it returns, and its relationship to other tools. No filler or redundancy.

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?

The description covers the core behavior and return values, and an output schema exists to detail the exact structure. It doesn't mention edge cases (e.g., no snapshot), but given the tool's simplicity and available schema, this is sufficient. Could be a 5, but a note about snapshot prerequisites would make it fully complete.

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 the parameter (device) is fully documented in the schema. The description does not mention parameters, which is fine because the schema already handles it. Baseline 3 applies; no extra value needed from description.

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?

The description clearly states the tool's function: 'Diff the current screen against the last cached snapshot.' It uses a specific verb ('diff') and resource ('screen' vs 'cached snapshot'), and distinguishes itself by mentioning it is the 'explicit counterpart of the automatic evidence returned by every action tool.' This separates it from sibling tools like get_screen or get_screen_hash.

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?

It provides clear context by calling itself the 'explicit counterpart of the automatic evidence returned by every action tool,' implying use when explicit diff evidence is needed. However, it does not explicitly state when not to use it or name alternative tools. This is clear context without exclusions, meriting a 4.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/expoli/android-phone-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server