Skip to main content
Glama

esp_keys

Press a keyboard shortcut or a sequence of shortcuts on the hardware keyboard, such as "ctrl+s" or ["ctrl+a","delete"], without leaving keys held. Use esp_type for typing text.

Instructions

Press a keyboard shortcut (combo) or a sequence of shortcuts on the hardware keyboard, e.g. "ctrl+s" or ["ctrl+a", "delete"]. Letters follow the layout of the foreground window. The keyboard is never left held. In a sequence a foreground window change stops it (focus_changed, with steps_done) unless allow_focus_change. For text use esp_type.

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": {
      "control_id": "<control_id>"
    },
    "name": "esp_keys"
  }
}

Input Schema

NameRequiredDescriptionDefault
comboNoOne shortcut: modifiers (ctrl, shift, alt, win) and at most one key joined with "+", e.g. "ctrl+shift+esc", "alt+f4", "win+r", "ctrl+z". Keys: letters, digits, punctuation (through the current layout), enter, esc, tab, space, backspace, delete, insert, home, end, pageup, pagedown, up, down, left, right, f1..f24, printscreen, menu, plus, minus.
hold_msNoHow long each shortcut is held, 1..2000 ms (default 40).
sequenceNoSeveral shortcuts pressed one after another, e.g. ["ctrl+a", "delete"].
control_idYesFrom esp_control begin.
request_idNoOptional idempotency key: repeating a call with the same request_id within 5 min returns the first receipt (also an uncertain one) without running the action again.
allow_focus_changeNoAllow the foreground window to change between steps (e.g. alt+tab in a sequence). Default false: a change stops the sequence with focus_changed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does substantial work: it discloses that the keyboard is never left held, that a focus change aborts a sequence and returns focus_changed with steps_done, and that allow_focus_change overrides this. It does not cover permission/lease requirements or failure modes beyond focus_changed, which keeps it below a 5.

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?

Four tight sentences, front-loaded with the action and examples, then behavior, then the sibling redirect last. No restatement of the title and no filler.

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

Completeness4/5

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

For a six-parameter input tool with no output schema, it covers the action, the sequence-abort semantics, and the key sibling boundary. It stops short of describing the receipt returned for request_id replays, which would matter for an agent retrying calls.

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 100%, so the baseline is 3, but the description adds interpretation guidance the schema only hints at: letters resolve against the foreground window's layout, and sequences behave differently from a single combo. The hold_ms and request_id semantics are left to the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/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 keyboard shortcut (combo) or a sequence of shortcuts on the hardware keyboard") and backs it with two concrete examples. The final sentence explicitly separates it from the text-typing sibling esp_type, so an agent can pick between them without opening a schema.

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

Usage Guidelines4/5

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

Gives an explicit routing rule: "For text use esp_type," which is the most likely confusion given the sibling list. It also explains the sequence precondition (allow_focus_change) but does not state when to prefer a sequence over a single combo or when this tool is inappropriate.

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