Skip to main content
Glama

mumu_raw_event

Emit a single raw input event (type, code, value) to a MuMu touchscreen node when built-in gesture helpers cannot express the required touch behavior.

Instructions

Emit one raw input event (type code value) to the touchscreen node.

For anything the gesture helpers do not cover. Linux input codes: EV_SYN=0, EV_KEY=1, EV_ABS=3; ABS_MT_POSITION_X=0x35, ABS_MT_POSITION_Y=0x36, ABS_MT_TRACKING_ID=0x39, BTN_TOUCH=0x14A.

Each call is its own adb shell, so successive events are ~250 ms apart. For a tap or a gesture that is too slow — use mumu_raw_sequence to send the whole sequence in one round trip.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "mumu_raw_event"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeNo
valueNo
deviceNo
vmindexNo
event_typeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and it discloses the critical behavioral trait: each call spawns its own `adb shell`, so successive events are ~250 ms apart, which is a real latency constraint an agent must plan around. It does not cover failure modes, permission/auth requirements, or what the return value looks like, 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?

Front-loads the action in the first clause, then layers the rationale, the code reference, and the performance caveat in short paragraphs. The hex constant list is dense but every entry is call-relevant data rather than prose padding.

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-level 5-parameter tool with no annotations and no output schema, the definition covers purpose, encoding constants, and the latency model well enough to call correctly. The unanswered pieces are the semantics and defaults of `device` and `vmindex` (both default to empty/0), and there is no output schema so nothing about the response is stated either.

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?

Schema description coverage is 0% across 5 parameters, so the description has to compensate and largely does: it maps the `type code value` triple to the schema's `event_type`/`code`/`value` fields and supplies a concrete constant table (EV_SYN=0, EV_KEY=1, EV_ABS=3, ABS_MT_POSITION_X=0x35, ABS_MT_TRACKING_ID=0x39, BTN_TOUCH=0x14A) that is directly usable at call time. It leaves `device` and `vmindex` entirely unexplained, which is the remaining gap.

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: 'Emit one raw input event (`type code value`) to the touchscreen node.' It also positions itself against the gesture helpers and names the sibling `mumu_raw_sequence`, so an agent can distinguish the single-event escape hatch from the batched alternative without opening either schema.

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?

Gives an explicit use condition ('For anything the gesture helpers do not cover') and an explicit switch-away condition ('For a tap or a gesture that is too slow — use `mumu_raw_sequence` to send the whole sequence in one round trip'). Both the when and the when-not are present, along with the named alternative.

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