Skip to main content
Glama
Nizarius
by Nizarius

rnw_press_key

Simulate keyboard input in React Native Web browser sessions by pressing a specified key. Use it to trigger Enter, Tab, Escape, or arrow key actions during automated testing.

Instructions

Press a keyboard key

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyYesKey to press (e.g., 'Enter', 'Tab', 'Escape', 'ArrowDown')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.1

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden and falls short. It does not say where the key is dispatched (focused element? page level?), whether modifiers like Ctrl are supported, whether the key is held or auto-released, or whether the action can trigger navigation/submission side effects.

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 short, front-loaded sentence with no waste. It is efficient, though its brevity reflects under-specification rather than disciplined trimming.

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, no-output-schema tool this is minimally viable, and the schema fully documents the input. But with zero annotations and no mention of focus requirements, modifier support, or side effects, an agent lacks enough context to invoke it confidently in a browser-automation flow.

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 schema already gives example values ('Enter', 'Tab', 'Escape', 'ArrowDown'). The description adds nothing beyond the schema, so the baseline 3 applies.

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 and resource ('Press a keyboard key'), which is unambiguous on its own. However, it does nothing to distinguish itself from siblings like rnw_type (typing text) or rnw_click, so an agent must infer the boundary itself.

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?

There is no when-to-use guidance at all: nothing explains that this is for discrete key presses such as 'Enter' or 'Escape' rather than typing a string (rnw_type) or clicking an element (rnw_click). The agent is left to guess the split between sibling tools.

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