Skip to main content
Glama

browser_press_key

Destructive

Simulate keyboard input in web browsers by pressing a specified key or character, enabling automated interactions like shortcuts and form submission.

Instructions

Press a key on the keyboard

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyYesName of the key to press or a character to generate, such as `ArrowLeft` or `a`
Behavior2/5

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

Given that annotations already indicate destructiveHint=true, the description adds no extra behavioral context. It does not mention side effects like triggering shortcuts, submitting forms, or keydown/up events. The agent gains no insight beyond the name and annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single sentence with no unnecessary words. It is perfectly concise, though brevity comes at the cost of usefulness.

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 simple one-parameter tool, the description is minimally adequate, especially with annotations and schema covering the basics. However, it fails to disambiguate from similar browser tools or mention any caveats, leaving the agent without full context.

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 100% and the parameter description ('Name of the key to press or a character to generate, such as ArrowLeft or a') is clear. The description does not add further parameter details, but the schema carries the burden adequately.

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 action ('Press a key on the keyboard'), which is specific and distinct from siblings like browser_type (typing text) and browser_click. It lacks explicit differentiation from alternatives, but the verb+resource is unambiguous.

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 provides no guidance on when to use this tool versus browser_type, browser_fill_form, or other keyboard-related actions. There are no exclusions or contextual hints, leaving the agent to infer usage from the tool name alone.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/J0from/playwright-mcp-oss'

If you have feedback or need assistance with the MCP directory API, please join our Discord server