Skip to main content
Glama

prefer_pin

Selects the PIN or password fallback option on a biometric prompt, or sends BACK to trigger the generic cancel path. Use with describe_ui to confirm the PIN pad.

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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
serialNoTarget device serial (adb -s). Optional when exactly one device is attached.
Behavior4/5

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

With no annotations provided, the description carries the full burden. It discloses that the tool 'tries' to move the prompt (implying possible failure), mentions two distinct mechanisms, and warns about app-controlled suppression. It advises a follow-up step. This is good behavioral context, though it could mention prerequisites or failure cases more explicitly.

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?

The description is two sentences long, each earning its place. The first sentence states the primary action, the second gives crucial post-usage guidance. No filler or repetition. Efficient and front-loaded.

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?

Given the lack of output schema and the tool's nature (a UI fallback action), the description is fairly complete. It explains what the tool does, warns about potential limitations, and tells the user the next steps (describe_ui then enter_pin). Could be strengthened by mentioning return behavior or side effects, but overall sufficient.

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 description coverage is 100% for the single optional 'serial' parameter, with a clear description in the schema. The tool description adds no additional parameter semantics, so the baseline score of 3 is appropriate.

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?

The description clearly states the tool's purpose: 'Try to move a standard BiometricPrompt to its PIN/password fallback.' It specifies the actions (selecting a system button or sending BACK) and the resource (BiometricPrompt). This distinguishes it from siblings like 'enter_pin' and 'describe_ui'.

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 description provides context for when to use the tool and how to proceed after invocation: 'confirm the resulting PIN pad with describe_ui before calling enter_pin.' It warns that app-controlled prompts may suppress or rename the option. However, it does not explicitly state when not to use it or mention alternative tools for different scenarios.

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/iksnerd/adb-mcp'

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