Skip to main content
Glama

computer_hotkey

Execute keyboard shortcuts on macOS by sending key combinations like Cmd+C or Alt+Tab to trigger actions in applications or the system.

Instructions

Press a key combination (hotkey).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keysYesList of keys to press together (e.g., ['ctrl', 'c'] for copy, ['cmd', 'v'] for paste on Mac, ['alt', 'tab'] for window switch)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It clearly states the core behavior—pressing a key combination—but gives no additional context such as whether keys are pressed briefly, whether focus is required, or what the return value means.

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?

The description is a single, front-loaded sentence with no filler. It efficiently communicates the action, and the parenthetical 'hotkey' reinforces the tool's purpose.

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 simple one-parameter tool with a rich parameter schema and an output schema, the description is nearly complete for invocation. The main gap is the lack of explicit guidance distinguishing it from sibling keyboard tools, but the word 'combination' partially covers this.

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 the 'keys' parameter with useful examples. The description itself adds little beyond the word 'hotkey,' and does not need to compensate for missing schema information.

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 specific action ('Press') and a specific resource ('a key combination (hotkey)'). The word 'combination' hints at how this differs from sibling tools like computer_press_key, though it does not explicitly name them.

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?

No guidance is given on when to use this tool versus alternatives such as computer_press_key, computer_key_down, computer_key_up, or computer_type. The description implies simultaneous key combinations but provides no explicit context or exclusions.

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