Skip to main content
Glama

Press

press

Simulates a keyboard key input, optionally scoped to a selector, to trigger page interactions and test browser workflows.

Instructions

Press a key, optionally scoped to a selector.

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
pageIdNoPage id. Defaults to the active page.
selectorNo
timeoutMsNoOperation timeout in milliseconds.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.7/5.0
Behavior2/5

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

With no annotations supplied, the description carries the full disclosure burden and sheds little light: it does not say whether the selector causes a focus first, what key syntax is accepted (e.g. 'Enter' vs 'Control+A'), what happens if the key or selector is invalid, or whether the action is retried until the timeout. Those are exactly the behaviors an agent needs before invoking a keyboard-input tool.

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?

One short, front-loaded sentence with no waste. It is efficient, though the brevity is partly the cause of the missing detail rather than a sign of completeness.

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

Completeness2/5

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

A four-parameter browser-interaction tool with no annotations and no output schema leaves the description responsible for behavior and edge cases, and it covers almost none of them. An agent would have to guess at key syntax, focus behavior, and error conditions before calling it.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 50%: pageId and timeoutMs are documented in the schema, but key and selector have no description there, so the description must compensate. It only restates that a key is required and a selector optionally scopes it, giving no format examples or semantics for key strings or selector resolution.

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') plus the optional scoping mechanism ('scoped to a selector'), which is enough to separate it from click/fill/hover siblings. It stops short of naming which sibling handles text entry instead, so differentiation is implicit rather than explicit.

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?

There is no guidance on when to use press versus fill, click, or evaluate, and no prerequisites are stated (e.g. whether the target must be focused first). The word 'optionally' hints at two modes but the description never says which situation calls for each.

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