Skip to main content
Glama

Enter PIN

enter_pin

Enters digits on a numeric PIN pad by tapping each key, for screens where text input fails because the pad uses custom key views. Supply grid or coords when those keys are invisible to UI hierarchy.

Instructions

Enter digits on a numeric PIN pad by tapping each key with a settle delay. Use when input_text does nothing because the pad renders its own key views. Visibility is PAD-SPECIFIC — run describe_ui on the pad screen first: a native-view pad (digits listed as Buttons with text) works with the default hierarchy lookup, no extra args. Only CANVAS-DRAWN pads (React Native / Skia SDK pads, whose keys are invisible to describe_ui) need 'grid' (the pad's bounding box; digits placed on a standard 3x4 dialpad) or 'coords' (explicit per-digit x,y) — read those bounds off a screenshot.

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": {
      "digits": "<digits>"
    },
    "name": "enter_pin"
  }
}

Input Schema

NameRequiredDescriptionDefault
gridNoOptional bounding box {x1,y1,x2,y2} of the PIN pad. Provide this for custom-drawn (React Native / Skia) pads whose keys are invisible to describe_ui: digits are placed on a standard 3x4 dialpad grid (1-2-3 / 4-5-6 / 7-8-9 / _-0-_) inside the box.
coordsNoOptional explicit per-digit tap points as 'digit:x,y' pairs separated by ';', e.g. '1:540,1600;2:640,1600'. Overrides grid and hierarchy for the digits given. Use when the pad is not a regular grid.
digitsYesThe digits to enter, e.g. "1234".
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, so the description carries most of the behavioral burden and does well: it discloses the settle delay between taps, the pad-specific visibility constraint, the precedence rule that coords overrides grid and hierarchy, and where to obtain bounds (a screenshot). The gap is risk disclosure — entering a PIN can trigger device lockout or biometric fallback, and neither that consequence nor any verification of successful entry is mentioned.

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 the core action and the input_text failure case before the pad-taxonomy detail, and the em-dash/caps structure makes the native-vs-canvas branch scannable. It runs long and duplicates some of the grid/coords explanation already in the schema, so a little tightening is possible, but no sentence is filler.

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 4-parameter input-simulation tool with no output schema and thin annotations, the definition covers the hard part — deciding which targeting mode to use and what prerequisite UI inspection to run. It stops short of stating the outcome of the call (does it confirm entry, what happens on timeout or wrong pad detection) or the lockout risk, which matters for a PIN-entry tool with siblings like is_device_secure, set_device_lock, and prefer_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?

Schema description coverage is 100%, so the schema already defines grid, coords, digits, and serial in comparable detail; the description largely restates the grid/coords distinction. It adds modest value by framing grid as 'the pad's bounding box' on a 'standard 3x4 dialpad' and telling the agent to read bounds off a screenshot, which is procedural meaning beyond the schema's types.

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 verb and resource ('Enter digits on a numeric PIN pad by tapping each key') and immediately distinguishes itself from the sibling input_text, naming the exact condition where input_text fails. An agent can select this tool over input_text, press_key, or tap 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 Guidelines5/5

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

Explicit when-to-use ('when input_text does nothing because the pad renders its own key views'), an explicit prerequisite ('run describe_ui on the pad screen first'), and a decision rule for which argument to supply: default hierarchy for native-view pads, 'grid' or 'coords' only for canvas-drawn React Native / Skia pads. Alternatives and exclusions are both present.

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