Skip to main content
Glama

press

Destructive

Sends a keyboard key globally to the active browser page, so agents can submit filled forms with Enter or navigate using Tab and arrow keys without selecting an element.

Instructions

[Agent Browser] Press a keyboard key globally (not tied to an element). Common keys: Enter, Tab, Escape, ArrowDown, ArrowUp, Backspace, Delete. Use after fill() to submit forms, or for keyboard navigation.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "key": "<key>"
    },
    "name": "press"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYes

Output Schema

NameRequiredDescriptionDefault
dataNo
hintsNo
messageNo
successNo
suggestionsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.2/5.0
Behavior3/5

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

The description discloses that the keypress is global/focus-based rather than element-scoped, which is useful context beyond the annotations. However, annotations already mark this destructiveHint=true and idempotentHint=false, and the description never warns that a press can submit data, navigate away, or trigger irreversible page actions. It adds some behavioral value but does not address the risk profile the annotations flag.

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?

Three short lines with the operation and its scope front-loaded, followed by a key list and usage note. No redundant restatement of the tool name or filler text; every line carries information.

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

Completeness4/5

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

For a single-parameter tool with a rich set of annotations and an output schema, the description covers purpose, accepted values, and typical usage adequately. The only meaningful omission is a caution about the destructive/state-changing effects of key presses that the annotations already imply.

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?

With schema coverage at 0% and a bare 'key: string' property, the description compensates by enumerating accepted key names (Enter, Tab, Escape, arrows, Backspace, Delete), which conveys the expected format. It stops short of clarifying case sensitivity or whether modifier combinations like 'Shift+A' are supported.

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?

States a specific verb and resource ('Press a keyboard key') and adds a scope qualifier ('globally, not tied to an element') that immediately separates it from element-targeted interactions like click or fill. An agent can identify the operation without consulting the schema.

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?

Gives two concrete usage contexts: after fill() to submit forms, and for keyboard navigation. This names a sibling for sequencing and implies the right situation, but offers no when-not guidance or explicit exclusions (e.g., preferring click for buttons).

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