Skip to main content
Glama

Prefer PIN

prefer_pin

Switch a standard Android BiometricPrompt to its PIN or password fallback by selecting the system button or sending BACK; verify the PIN pad with describe_ui before entering a PIN.

Instructions

Try to move a standard BiometricPrompt to its PIN/password fallback by selecting an explicit system button, or sending BACK as the generic cancel path. App-controlled prompts may suppress or rename this option, so confirm the resulting PIN pad with describe_ui before calling enter_pin.

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

Input Schema

NameRequiredDescriptionDefault
serialNoTarget device serial (adb -s). Optional when exactly one device is attached.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations only declare openWorldHint=false and destructiveHint=false; the description adds meaningful behavior beyond that — this is a best-effort 'try' whose success depends on the prompt implementation, and the outcome must be verified with describe_ui. It does not say what a failed attempt returns or whether the prompt is left in a changed state, but the reliability caveat is the important one.

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 sentences, no filler: the primary mechanism first, then the failure mode and required verification step. Every clause carries operational weight.

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?

For a one-parameter UI action with no output schema and non-destructive annotations, the description supplies everything needed: how it works, when it may not work, and the exact follow-up call to confirm state before entering the PIN.

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?

There is a single optional parameter ('serial') and the schema documents it at 100% coverage, including the 'optional when exactly one device is attached' rule. The description adds nothing about device targeting, so the baseline of 3 applies — the schema carries this dimension.

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 a specific action (move a standard BiometricPrompt to its PIN/password fallback) via two concrete mechanisms (an explicit system button or BACK as cancel path). It clearly positions itself upstream of enter_pin, so an agent can distinguish it from the sibling that actually types the PIN.

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?

The when-to-use context is explicit: standard BiometricPrompt needing fallback, followed by describe_ui verification and then enter_pin. It also flags the exclusion case implicitly by warning that app-controlled prompts may suppress or rename the option, though it does not name an alternative tool for that scenario.

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