Skip to main content
Glama

get_device_status

Retrieve current Android device status, including model, Android/SDK version, root UID, foreground app/activity, screen resolution, and screen-on state for rooted-device automation.

Instructions

获取当前连接的 Android 设备状态:设备型号、Android/SDK 版本、实际 Root UID、 当前前台包名与 Activity、屏幕分辨率及 UIAutomator2 可提供的亮屏状态。

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does convey that this is a passive read of live device state and that the root UID reported is the 'actual' one, which hints at privilege context. However, it says nothing about behavior when no device is connected, latency, or whether root access is required to populate the root UID field.

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 that leads with the action and then lists the returned fields, with no filler. The enumerated field list is dense but each item earns its place by telling the agent what data is available.

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 an output schema present, the description need not detail return structure, and it still summarizes the key fields. For a zero-parameter read tool this is nearly complete; the only gap is the absence of any note about failure modes when no device is attached.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool takes zero parameters, so there is no parameter semantics to explain and the baseline of 4 applies. The description correctly adds no parameter discussion, keeping focus on the returned data.

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 opens with a specific verb+resource ('获取当前连接的 Android 设备状态') and then enumerates exactly what is returned: model, Android/SDK version, root UID, foreground package/Activity, resolution, and screen-on state. That makes the tool's scope unambiguous. It stops short of naming how it differs from close siblings such as device_diagnostics, system_property, or device_connection, so it is clear but not sibling-differentiated.

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: an agent can infer this is the snapshot to call before acting on a device, but the description never states when to prefer it over device_diagnostics or system_property, nor any preconditions. No exclusions or alternatives are given.

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