Skip to main content
Glama

craftos_send_event

Queue any ComputerCraft event such as 'timer' or 'redstone' and get an immediate 'ok'; use it for events no other tool produces, then call craftos_settle so the program can react.

Instructions

Queue any event on the computer, as os.queueEvent would, and return "ok" at once. Use it for events nothing else produces, e.g. name 'timer' with params [3], or 'redstone'. For keys, typing and touches use craftos_act; to change the world itself (redstone input, items, players) use craftos_sim_command. Follow with craftos_settle to let the program react.

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>",
      "name": "<name>"
    },
    "name": "craftos_send_event"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesId returned by craftos_session_create.
nameYesEvent name, the first value os.pullEvent returns.
paramsNoThe event's other values, in order.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.7.1
    • addedInput schema / properties / name / description
      Added value: +"Event name, the first value os.pullEvent returns."
    • addedInput schema / properties / params / description
      Added value: +"The event's other values, in order."
  2. First observedv0.7.0

TDQS

A4.7/5.0
Behavior4/5

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

Annotations only declare openWorldHint=false and destructiveHint=false; the description adds genuinely new behavior — the call is fire-and-forget ('return "ok" at once'), the event is queued rather than delivered synchronously, and the program needs craftos_settle before it reacts. It does not say what happens with malformed event names or whether queued events can be dropped, so it falls just short of full behavioral disclosure.

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?

Three short sentences, front-loaded with what the tool does and immediately followed by scope, exclusions, and the required follow-up call. Every sentence carries distinct information with no restatement of the name or schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 3-parameter, fully documented schema with annotations covering the safety profile and no output schema needed (the return is stated as "ok"), the description supplies everything an agent needs: purpose, correct use cases, wrong use cases with redirects, and the sequencing step required for the effect to be observed.

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 coverage is 100%, so the baseline is 3, and the description exceeds it by giving a worked example of how 'name' and 'params' combine ('timer' with params [3]) — i.e. params are the positional tail of the os.pullEvent return values. It still does not describe valid event names or the effect of omitted params beyond the schema default.

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?

The description states a specific verb and resource ('Queue any event on the computer, as os.queueEvent would') and pins the semantics to a known primitive, then names sibling tools it is not (craftos_act, craftos_sim_command) with the conditions that select them. An agent can distinguish this from craftos_act and craftos_sim_command without opening any 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?

It gives explicit when-to-use ('events nothing else produces'), concrete examples ('timer' with params [3], 'redstone'), when-not-to-use with the alternative named for each case (craftos_act for keys/typing/touches, craftos_sim_command for world mutation), and a follow-up step (craftos_settle). This is the full when/when-not/alternative pattern.

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