Skip to main content
Glama

three_live_sim

Idempotent

Simulate Three.js scenes deterministically at 60 Hz, including interaction graphs, rigid-body physics, character controllers, steering agents, hit zones, objectives, and timed actions.

Instructions

Simulate interactive KHR_interactivity behavior graphs, orbit/explode traits, and 60 Hz xr-live-sim rigid-body physics, character controllers, steering agents, hit zones, and objectives deterministically at 60 Hz.

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.
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.
includeFilmstripNoWhen true, renders a keyframe filmstrip PNG and includes it as an image content block.

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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; the description adds that execution is deterministic and ticked at 60 Hz, which is genuinely useful behavioral context. It omits notable side effects the schema reveals, such as writing a filmstrip file to disk via outputStripPath, and says nothing about runtime cost or failure modes for a physics simulation. Given annotation coverage, this is adequate but not rich.

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?

It is a single front-loaded sentence with no filler sentences, which is good. However, '60 Hz' appears twice in near-redundant form ('60 Hz xr-live-sim rigid-body physics ... deterministically at 60 Hz'), and the dense keyword pile of feature nouns is harder to parse than a structured list would be.

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?

For a 7-parameter tool with no required inputs and no output schema, the description should clarify what the caller gets back (simulation results vs. filmstrip image blocks), what happens when neither code nor inputPath is supplied, and that file output is a side effect. None of that is covered, so the description is complete on 'what it simulates' but thin on operational behavior.

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 action event types and the code/inputPath alternative. The description adds no parameter-level meaning beyond what the schema states, so the baseline of 3 applies.

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 leads with a specific verb ('Simulate') and enumerates the concrete domains covered: KHR_interactivity graphs, orbit/explode traits, rigid-body physics, character controllers, steering agents, hit zones, and objectives. An agent knows what the tool produces (a deterministic 60 Hz simulation). It does not, however, distinguish this from siblings like three_live_render or three_live_validate, so the differentiation requirement for a 5 is unmet.

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 explicit when-to-use guidance, no statement of when NOT to use it, and no mention of the sibling tools (validate/render/convert) that an agent would need to choose between. Usage is only implied by the verb 'Simulate', leaving the selection decision to inference.

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