Skip to main content
Glama
ascript-cn
by ascript-cn

get_device_status

Get complete Android device status including hardware, system, screen, battery, network, storage, memory, permissions, and run mode. Determine available APIs, required permissions, and script runtime before automation.

Instructions

获取设备完整运行状态(仅 Android)。一次性返回:

  • device: 品牌/型号/ABI

  • system: Android 版本/SDK/语言/时区

  • screen: 分辨率/dpi/方向

  • battery / network / storage / memory

  • permissions: 全部权限授权状态

  • run_mode: 当前运行模式(root / accessibility / screen_only / hid)— 决定可用的 API 集

  • runtime: 是否正在跑脚本、当前工程名

  • tools: 已安装工具配置

强烈建议生成脚本前先调用:根据 run_mode 选择 API(如 node.find 仅在 accessibility 模式可用),根据 permissions 决定是否需要先申请权限,根据 runtime.is_script_running 避免互踩。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

No annotations provided, so description carries full burden. It comprehensively describes the output structure and hints at read-only behavior (status retrieval). However, it does not explicitly state there are no side effects or mention any rate limits or authentication needs. Still, it is above average in transparency.

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?

Description is well-structured with a clear front-loaded purpose and a detailed list of return categories. While somewhat lengthy, each part earns its place by providing meaningful information. Minor room for more concise phrasing.

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?

Despite no output schema, the description fully enumerates all returned fields and provides usage context (e.g., relevance of run_mode). This is complete for a status-reading tool and leaves no ambiguity about what the tool provides.

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?

Input schema has zero parameters with 100% coverage. Baseline for high coverage is 3. The description adds no parameter info because there are none, which is acceptable but does not provide additional semantic value beyond the schema.

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?

Description clearly states the tool retrieves complete device running status for Android devices. It lists all categories returned, distinguishing it from siblings like connect_device or observe_device which have different purposes.

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?

Explicitly recommends calling this tool before generating scripts, explaining why: to check run_mode for API selection, permissions for authorization, and runtime to avoid conflicts. This provides clear guidance on when to use the tool.

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/ascript-cn/ascript-mcp'

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