Skip to main content
Glama

key

Destructive

Send keystrokes, key combinations, or text to a specified Hyprland app, with support for modifiers, repeat counts, and raw keycodes.

Instructions

Compatibility alias for press_key. Accepts key, keys, modifiers, keycode, or text.

Input Schema

NameRequiredDescriptionDefault
appYesApp name, Hyprland class/title, pid, or address:0x... selector.
keyNoKey or key-combination to press.
keysNoCompatibility shortcut string, for example alt+left.
textNoCompatibility key text.
repeatNoNumber of times to repeat the key. Defaults to 1.
keycodeNoRaw evdev keycode, ydotool-style.
modifiersNoOptional modifiers when key is a bare key, for example alt.
confirmation_tokenNoExternally approved, one-time challenge ID from request_confirmation for a high-risk action.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=false, and openWorldHint=true, so the safety profile is covered structurally. The description adds the alias equivalence and accepted input flexibility, but says nothing about the confirmation_token / high-risk approval flow or the effect on the target app, leaving behavioral context thin.

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 short clauses, front-loaded with the alias relationship, and zero filler. Every word earns its place and nothing is buried.

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 output schema and a fully described input schema, the description covers the alias role adequately, but for an 8-parameter mutating tool it omits the confirmation_token workflow and how the multiple key-input parameters relate, which an agent needs to call it correctly.

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 every one of the 8 parameters is already documented in the schema. The description merely lists the same parameter names without adding format, precedence, or mutual-exclusivity rules (e.g., how key vs keys vs keycode interact), so the baseline 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?

States it is a compatibility alias for press_key and enumerates the input forms it accepts, so an agent can infer the resource (a key press) and its relationship to the press_key sibling. However, it never uses a direct verb like 'presses a key' and depends on the agent already understanding press_key's behavior.

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?

Calling it a 'compatibility alias' implies it should be used when the alias-style inputs (key, keys, modifiers, keycode, text) are needed instead of press_key, but the description never states when to prefer this over press_key or any of the many sibling input tools (type_text, type, sequence). Usage is left to inference.

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