Skip to main content
Glama

optimize_device_for_agent

Prepares a rooted Android device for AI agent control by disabling transition animations, keeping the screen on while plugged in, and waking/dismissing the lock screen.

Instructions

【设备极速模式调优】一键将手机调校为最适合 AI Agent 高速操控与调试的状态:

  1. 关闭系统窗口与过渡动画 (animation_scale = 0),消除页面切换等待时间

  2. 开启连接电源时屏幕常亮 (stay_on_while_plugged_in)

  3. 自动唤醒屏幕并滑开锁屏层 (wm dismiss-keyguard)

Input Schema

NameRequiredDescriptionDefault
zero_animationNo是否将系统过渡动画缩放设为 0.0;修改前保存原值,恢复用返回的 profile_id。默认 True
wake_and_unlockNo是否立即唤醒并解除锁屏遮挡,默认 True
stay_awake_while_pluggedNo是否开启 USB 连接时保持屏幕常亮不息屏,默认 True

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does disclose real side effects (animation scales set to 0, keyguard dismissed, screen woken, stay-awake enabled). It does not say whether root/ADB privileges are required, whether the changes persist across reboots, or what happens if one step fails.

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?

Front-loaded Chinese header followed by a tight numbered list of exactly the three effects; no filler. The bracket-styled title is slightly decorative but still informative.

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?

Outputs are covered by the output schema and parameters are fully described, so the essentials are present. For a state-mutating device tool with zero annotations, missing prerequisites (root/ADB), reversibility guarantees, and partial-failure behavior leave a real gap.

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 coverage is 100% and each parameter already documents its default and the profile_id restore path, so the schema does the heavy lifting. The numbered list loosely maps to the three boolean flags but adds no new semantics beyond the field descriptions.

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?

States a specific verb and resource (tune the device into agent-optimal mode) and enumerates the three concrete mutations, so an agent can tell it apart from granular siblings like system_settings or device_control. It stops short of naming those siblings explicitly, which keeps it from a 5.

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?

The framing 'best state for AI Agent high-speed control and debugging' implies the use case (preparing a device before automation), but there is no explicit when-to-use, when-not-to-use, or named alternative such as changing individual settings via system_settings.

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