Skip to main content
Glama

browser_press_key

Press a key or chord, such as Enter or Control+A, in the browser to trigger shortcuts, submit forms, or navigate UI.

Instructions

Press a key or chord, e.g. 'Enter' or 'Control+A'.

Input Schema

NameRequiredDescriptionDefault
keyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full burden but says nothing about where the event is dispatched (focused element vs page), whether modifier chords work cross-platform, or what is returned. For a synthetic-input tool whose effect depends entirely on focus state, that is a meaningful 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?

A single short sentence with the essential format hint front-loaded and no filler. It is terse rather than padded, which is appropriate for a one-parameter tool.

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?

For a simple one-param tool with no output schema, the description covers purpose and input format adequately. It still leaves out the focus/target context that determines whether the press has any effect, which is the one thing an agent could get wrong.

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 0%, so the description must compensate; the examples 'Enter' and 'Control+A' do convey the accepted key/chord string format, which is the key semantic. However it never explains that the parameter is optional per the schema, nor any default behavior when omitted.

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 key or chord') plus concrete examples, so the agent knows this synthesizes keyboard events in the browser. It does not explicitly contrast with browser_type or mac_key, so sibling differentiation is left implicit.

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 guidance on when to use this versus browser_type (text entry) or browser_fill, and no preconditions such as requiring a focused element or a prior browser_snapshot. The examples imply the format but not the selection context.

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