Skip to main content
Glama

Fingerprint touch

fingerprint_touch

Simulate a fingerprint-sensor touch on an Android emulator to satisfy BiometricPrompt using an enrolled finger; check enrollment first to avoid a stuck prompt.

Instructions

Simulate a fingerprint-sensor touch on an EMULATOR (adb emu finger touch). With a fingerprint enrolled it satisfies a BiometricPrompt, so you can drive the real biometric path instead of cancelling into the PIN fallback. finger_id must match an enrolled finger (default 1). Check has_biometric_enrolled FIRST: with nothing enrolled the prompt sits on "Touch the sensor" forever. GOTCHA: it reports OK even when the id matches nothing, and wrong ids trip a HAL lockout, so enroll deterministically rather than sweeping ids (the pin-and-lock guide: a skill, or the android://guide/pin-and-lock resource). Emulator-only.

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

Input Schema

NameRequiredDescriptionDefault
serialNoTarget device serial (adb -s). Optional when exactly one device is attached.
finger_idNoId of the enrolled finger to touch with (must match a finger enrolled in Settings). Default 1.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations (which only say openWorldHint=false, destructiveHint=false) by disclosing a false-success failure mode ('reports OK even when the id matches nothing'), the HAL lockout risk from sweeping ids, and the hang when nothing is enrolled. It also names the environment restriction (emulator-only) and points to a guide resource for the enrollment workflow.

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 with what the tool does, then prerequisites, then gotchas, in a sensible order. Dense but nearly every sentence carries operational weight; the trailing guide/skill parenthetical and repeated emulator-only framing add slight redundancy.

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 two-optional-parameter tool with no output schema, the description covers everything an agent needs: scope (emulator), preconditions (enrollment check), argument correctness (id must match enrolled finger), and return-value caveats (OK is not proof of success). Nothing material is missing.

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 already 100%, so both serial and finger_id are documented in the schema itself. The description reinforces the key constraint that finger_id must match an enrolled finger (default 1) and warns against sweeping ids, but adds no new detail about serial.

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 concrete verb and resource ('Simulate a fingerprint-sensor touch on an EMULATOR') and even names the underlying command 'adb emu finger touch'. It is clearly distinguishable from siblings like finger_remove, has_biometric_enrolled, enter_pin, and prefer_pin, which it implicitly contrasts with via the PIN-fallback sentence.

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

Usage Guidelines5/5

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

Gives explicit when-to-use (to drive the real BiometricPrompt path rather than cancelling into PIN fallback) and a hard prerequisite ordering: 'Check has_biometric_enrolled FIRST'. Also states the emulator-only scope, which rules out physical devices.

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