Skip to main content
Glama
Amodh2022

flutter-bridge-mcp

by Amodh2022

press_key

Send hardware or navigation key events to an Android device to trigger actions or navigate Flutter UI. Supports keys such as back, home, volume, and dpad.

Instructions

Press a hardware or navigation key.

Args: key: back, home, recents, enter, tab, delete, escape, search, menu, power, wake, sleep, volume_up, volume_down, camera, or dpad_up/down/left/right/center. A raw KEYCODE_* name or a numeric keycode also works. serial: device serial when several are attached.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyYes
serialNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It does not state whether the key press is injected into a specific app, whether it requires a foreground activity, whether it is synchronous, or what the return value indicates. The description is mostly a parameter list rather than behavioral context.

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?

The description is compact and front-loaded with the core purpose. The key list is long but necessary given the schema has no enums. The serial explanation is minimal. It earns its place, though the key list could arguably be trimmed by referencing Android's keycode documentation.

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?

The tool is simple (2 params, no nested objects) and has an output schema, so the description doesn't need to explain return values. However, with no annotations and no usage guidance, an agent might not know whether pressing a key requires a focused field, whether it works on all Android versions, or what happens if the key is invalid. The key list is helpful but the behavioral context is thin.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate. It does: it enumerates valid values for the key parameter and explains that raw KEYCODE_* names or numeric keycodes are accepted. The serial parameter is only mentioned as 'device serial when several are attached', which adds some context beyond the schema's bare type definition.

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?

The description clearly states the tool's purpose: pressing a hardware or navigation key. It lists the supported key names and mentions that raw KEYCODE_* names or numeric keycodes also work, which distinguishes it from sibling input tools like tap, swipe, and input_text.

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

Usage Guidelines3/5

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

The description implies usage for pressing keys, and the key list provides context for when to use it. However, it does not explicitly state when to use this tool versus alternatives like tap or input_text, nor does it mention any exclusions or prerequisites.

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