Skip to main content
Glama

zen_press_key

Press a specified key, including special keys and modifier combinations, on the active browser page.

Instructions

Send keyboard input to the active page using BiDi input.performActions. Supports special keys like Enter, Tab, Escape, Backspace, and key combinations with modifiers.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyYesKey to press: "Enter", "Tab", "Escape", "Backspace", "ArrowDown", etc. For text, use zen_fill instead.
modifiersNoModifier keys to hold (e.g. ["ctrl", "shift"])
Behavior3/5

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

No annotations are provided, so the description carries full burden. It discloses that the tool uses BiDi input.performActions and supports key combinations, but does not mention potential side effects, error behavior, or whether the action is instantaneous or waits for completion. Adequate for a straightforward keyboard input tool.

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 concise with two sentences. The first sentence states the core action and method, and the second adds capabilities. No redundant or unnecessary words, and critical information is front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's simplicity (2 parameters, no output schema, no nested objects, 1 required), the description is fully adequate. It covers purpose, usage hints (BiDi), and an alternative sibling. No additional context needed.

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 both parameters (key, modifiers) have detailed descriptions in the schema. The description adds that it supports special keys and combinations but does not provide new meaning beyond the schema. Baseline score of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool sends keyboard input to the active page using BiDi input.performActions, and lists supported special keys and modifiers. It distinguishes from sibling zen_fill by noting that zen_fill is for text input, providing a clear verb-resource-action definition.

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

Usage Guidelines4/5

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

The description explicitly directs users to use zen_fill for text input, providing a clear alternative and context for when to use this tool vs. a sibling. However, it does not discuss prerequisites or scenarios when not to use the tool beyond text input.

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/sh6drack/zen-mcp'

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