Skip to main content
Glama

desktop_press

Send a keyboard key or shortcut to a specified macOS app or window to trigger actions in automated workflows.

Instructions

Send a key or shortcut (e.g. return, cmd+s) to app / window_id.

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": {
      "combo": "<combo>"
    },
    "name": "desktop_press"
  }
}

Input Schema

NameRequiredDescriptionDefault
appNo
comboYes
forceNo
headedNo
window_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.7/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 disclosure burden for a tool that injects input into the desktop. It says nothing about whether the target window must be focused first, whether the call blocks or waits, what happens if the window is not found, or what the result looks like. Only the fact that the combo is delivered to an app/window is disclosed.

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 front-loaded sentence with no filler, and the combo example earns its place. It is terse to the point of under-specification rather than padded, so conciseness itself is not the problem.

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 five-parameter input-injection tool with no annotations, no output schema, and zero schema documentation, the description is far too thin. An agent cannot determine focus requirements, failure behavior, or the meaning of two of the five parameters from this definition alone.

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% across five parameters, so the description must compensate and it only partially does: it illustrates the 'combo' format and implies app/window_id are target selectors. The 'force' and 'headed' booleans are completely unexplained, and the interaction between app and window_id is left ambiguous.

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 a concrete verb and resource ('Send a key or shortcut') with illustrative examples ('return, cmd+s') and names the targeting surface (app / window_id). It is clear what the tool does, though it does not explicitly contrast with the sibling desktop_type, which is the nearest alternative for keyboard input.

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 or when-not guidance, and no routing to alternatives such as desktop_type for literal text versus desktop_press for key combos. Only a faint implication that target selection is via app or window_id appears in the description.

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