Skip to main content
Glama
bh213

hx-multianim-mcp

by bh213

send_event

Injects mouse, keyboard, text, and wheel input events into a running hx-multianim game for automated UI testing and control.

Instructions

Inject an input event into the running application. Event types:

  • click: mouse click (push + release) at x,y with button (0=left, 1=middle, 2=right)

  • mouse_down / mouse_up: separate push/release at x,y

  • move: mouse move to x,y

  • key_down / key_up: keyboard key press/release with keyCode (hxd.Key constants)

  • key_press: key_down + key_up combined

  • text: text input with charCode

  • wheel: mouse wheel with delta at x,y

Common key codes: SPACE=32, ENTER=13, ESCAPE=27, TAB=9, A=65, 0=48, UP=38, DOWN=40, LEFT=37, RIGHT=39, F1=112

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xNoMouse X position (scene coordinates)
yNoMouse Y position (scene coordinates)
typeYesEvent type
deltaNoMouse wheel delta (positive=scroll down)
buttonNoMouse button: 0=left, 1=middle, 2=right
keyCodeNoKeyboard key code (hxd.Key constants)
charCodeNoCharacter code for text input

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.15.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral disclosure burden. It states that an event is injected, but does not cover side effects, whether the input is queued or synchronous, required application state, error behavior, or what the tool returns. For an input-injection mutation tool, this is a notable gap.

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?

The description is front-loaded with a clear one-sentence purpose followed by a well-organized bullet list of event types. Every bullet adds useful parameter semantics or event behavior, and there is no 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?

There is no output schema or annotation coverage, so the description must carry the burden for a 7-parameter tool. It adequately explains event types and parameter usage, but omits when to choose this tool over siblings like send_events and click_button, and lacks behavioral context for safe invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema itself has 100% parameter description coverage, setting a baseline of 3. The description adds meaningful event-type-specific parameter mappings, such as click using x,y,button; key_down using keyCode; text using charCode; and wheel using delta. It also lists common key codes, which supplements the schema's hxd.Key reference.

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: 'Inject an input event into the running application.' It also enumerates supported event types, making the tool's scope clear. It does not differentiate from the similar sibling send_events or click_button, 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 Guidelines2/5

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

The description explains what each event type does but gives no explicit guidance on when to use this tool versus alternatives like send_events, click_button, or other input-related siblings. It also omits prerequisites such as whether the application must be connected or focused before injection.

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