Skip to main content
Glama

craftos_advance

Jump the virtual clock forward by N seconds to fire all due timers in order, so sleep and timeout logic pass instantly and deterministically in ComputerCraft programs.

Instructions

Jump the virtual clock forward by N seconds and fire every timer that falls due in that window (earliest first), so sleep(), timeouts, countdowns and inactivity logic pass instantly and deterministically. os.clock()/os.epoch() move too. Timers due later keep their real deadline. Then waits for the program to settle.

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

Input Schema

NameRequiredDescriptionDefault
idYesId returned by craftos_session_create.
secondsYesHow far to jump, in seconds (up to a day).
timeoutMsNoLongest wait for the program to settle afterwards.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.7.1
    • addedInput schema / properties / seconds / description
      Added value: +"How far to jump, in seconds (up to a day)."
    • addedInput schema / properties / timeoutMs / description
      Added value: +"Longest wait for the program to settle afterwards."
  2. First observedv0.7.0

TDQS

A3.9/5.0
Behavior4/5

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

Beyond the sparse annotations (openWorldHint=false, destructiveHint=false), the description discloses the firing order (earliest first), that clock functions advance, that later timers keep real deadlines, and that the call waits for the program to settle. These are real behavioral traits an agent could not infer from the annotations. It does not describe what happens if the program fails to settle within timeoutMs.

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

Conciseness4/5

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

The description is four tight sentences, front-loaded with the core action and followed by consequences and edge cases in a sensible order. The illustrative list (sleep, timeouts, countdowns, inactivity logic) earns its place by naming concrete use cases. No redundant restatement of the name or schema.

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 simulation-mutating tool with no output schema, the description covers what changes (clock, timers) and the post-call behavior (wait for settle). The remaining gap is the return value and timeout-failure behavior, which an agent needs after invocation. Overall it is close to complete for this complexity.

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 description coverage is 100%, so the schema already explains id, seconds and timeoutMs, and the description adds little per-parameter detail beyond 'N seconds'. It does add semantic meaning to seconds by tying it to which timers fire, but no format or edge-case detail beyond that. Baseline 3 is appropriate when the schema carries the parameter burden.

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?

The description names a specific verb and resource: jump the virtual clock forward by N seconds and fire due timers. It clearly distinguishes the operation from a plain 'advance clock' by explaining that timers fire in order and os.clock()/os.epoch() move too. It never references a sibling tool (e.g., craftos_clock, craftos_settle), so the only gap is explicit sibling differentiation.

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?

Implicit when-to-use guidance is strong: the description says to use this so sleeps, timeouts, countdowns and inactivity logic pass instantly and deterministically, which tells an agent exactly the scenario it serves. It also states a key constraint, that timers due later keep their real deadline, which affects how far to jump. It does not say when not to use it or name an alternative tool.

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