Skip to main content
Glama

key

Send hardware and navigation button events (BACK, HOME, ENTER, RECENTS, volume, power) to automate Android devices via adb.

Instructions

Send a hardware/navigation key event.

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

Input Schema

NameRequiredDescriptionDefault
keyYes

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 burden. It does not say whether the event is fire-and-forget, whether it returns a result, whether POWER/VOLUME keys affect device state, or whether any permission or foreground-app requirement applies. For an input-injection tool this is a significant gap.

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?

One front-loaded sentence with no waste. It could have used the space freed up for the key semantics, but nothing present is redundant.

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?

There is no output schema and only one enum parameter, so the burden on the description is modest, but with zero annotations the lack of any behavioral note about state-changing keys (POWER, VOLUME) or return behavior leaves it only minimally adequate.

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 0%, but the single parameter is a fully enumerated enum whose seven allowed values are self-describing, so an agent can select a value without prose. The description adds nothing about what each key does (e.g., whether POWER toggles screen or sleeps the device), which would have been helpful given the enum includes state-changing keys.

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 ('Send') and resource ('hardware/navigation key event'), which is clear and distinguishes it from siblings like tap, swipe, and type_text that handle different input modalities.

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?

No when-to-use guidance, no prerequisites, and no mention of alternatives such as tap for on-screen buttons vs. this for hardware keys. The agent must infer that BACK/HOME/RECENTS navigation and VOLUME/POWER are dispatched through this tool.

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