Skip to main content
Glama

press_key

Simulate keyboard input in Chrome to press keys or combinations like Enter or Control+A, enabling shortcuts, navigation, and form submission in automated browsing.

Instructions

Press a key or key combination, e.g. "Enter", "Control+A", "Control+Shift+R". Modifiers: Control, Shift, Alt, Meta.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyYes
pageIdNoTargets a specific page by ID. Defaults to the selected page.
includeSnapshotNoWhether to include a snapshot in the response. Default is false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.3

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 behavioral burden, and it discloses almost nothing: it does not say whether the key goes to the focused element or the selected page, whether pressing Enter may submit a form or trigger navigation, or whether includeSnapshot adds return payload. For a tool that can cause page-changing side effects, this is a notable 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?

Two short sentences, front-loaded with the action and immediately followed by syntax examples; the modifier list earns its place. No filler, though the brief format leaves room for additional useful guidance rather than being maximally efficient.

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?

With no annotations and no output schema, the description should ideally mention side effects (Enter submitting/navigating) and what the response or includeSnapshot yields. For a simple three-parameter input tool the action and key syntax are covered, making it minimally adequate rather than complete.

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 coverage is 67% and the key parameter itself has no schema description; the description compensates by documenting the accepted modifier names (Control, Shift, Alt, Meta) and the combination syntax with examples. It adds little about pageId/includeSnapshot, but those are already described in the schema.

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+resource ("Press a key or key combination") and gives concrete syntax examples like "Control+Shift+R", which makes it distinguishable from text-entry siblings such as type_text and fill. It stops short of explicitly naming when this differs from those siblings, so it is clear but not fully differentiated.

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 examples of key combinations imply the intended use (keyboard shortcuts and special keys), but there is no explicit when-to-use statement, no exclusion versus type_text/fill, and no prerequisites such as a page being focused or selected.

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