Skip to main content
Glama

get_current_activity

Identify the current foreground screen on an Android or iOS device to verify UI state during mobile testing. Returns the activity name for the specified device.

Instructions

Get the name of the currently resumed activity (foreground screen)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
device_idNoTarget device ID. If omitted, uses the default device.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.8.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the transparency burden. 'Get' implies a read-only action and the description makes the target state clear, but it does not mention behavior when no activity is resumed, device connection requirements, or any error conditions.

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?

One sentence containing only the essential information: the action, the target, and a clarifying synonym. No padding or repetition.

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?

For a simple one-parameter read tool with full schema coverage, the description plus schema is nearly complete. It could state the return type explicitly since no output schema exists, but 'name' already signals the expected string result.

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 sole parameter, device_id, is already fully documented in the schema ('Target device ID. If omitted, uses the default device'). The description adds no parameter-level meaning, so it stays at the baseline for full schema coverage.

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 uses a specific verb ('Get') and a clear resource ('name of the currently resumed activity'), further clarified by the parenthetical '(foreground screen)'. This distinguishes it from related siblings like wait_for_activity, which waits rather than retrieves.

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

Usage Guidelines2/5

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

No guidance is given about when to use this tool instead of related alternatives such as wait_for_activity, dump_ui, or observe_ui. The description states what the tool returns but does not describe the calling context or exclusions.

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