Skip to main content
Glama

craftos_seed

Pin math.random to a seed in a running ComputerCraft session so shuffles, dice rolls and loot are reproducible, while the program's own math.randomseed calls become no-ops.

Instructions

Pin math.random to a seed on a running session, and make the program's own math.randomseed calls no-ops, so shuffles, dice and loot are reproducible. For a fixed seed from boot pass world.seed to craftos_session_create / craftos_run.

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

Input Schema

NameRequiredDescriptionDefault
idYesId returned by craftos_session_create.
valueYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.0

TDQS

A4.4/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, so the description carries most of the burden, and it delivers an important non-obvious behavior: the program's own math.randomseed calls are neutered. It does not say whether re-pinning mid-run is allowed, what happens to values already drawn, or what the call returns.

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, front-loaded with the action and effect, followed by the routing note for the alternative. No filler or restated field names.

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 two-parameter mutation-ish tool with thin annotations and no output schema, the description covers purpose, effect, and the alternative path well. The remaining gap is the return value and the behavior on repeat invocation, which an agent would plausibly want.

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 50%: 'id' is documented in the schema, while 'value' is a bare integer. The description implies 'value' is the seed to pin to, which adds some meaning, but says nothing about accepted range, negative values, or whether re-seeding an already-seeded session is permitted.

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 names a specific verb and resource: pin math.random to a seed on a running session. It also states the mechanism (program's own math.randomseed calls become no-ops) and the outcome (reproducible shuffles, dice, loot), which distinguishes it from session-creation-time seeding.

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 states the use case (reproducibility of randomized outcomes) and explicitly names the alternative path: pass world.seed to craftos_session_create / craftos_run when the seed must be fixed from boot. The agent knows both when to call this and when not to.

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