Skip to main content
Glama

Clear device lock

clear_device_lock
Destructive

Removes the Android device's secure lock screen with the current credential to restore a clean state after Keystore flow testing.

Instructions

Remove the secure lock screen, supplying the current credential as old_value. Use to restore a clean state after testing a Keystore flow.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "old_value": "<old_value>"
    },
    "name": "clear_device_lock"
  }
}

Input Schema

NameRequiredDescriptionDefault
serialNoTarget device serial (adb -s). Optional when exactly one device is attached.
old_valueYesThe current credential, needed to clear the lock.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

The annotations already declare destructiveHint=true and openWorldHint=false, and the description is consistent with them by framing this as a removal. It adds that a credential is required and that the operation is meant for post-test cleanup, but it does not say whether the lock can be re-set afterward, what happens on an incorrect credential, or whether any device state is lost — meaningful gaps for a destructive tool.

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?

Two short sentences with the action stated first and the usage hint second — no filler. The phrase about old_value partially restates the schema description, which is the only real redundancy.

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?

For a two-parameter, no-output-schema tool this is close to adequate: the action, the required credential, and the intent are all present. What is missing is the precondition (a lock must currently be set) and the consequence of failure, which matters because annotations flag the call as destructive.

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%, so both serial and old_value are already documented in the input schema. The description reinforces old_value as 'the current credential' but adds no syntax, format, or failure semantics beyond what the schema states, so the baseline of 3 applies.

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 gives a specific verb and resource: 'Remove the secure lock screen', which an agent can map directly to a state change on the device. It never names the adjacent sibling set_device_lock (which sets the same lock) or is_device_secure, so the agent must infer the distinction from names alone.

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?

'Use to restore a clean state after testing a Keystore flow' supplies one concrete scenario, but it is narrow and reads as a recommendation rather than a rule. There is no statement about when not to call it (e.g. device already unlocked, no lock configured) or that set_device_lock is the counterpart for enabling a lock.

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