Skip to main content
Glama

press_key

Simulate pressing a key or key combination, such as Enter or Control+A, in a Chrome tab to trigger keyboard-driven page actions during browser automation.

Instructions

Pulsa una tecla o combinación, por ejemplo Enter o Control+A.

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": {
      "keys": "<keys>"
    },
    "name": "press_key"
  }
}

Input Schema

NameRequiredDescriptionDefault
keysYes
tabIdNoPestaña objetivo. Por defecto la pestaña actual del agente.
repeatNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

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 behavioral burden and falls short: it does not state whether an element must be focused, which context receives the keypress, whether the action requires the target tab to be active, or what the tool returns on failure.

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, front-loaded with the action and immediately followed by an example. Efficient, though the extreme brevity leaves behavior under-specified rather than merely concise.

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?

For a 3-parameter mutation-style input tool with no annotations, no output schema, and undocumented 'repeat' and 'tabId' defaults, the description omits focus prerequisites, key-syntax variants (e.g. named keys, modifiers), and repeat behavior.

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 only 33%, but the description does add real meaning for the required 'keys' parameter by showing the accepted combination syntax (Control+A). It says nothing about 'repeat' or how the default tab is chosen, so it only partially compensates for the coverage gap.

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+resource (press a key or key combination) and gives concrete example syntax (Enter, Control+A). It does not distinguish this tool from siblings such as type, click, or batch, so an agent must infer the boundary itself.

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?

The description offers no when-to-use guidance: nothing says to prefer this over typing text via 'type', over 'click', or how it behaves relative to browser focus. Usage is only implied by the verb.

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