Skip to main content
Glama

Press a key

press_key
Destructive

Simulate a single key press, with optional Ctrl, Alt, or Shift, in a focused Limoni terminal widget and return the updated semantic tree after redraw.

Instructions

Sends one key press to the focused widget, then returns the tree after the application redraws. key is a single character or one of: enter, tab, esc, space, backspace, delete, insert, up, down, left, right, home, end, pgup, pgdn, f1–f12.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
altNo
keyYesA single character, or a key name such as enter, tab, esc, up, down.
ctrlNo
shiftNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=false, and readOnlyHint=false, so the safety profile is covered. The description adds real behavioral context beyond that: the call synchronously returns the tree only after the application redraws, which tells the agent the response reflects post-keypress state.

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?

Two tight sentences, front-loaded with the action and side effect, then the key vocabulary. The long enumeration earns its place because the schema has no enum constraint.

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?

With no output schema, the description correctly explains the return (the redrawn tree) plus the redraw side effect, and it covers the required key parameter. It stops short of explaining modifier semantics, which is the remaining gap for a 4-parameter tool.

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 only 25% and the schema defines no enums, so the description usefully supplies the full valid key vocabulary (enter, tab, esc, ... f1–f12) that the schema itself omits. It says nothing about the alt/ctrl/shift modifiers, leaving a quarter of the parameters undocumented in both places.

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 precise verb+resource: 'Sends one key press to the focused widget,' which is clearly distinct from a string-typing sibling like type_text. However, it never names or contrasts against the closest siblings (type_text, click), so an agent must 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 Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied rather than stated: 'to the focused widget' hints that a widget must be focused first, but there is no explicit when-to-use, when-not-to-use, or alternative (type_text/click/wait_for) mentioned.

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

Deploy Server

Other Tools