Skip to main content
Glama

key

Sends shortcut combinations, such as Ctrl+L or Alt+F4, to an isolated virtual screen, automating GUI actions without affecting the user's desktop.

Instructions

Press key combinations such as ctrl+l, Return, alt+F4, ctrl+shift+t.

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

Input Schema

NameRequiredDescriptionDefault
keysYescombinations pressed in order, xkb keysym names, e.g. ["ctrl+l", "Return", "alt+F4"]
screenNoscreen name; optional when the session owns exactly one screen
settle_msNodelay before that screenshot, default 150
screenshot_afterNoreturn a screenshot after the action (default false)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden and does not meet it. It never says where the keys are delivered (focused window vs. a named screen), whether keys are pressed sequentially or as a chord held together, or what happens on failure for an invalid keysym.

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 with the action front-loaded and examples doing the disambiguation work; nothing is wasted. It is arguably too terse for a tool with no annotations, but it is not padded.

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?

With no annotations, no output schema, and a screenshot side effect controlled by `screenshot_after`, the description should say more about targeting and sequencing. The parameter set is fully covered by the schema, so an agent can construct a call, but not confidently predict its effect.

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 description coverage is 100%, so the schema already documents all four parameters, including the xkb keysym format and the settle_ms default. The description's examples merely restate the schema's own example, adding no new meaning, so the baseline of 3 applies.

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 concrete action ("Press key combinations") and backs it with concrete examples ("ctrl+l, Return, alt+F4, ctrl+shift+t"), which clarifies an otherwise vague tool name. It implicitly distinguishes itself from the sibling `type` tool by showing modifier/chord syntax rather than plain text, but never says so outright.

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 through the examples: an agent can infer this is for chords and special keys rather than typing text. There is no explicit statement of when to use this over `type`, nor any prerequisite such as which window or screen receives the keystrokes.

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