Skip to main content
Glama

press_shortcut

Send a keyboard shortcut such as Ctrl+S to a specified Linux desktop app by app ID, enabling UI actions without screen coordinates or vision models.

Instructions

Press a keyboard shortcut (e.g. Ctrl+S)

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": {
      "app_id": "<app_id>",
      "shortcut": "<shortcut>"
    },
    "name": "press_shortcut"
  }
}

Input Schema

NameRequiredDescriptionDefault
app_idYes
shortcutYes
confirmedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.6/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden and adds almost nothing: it does not say shortcuts are dispatched to the app identified by app_id, whether the window must be focused, or that shortcuts like Ctrl+Q/Ctrl+Z can be destructive. The undocumented 'confirmed' parameter strongly suggests a safety gate for risky keystrokes, yet the description never mentions confirmation, irreversibility, or return behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One short sentence with the core action front-loaded and no filler. It is efficient but under-specified rather than concise, so the brevity costs more than it saves.

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

Completeness2/5

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

For a three-parameter input tool with no annotations and no output schema, the description should explain target-app routing and the confirmation flag. Neither is covered, and there is no indication of what happens on failure or how the agent should verify the shortcut took effect.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% and the description only loosely explains 'shortcut' via the Ctrl+S example, leaving the exact syntax ('Ctrl+Shift+S'? 'cmd+s'?) unclear. It says nothing about app_id (what identifier format is accepted) or confirmed (when to set it), so two of three parameters remain semantically opaque.

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 gives a concrete verb+resource ('Press a keyboard shortcut') and an example ('Ctrl+S') that makes the intended action unambiguous. It does not name or contrast with siblings such as set_text or click_control, so an agent must infer that this is for key-combination input rather than text entry or pointer actions.

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?

There is no when-to-use guidance, no statement of prerequisites (e.g. a focused window), and no mention of which app the shortcut is delivered to despite the app_id parameter. The agent is left to guess when this is preferable to clicking a control or invoking an action directly.

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