Skip to main content
Glama

Press a key

keyboard_key
Destructive

Press a single character or semantic key (enter/tab/space/backspace/escape/arrows/home/end/pageup/pagedown/f1-f12) with modifiers. cmd means Command on Mac and Windows/Super on PC.

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

Input Schema

NameRequiredDescriptionDefault
keyYes
modifiersNo
steerlatchDeviceNoOptional: name or deviceId of the computer that runs this action (from operatorlane_list_devices). Recommended when several computers are online or several conversations work at once.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior2/5

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

The annotations already declare readOnlyHint=false, destructiveHint=true, idempotentHint=false and openWorldHint=true, so the risk profile is covered by structured data. The description adds nothing behavioral beyond that — it does not say which window or application receives the keystroke, whether a desktop must be reserved or targeted first, or what happens if focus is elsewhere, despite 'destructive' keystrokes being genuinely consequential.

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?

Two tight sentences with no filler; the key vocabulary and the modifier/platform clarification are both front-loaded. Every clause carries information an agent would otherwise have to guess at.

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 destructive, non-idempotent input-injection tool with no output schema and a 33% schema coverage, the definition covers the key naming and modifier semantics but leaves out how the target application is determined and any preconditions. An agent could call it correctly in the simple case but would lack guidance in multi-device or ambiguous-focus situations.

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 description coverage is only 33% (only steerlatchDevice is documented inline), so the description has to compensate, and it does: it defines the accepted key vocabulary including the f1-f12 range and clarifies that 'cmd' maps to Command on Mac and Windows/Super on PC. It does not clarify that modifiers can be combined as an array of up to four or why steerlatchDevice matters, but the added meaning is substantial.

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?

The description states a specific verb and resource ('Press a single character or semantic key') and enumerates the accepted semantic key set (enter/tab/space/backspace/escape/arrows/home/end/pageup/pagedown/f1-f12), which makes the tool's scope concrete. The word 'single' implicitly separates it from the keyboard_type sibling, but that sibling is never named, so differentiation is inferred rather than stated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: 'single character' plus the modifier clause suggests one discrete keypress rather than typing a string, which hints at when to prefer this over keyboard_type. There is no explicit statement of when to use this versus keyboard_type, no prerequisites (desktop reservation, permissions, focused window), and no exclusions.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources