Skip to main content
Glama

press_key

Send keyboard input to a Chrome tab, including single keys, space-separated sequences, and modifier combinations such as Control+A or Shift+Tab.

Instructions

Press keys. Space-separated sequence; combos with +. Examples: "Enter", "Tab Tab Enter", "Control+A", "Shift+Tab", "Escape".

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
tabIdNoTab ID from tabs_list. Omit for the active tab.
profileNoChrome profile: folder ("Profile 3"), nickname, or unique display name. Omit to use the current profile.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

B3.4/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 disclosure burden. It does add genuine behavioral information the schema cannot convey: that a single string is parsed as a key sequence and that + denotes a chord, which materially changes how the same input string behaves. However, it omits the behaviors that matter most for a keyboard tool — whether a focused element is required, whether modifiers are held and released, whether anything is returned, and what happens if the sequence is invalid.

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 segments: the verb, the parse rule, then examples. Nothing is padded and the essential syntax rule lands before the examples that illustrate it. An agent can copy a working call directly from the text.

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 three-parameter, no-annotation, no-output-schema tool, the description covers the hard part (key syntax) and the schema covers targeting via tabId and profile. What is missing is behavioral context around focus and targeting: it is unclear whether keys go to the page, the active element, or something the agent must select first, which is the main way a keyboard tool gets misused.

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?

Schema coverage is 67%, with tabId and profile already documented inline as 'Tab ID from tabs_list' and 'Chrome profile'. The one undocumented parameter is the required keys field, and the description fills exactly that gap by specifying the delimiter and chord syntax with worked examples. That is the right compensation for the coverage hole.

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?

"Press keys" names a specific action on a specific input domain, and the following sentence pins down the exact grammar (space-separated sequence, + for combos) with four concrete examples. An agent can immediately tell this is keyboard input rather than a mouse action like click/hover or a value-setting action like select_option. It stops short of an explicit contrast with those siblings, which keeps it out of the top band.

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 explains how to format the keys argument but never says when to use this tool versus click, select_option, or eval_js. There is no mention of prerequisites such as an element needing focus, no exclusions, and no indication of when tabId/profile should be supplied. The how-to is present, the when-to is absent.

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