Skip to main content
Glama

Press key

browser_press

Simulates pressing a keyboard key such as Enter, Tab, or Escape in the browser to trigger navigation, form submission, or focus changes.

Instructions

Press a keyboard key (e.g. Enter, Tab, Escape, ArrowDown).

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": "browser_press"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYesKey name, e.g. Enter

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.3-alpha.1

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden, and it only says what a keypress is. It omits important traits such as which element receives the key (focus requirement), whether keydown/keyup are both dispatched, and whether a press can trigger navigation or form submission.

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?

A single front-loaded sentence with no filler. It is efficient, though the parenthetical example list is doing work the description should have spent on focus/behavior context instead.

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?

The tool is simple (one required string, no output schema), so the description is close to adequate. But for a keyboard tool, the missing note about element focus and possible side effects (form submit, navigation) is a real gap an agent needs.

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 single parameter is already documented as 'Key name, e.g. Enter'. The description only adds a few extra key examples, which is marginal value over the schema. Baseline 3 applies when the schema does the heavy lifting.

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 ('Press') plus the resource ('a keyboard key') and gives concrete key examples (Enter, Tab, Escape, ArrowDown). It is distinguishable from browser_type (which types text), though it never explicitly contrasts the two.

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?

No when-to-use guidance at all: nothing says to call this after focusing an element, whether it should be used for form submission versus typing, or which sibling handles text entry versus single keystrokes. The reader must infer all of that from sibling names.

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