Skip to main content
Glama

device_unlock

Wake the screen and dismiss the keyguard, optionally typing a PIN or password, so you can run UI dumps after a lock or screen timeout.

Instructions

Wake the screen and dismiss the keyguard (optionally entering a PIN/password). Run this after a screen-off or lock timeout, before ui_dump.

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

Input Schema

NameRequiredDescriptionDefault
pinNoPIN/password to type if the device is locked

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full behavioral burden. It discloses the sequencing constraint and that PIN entry is optional, but says nothing about what happens on a wrong PIN, whether the call errors or no-ops when already unlocked, or what a successful return looks like.

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?

Two short sentences, zero filler. The primary action is front-loaded and the operational timing hint follows immediately.

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 one-parameter, non-destructive device action with a fully described schema and no output schema, the description covers what it does and when to call it. Only failure/return behavior is unaddressed, which is a minor gap at this complexity.

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 the single 'pin' parameter is already documented as 'PIN/password to type if the device is locked'. The description's 'optionally entering a PIN/password' restates the schema rather than adding format or failure semantics, so the baseline 3 applies.

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?

States specific verbs and targets: 'Wake the screen and dismiss the keyguard', with the optional PIN entry named. An agent can tell this apart from screen_state (which reads state) and ui_dump (which consumes an unlocked device) without opening any schema.

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

Usage Guidelines4/5

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

Gives explicit timing guidance: run after a screen-off or lock timeout, before ui_dump. It does not state a when-not condition (e.g. behavior when the device is already unlocked) or prerequisites like adb_connect, so it falls short of the 5 bar.

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