Skip to main content
Glama
droidpilot

droidpilot

by Mihirokte

press_key

Simulate Android hardware and navigation key presses—such as home, back, recents, enter, and volume controls—to trigger device actions through an AI agent.

Instructions

Press a hardware/navigation key.

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": {
      "key": "<key>"
    },
    "name": "press_key"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYeshome, back, recents, enter, delete, tab, escape, volume_up, volume_down, power, notifications, wakeup, dpad_*...

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden and discloses almost nothing. It does not say whether keys are delivered to the foreground app, what happens with system-level keys like power or wakeup, whether the key is a single press versus repeat/long-press (a separate long_press sibling exists), or whether the call blocks. Only the existence of an output schema relieves it of explaining return values.

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?

A single front-loaded sentence with zero filler — the verb and object appear immediately. It is arguably too terse for a tool that accepts system-level keys, but nothing is wasted or buried.

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 one-parameter tool with a documented value list and an output schema, the definition is minimally sufficient to invoke it correctly. However, it leaves gaps on device targeting and system-key side effects, which matter given siblings like long_press and wait_for that imply multi-step interaction.

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% and the 'key' property already lists the accepted values, so the description adds no meaning beyond the schema. Baseline 3 is appropriate when the schema does the heavy lifting and the description repeats nothing.

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?

States a specific verb ('press') and resource ('hardware/navigation key'), which lets an agent distinguish this from coordinate-based siblings like tap or swipe. It stops short of explicitly naming when a key press is preferable to those siblings, so it is clear but not fully differentiated.

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

Usage Guidelines2/5

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

The description contains no when-to-use or when-not-to-use guidance and never mentions any alternative. An agent must infer from the tool name alone that this is for hardware/navigation keys rather than on-screen taps or text entry, and there is no hint about prerequisites such as the target device or app being in the foreground.

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