Skip to main content
Glama
construct2-mcp

construct2-mcp

by wjrosa

editor_send_keys

Sends real keyboard shortcuts to Construct 2 as a last resort, bringing the editor to the front to run save, preview, or export commands when UI automation is unavailable.

Instructions

LAST RESORT: brings Construct 2 to the front and types with the real keyboard (pywinauto syntax: ^s = Ctrl+S, {ENTER}, {F5}). Interrupts whoever is using the PC; prefer editor_ui_act.

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": {
      "keys": "<keys>"
    },
    "name": "editor_send_keys"
  }
}

Input Schema

NameRequiredDescriptionDefault
pidNo
keysYes
projectNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and does disclose key traits: it focuses/foregrounds the Construct 2 window, injects real OS-level keystrokes, and disrupts the human at the machine. It does not say whether it waits for the app to settle, how failures surface, or what it returns, which keeps it short of a 5.

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 sentences, zero filler, with the most important constraint ('LAST RESORT') front-loaded before the syntax detail and the alternative. Every clause 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?

For a low-complexity, no-output-schema tool this covers purpose, danger, syntax, and routing to the sibling. The only shortfall is the unaddressed pid/project parameters, which an agent would have to infer from the schema alone.

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; it does partially by documenting the required 'keys' parameter with concrete pywinauto examples (^s, {ENTER}, {F5}). The 'pid' and 'project' parameters get no explanation at all, leaving a real gap that keeps this at baseline rather than above.

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 ('types with the real keyboard' into Construct 2) and immediately distinguishes it from the sibling editor_ui_act. The parenthetical syntax examples pin down exactly what kind of typing this is.

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

Usage Guidelines5/5

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

Explicitly frames itself as 'LAST RESORT' and names the preferred alternative (editor_ui_act), plus a concrete condition to avoid it: it 'Interrupts whoever is using the PC'. When-to-use, when-not-to-use, and the alternative are all present.

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