Skip to main content
Glama
omarchy-desktop

omarchy-desktop

by martoast

Press a key or key combo

key_press

Presses a named key such as Return, Tab, or Escape, optionally with shift, ctrl, alt, or logo modifiers, to send keyboard input to the desktop.

Instructions

Press a named key (e.g. Return, Tab, Escape, BackSpace, Left, Right, Up, Down, PageDown/Next, Home, End, Delete, minus) optionally with modifiers (shift, ctrl, alt, logo).

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": {
      "key": "<key>"
    },
    "name": "key_press"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYes
modifiersNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden but only partly discharges it. It usefully discloses which key names are accepted (non-obvious, since the schema declares key as a bare string), yet says nothing about the target of the press (focused element/window), what happens if no element is focused, or whether anything is returned.

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?

It is a single dense sentence with the core action front-loaded and no wasted clauses. The long parenthetical key list hurts scannability somewhat but carries real information rather than filler.

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?

For a two-parameter tool with no output schema and no annotations, the description covers what can be pressed but not the context of the press: focus/window targeting, error behavior, and effect on the page are all absent. It is adequate to invoke the tool, not to invoke it correctly in edge cases.

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 coverage is 0%, so the description must compensate, and it does partially by listing concrete example key values for the required key parameter. Its modifier list (shift, ctrl, alt, logo) is both a restatement of the schema enum and incomplete against it, which omits altgr and capslock, and it gives no syntax for combining keys.

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 specific verb+resource ("Press a named key ... optionally with modifiers"), which is unambiguous about what the tool does. It does not, however, differentiate itself from sibling input tools such as type_text or click, leaving the agent to infer the boundary.

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 explicit when-to-use or when-not-to-use guidance, and no named alternative for entering text versus pressing individual keys. Usage is only implied by the enumerated key examples, so the agent must guess how this relates to type_text and click.

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