Skip to main content
Glama

press

Destructive

Simulate key or chord input (Enter, Escape, Control+s) in a desktop app, optionally focusing a locator first without clicking it. Use for shortcuts, navigation, and form submission.

Instructions

Press a key or chord (Enter, Escape, Tab, ArrowDown, F5, a, Control+s, Shift+Tab). Optional locator is focused first without clicking it.

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

Input Schema

NameRequiredDescriptionDefault
keyYes
countNo
locatorNo
session_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

The description adds genuinely useful non-annotation behavior: the locator is focused without being clicked, so no pointer event fires. However, with destructiveHint=true and openWorldHint=true, it never warns that a keystroke can submit forms, trigger shortcuts, or otherwise mutate state — exactly the risk the annotation flags.

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?

Two compact sentences, key examples front-loaded before the locator caveat. No filler, though the locator clause is slightly buried for a detail that changes what side effects occur.

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 destructive mutation tool, the description covers key syntax and focus behavior but leaves out what is returned, how failures surface, and any warning about keystrokes causing irreversible actions. Adequate, not complete.

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 reported at 0% for top-level parameters, and 'key' and 'count' have no descriptions in the schema; the description supplies the chord syntax ('Control+s', 'Shift+Tab') for key and clarifies locator focus semantics, but never explains count (max 20) or the required session_id.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Press a key or chord') and immediately enumerates concrete key examples (Enter, Escape, F5, a, Control+s, Shift+Tab), which separates it cleanly from click/fill siblings that also target elements.

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?

The optional-locator sentence implies this is the tool for keyboard input against a focused element rather than for pointer interaction, but there is no explicit when-to-use or when-not guidance and no mention of alternatives such as click or fill.

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