Skip to main content
Glama

press

Sends one key or chord to the focused window; OS-level modifiers and function keys reach native apps, plain keys go to the page. Returns a result and observation.

Instructions

Press a single key or key chord in the focused window.

Chords with Control, Alt or Windows modifiers and function keys are sent at operating-system level so they reach browser shortcuts and native apps; plain keys go to the page when the browser is in front. Pressing Enter while a risky control is focused asks the human first. Returns a RESULT line and a fresh observation.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keysYesOne key or chord in Playwright syntax: 'Enter', 'Escape', 'Tab', 'F2', 'Control+S', 'Alt+F4', 'Control+Shift+S'. Not a string of characters; use type_text for that.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so well: it discloses that modified/function keys are dispatched at OS level while plain keys target the page, and that Enter on a risky control prompts the human first. It also notes the return shape (RESULT line plus fresh observation), which is unusually rich disclosure.

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 paragraphs, front-loaded with the core action before the behavioral detail. The second sentence is long but every clause adds non-redundant information; no padding or filler.

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?

An output schema exists so return values need no elaboration, and the unannotated safety profile is covered by the human-confirmation note for risky Enter presses. For a one-parameter tool, nothing an agent needs to call it correctly is missing.

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%, so the Playwright syntax and examples are already fully documented in the property. The description adds only the loose 'single key or key chord' framing, 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 single key or key chord in the focused window' — with a scoping detail (single key vs. character string) that implicitly separates it from type_text. It does not explicitly name type_text in the description text, so sibling differentiation is present but not spelled out verbatim.

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 explains the routing behavior of modifier chords vs. plain keys, which implies usage, but never states when to choose press over type_text, click, or other siblings. The closest guidance ('use type_text for that') lives in the schema parameter, not the description.

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