Skip to main content
Glama

craftos_sim_command

Change a running ComputerCraft simulation by sending commands to add players, move computers, set peripherals, alter the world, and advance time; returns the updated state or a delta.

Instructions

Change the simulated world while a session runs. Commands: addPlayer {name}, join/leave {player}, setPlayerPos {player, x, y, z, dimension?}, setComputerPos {x?, y?, z?, dimension?} (move this computer, modems included; on a network use craftos_network_update), unload / load (the computer's chunk unloads and it stops; load boots it afresh), chat {player, message} (fires a chat event), playerClick {player}, setItem {peripheral, slot, item|null}, setEnergy {peripheral, energy} (what a generic energy_storage holds), setFluid {peripheral, tank? (1-based, default 1), fluid {name, amount}|null} (what one tank holds), setEnergyTransferRate {peripheral, rate}, setRedstoneInput {peripheral, side, level}, completeCraft {peripheral, name?} (finish an ME/RS crafting job), setNetworkConnected {peripheral, connected}, setEnvironment {values:{time, raining, thunder, ...}}, addEntity {entity}, attachPeripheral / detachPeripheral / resizeMonitor, insertDisk {peripheral, disk} / ejectDisk {peripheral} (a player puts a floppy into a drive or takes it out: disk / disk_eject), Mekanism QIO: qioSetPowered {block, powered}, qioSetDrive {block, slot, drive|null}, qioSetSecurity {block, mode}, qioSetUpgrades {block, speed}, qioInsert/qioExtract {frequency, item}, Quantum Entangloporter: qeInsert {frequency, item, public?, owner?}, qeExtract {frequency, count?}, qeSetLoaded {block, loaded} (see docs/mekanism-qio.md), seed {value} (pin math.random), advance {seconds} (jump the virtual clock and fire due timers). With the vhcctweaks addon also: interact {player} (right-click the computer), approve {player?, nonce?} (click [APPROVE]), revoke {player?}, setBalance {player, balance}, setHost {player?}, setEconomy {available}, rcExec {player, code}, setVaultLevel / setEquipment / setOnOtherServer (2.2.36), setGearPower / setTemper / setReputation / setGreedTier / setSkills / setStats (2.2.37), internalError {function, times?}, setEconomyDelay {ticks}, refuseTransfers {times?}; craftos_help {topic:"world"} has their shapes. Returns the sim state, or with delta:true only what changed. Commands are applied when the program next waits for an event; this call returns once they are.

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

Input Schema

NameRequiredDescriptionDefault
idYesId returned by craftos_session_create.
deltaNoReturn only what changed since the previous call.
commandYesA command object, e.g. {cmd:'interact', player:'Alice'}.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.0

TDQS

A4.5/5.0
Behavior5/5

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

Discloses behavior the annotations cannot: commands are queued and 'applied when the program next waits for an event; this call returns once they are', plus the delta:true return semantics. It also flags side effects per command (unload stops the computer, load boots afresh, chat fires an event), which goes well beyond the generic destructiveHint=false flag.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The opening sentence is well front-loaded and every clause carries real information, but the rest is a single semicolon-delimited run-on covering ~50 commands, which is hard to scan. Content earns its place; the structure does not.

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 mega-tool with a nested, ad-hoc command payload and no output schema, the definition is unusually complete: command inventory, argument shapes, effect descriptions, and deferral timing. Minor gaps remain around error behavior for unknown/invalid commands and the ambiguity with the craftos_advance/craftos_seed siblings.

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

Parameters5/5

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

The schema documents only the top-level id/command/delta and leaves the nested command object as additionalProperties:{}, so the description carries the entire per-command argument contract. It spells out shapes for dozens of commands (e.g. setFluid {peripheral, tank? (1-based, default 1), fluid {name, amount}|null}) including defaults and nullability, adding substantial meaning beyond the schema.

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?

Opens with a specific verb+resource: 'Change the simulated world while a session runs', then enumerates the exact command surface. It also distinguishes a sibling case explicitly ('move this computer, modems included; on a network use craftos_network_update'), so an agent can tell this apart from craftos_network_update and craftos_act without opening schemas.

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

Usage Guidelines4/5

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

Gives clear context (mutate world state during a live session) and routes to craftos_help {topic:'world'} for command shapes, plus one explicit alternative for the network case. It does not address when NOT to use it, notably the overlap between its 'advance'/'seed' commands and the sibling craftos_advance / craftos_seed tools.

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