Skip to main content
Glama

craftos_touch_monitor

Click a monitor cell to emit a monitor_touch event as a specified player and return ok immediately; use when player identity matters, such as detectors or per-player menus.

Instructions

Click a monitor cell, producing a monitor_touch event like a player right-clicking it, and return "ok" at once. Prefer craftos_act with touch, which waits for the program to react; use this one when it matters which player touched (player detectors, per-player menus). Find the cell to touch with craftos_ui.

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": {
      "id": "<id>",
      "monitor": "<monitor>",
      "x": "<x>",
      "y": "<y>"
    },
    "name": "craftos_touch_monitor"
  }
}

Input Schema

NameRequiredDescriptionDefault
xYesColumn, 1-based.
yYesRow, 1-based.
idYesId returned by craftos_session_create.
playerNoWho touches (default: the interacting player); a name not in the world is an error.
monitorYesMonitor peripheral name, e.g. "top" or "monitor_0".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.7.1
    • addedInput schema / properties / monitor / description
      Added value: +"Monitor peripheral name, e.g. \"top\" or \"monitor_0\"."
    • addedInput schema / properties / player / description
      Added value: +"Who touches (default: the interacting player); a name not in the world is an error."
    • addedInput schema / properties / x / description
      Added value: +"Column, 1-based."
    • addedInput schema / properties / y / description
      Added value: +"Row, 1-based."
  2. First observedv0.7.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare openWorldHint=false and destructiveHint=false, so the description must carry the behavioral load, and it does: it discloses the fire-and-forget semantics ('return "ok" at once' rather than waiting for the program to react), the event emitted, and the error case for an unknown player. These are the traits an agent needs to reason about ordering against craftos_act/craftos_settle.

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, both front-loaded with the highest-value facts: what happens first, then the alternative-selection rule. There is no filler, and the contrast with the waiting alternative is placed immediately after the behavior statement.

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 five-parameter mutation-like tool with no output schema, the description covers return value ('ok'), the emitted event, the non-blocking behavior, and the sibling tradeoff. Only minor items such as interaction with settle/timing or what the touched program receives are left implicit, which is acceptable given the fully documented schema.

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 100%, so every parameter, including the player default and the not-in-world error, is already documented in structured data. The description reinforces the significance of the player parameter through its use cases but adds no new syntax, range, or naming detail beyond the schema; baseline 3 applies.

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 ('Click a monitor cell') plus the exact side effect ('producing a monitor_touch event like a player right-clicking it') and the return value. It also names the sibling it is not (craftos_act with touch), so an agent can distinguish the two 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?

Explicitly states when to prefer the alternative ('craftos_act with touch, which waits for the program to react') and when to use this one ('when it matters which player touched – player detectors, per-player menus'). It also routes the agent to craftos_ui to find the target cell, covering the whole selection workflow.

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