Skip to main content
Glama

esp_type

Types text through the active window's hardware keyboard layout after validating all characters, preventing partial input and stopping on focus or layout changes.

Instructions

Type text on the hardware keyboard through the layout of the foreground window (Caps Lock is compensated, never toggled). The whole text is checked first: unmappable_text lists characters that cannot be typed and nothing is typed. Stops with focus_changed or layout_changed (steps_done = keys sent) when the foreground window or its layout changes. Click into the target field first and check the screen afterwards.

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": {
      "text": "<text>",
      "control_id": "<control_id>"
    },
    "name": "esp_type"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesText to type, 1..10000 characters, through the keyboard layout of the foreground window. "\n" = Enter, "\t" = Tab. Characters the layout cannot type (emoji, dead-key combinations, other scripts) fail the whole call before anything is typed.
control_idYesFrom esp_control begin.
per_key_msNoTime per key, 2..200 ms (default 12). Use 30 or more for remote desktops, virtual machines and Electron apps.
request_idNoOptional idempotency key: repeating a call with the same request_id within 5 min returns the first receipt (also an uncertain one) without running the action again.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.6/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 burden and does well: it discloses Caps Lock compensation (never toggled), that the entire text is validated up front and nothing is typed on failure, and the two stop conditions with steps_done semantics. What it omits is the shape of a successful receipt and the failure/lease-expiry behavior implied by control_id, so the disclosure is strong but incomplete.

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?

Four dense sentences, front-loaded with the core behavior and then the validation and stop-condition contract; no filler. It is slightly over-packed — error states and procedural advice are interleaved rather than separated — but every sentence earns its place.

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?

No output schema exists, yet the description names the meaningful return fields (unmappable_text, focus_changed, layout_changed, steps_done), which is exactly the gap it needs to fill for this mutation-style tool. The main remaining hole is the success receipt format and what happens to the control lease after a stop.

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 text, control_id, per_key_ms and request_id in detail. The description adds no parameter-level meaning beyond what the schema states (e.g. it never mentions per_key_ms or request_id), which is the baseline case for full schema coverage.

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 specific verb and resource — 'Type text on the hardware keyboard' — plus the scoping detail that it goes 'through the layout of the foreground window', which is what separates it from key/button siblings. It does not name an alternative tool explicitly, so it stops short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

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

Gives a concrete precondition ('Click into the target field first') and a post-condition ('check the screen afterwards'), which tells the agent where this fits in a workflow. It never states when NOT to use it — e.g. that esp_paste is preferable for large or non-layout-typable text — so no explicit exclusions.

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