Skip to main content
Glama

three_live_sim

Idempotent

Simulate deterministic 60 Hz Three.js/WebXR physics, mechanical joints, character controllers, and timed interactions to test scene behavior and render keyframe filmstrips.

Instructions

Simulate interactive KHR_interactivity behavior graphs, orbit/explode traits, and 60 Hz xr-live-sim rigid-body physics, mechanical joints (hinge, slider, spring, ball), character controllers, steering agents, hit zones, and objectives deterministically at 60 Hz.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "three_live_sim"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeNoInline Three.js scene script or HTML document. Provide either `code` or `inputPath`.
actionsNoOptional timed interaction events (e.g. `[{"at": 0.2, "type": "select", "target": "crystal"}]`).
durationNoSimulation duration in seconds (default 2.0s, max 60.0s).
inputPathNoPath to a .js, .html, or .glb file on disk when `code` is not provided.
texturePackNoOptional AI texture pack (`{format: "three-live-texture-pack", version: 1, entries}`) so `userData.xr.material.prompt` textures resolve; without it the preset fallback is used.
snapshotFramesNoOptional 60 Hz tick indices (e.g. [0, 30, 60, 120]) to render into a horizontal filmstrip.
outputStripPathNoOptional file path (.png or .gif) to write the rendered keyframe strip on disk.
texturePackPathNoOptional path to a texture pack JSON file (e.g. written by `three_live_bake_textures`).
includeFilmstripNoWhen true, renders a keyframe filmstrip PNG and includes it as an image content block.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.5.1
    • addedInput schema / properties / texturePack
      Added value: +{
      +  "description": "Optional AI texture pack (`{format: \"three-live-texture-pack\", version: 1, entries}`) so `userData.xr.material.prompt` textures resolve; without it the preset fallback is used.",
      +  "type": "object"
      +}
    • addedInput schema / properties / texturePackPath
      Added value: +{
      +  "description": "Optional path to a texture pack JSON file (e.g. written by `three_live_bake_textures`).",
      +  "type": "string"
      +}
  2. First observedv0.1.0

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true and openWorldHint=false, so the safety profile is covered. The description adds one genuinely useful trait beyond that: the simulation is deterministic and fixed-step at 60 Hz, which tells an agent results are reproducible. It omits side effects that matter for a non-read-only tool, notably that outputStripPath/outputStripPath writes files to disk and that filmstrip rendering is opt-in.

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 verb is front-loaded, which is good, but the single sentence degenerates into a long feature laundry list (traits, joints, controllers, agents, hit zones, objectives) that an agent does not need in order to call the tool. It is not wasteful in length so much as unfocused in content.

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

Completeness3/5

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

With 9 parameters, nested action objects, and no output schema, the description should clarify what the caller gets back (frames, state, filmstrip image block) and how code vs inputPath are resolved. The rich schema compensates for much of this, but the return-shape expectation is left unstated, which is a real gap for a simulation tool with no output 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 description coverage is 100%, so every parameter is already documented in the schema, including the timed action event shape and the texture pack format. The description adds no syntax, units, or default information beyond what the schema states. Baseline 3 is appropriate when the schema carries the full 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 verb 'Simulate' is specific and the resource list is concrete: KHR_interactivity graphs, orbit/explode traits, rigid-body physics, joints, character controllers, steering agents, hit zones and objectives. An agent can tell this is the headless simulation runner rather than the renderer, validator, or texture baker. It stops short of naming a sibling explicitly, so it lands at 4 rather than 5.

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

Usage Guidelines2/5

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

There is no when-to-use guidance: nothing says when to prefer this over three_live_render, three_live_validate, or the gym step/close/reset trio. The only implicit selection signal is buried in the schema ('Provide either `code` or `inputPath`'), not the description. An agent must infer the routing itself.

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