Skip to main content
Glama

Current activity

android_current_screen
Read-onlyIdempotent

Retrieve the active Android screen's package and activity to detect navigation changes or a crash back to the launcher.

Instructions

Activity in focus (package/Activity); detects navigation or a crash to the launcher.

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

Input Schema

NameRequiredDescriptionDefault
serialNoDevice serial; optional if one device

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, closed-world), and the description adds genuinely useful context: the returned identifier format and the inference that landing on the launcher signals a crash. It stops short of stating behavior for multi-device or error cases.

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?

A single front-loaded sentence with no filler. The second clause is compressed to the point of mild ambiguity about what exactly is being 'detected'.

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?

There is no output schema, so the description carries the burden of describing the return value; it partially does so via 'package/Activity' but never states the return type or how ambiguity (multiple devices, no focused activity) is surfaced. Adequate but with clear gaps for a tool whose only output documentation is this sentence.

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?

The single 'serial' parameter is fully documented in the schema (100% coverage), including the 'optional if one device' note, so the description adds nothing on parameters. Baseline 3 applies.

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 names the resource ('Activity in focus') and its representation ('package/Activity'), which is specific enough to distinguish it from siblings like android_screenshot or ui_dump that capture visual/structural state. It does not explicitly name those siblings, but the verb+resource is concrete.

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

Usage Guidelines3/5

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

Usage is only implied: it hints at checking navigation or detecting a crash-to-launcher, but never says when to prefer this over android_screenshot or ui_dump. No explicit preconditions or exclusions are stated.

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