Skip to main content
Glama

three_live_gym_reset

Read-only

Start a deterministic 60 Hz agent gym episode by compiling a Three.js scene with XR traits and returning a sessionId plus the t=0 observation for repeated step calls.

Instructions

Start a closed-loop agent gym episode: compile a scene with userData.xr traits (character controllers, objectives, hit zones, agents, joints, physics) and return a sessionId plus the t = 0 observation (body positions, health, score, scenario state). Then call three_live_gym_step repeatedly to act, observe, and react, like a reinforcement-learning environment. The simulation is deterministic 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_gym_reset"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeNoInline Three.js scene script or HTML document. Provide either `code` or `inputPath`.
viewNoViewport for `includeFrame`.camera
watchNoOnly report these node names in observations (default: all nodes, at most 64).
widthNoFrame width (default 384).
heightNoFrame height (default 288).
inputPathNoPath to a .js, .html, or .glb file on disk when `code` is not provided.
includeFrameNoAlso return a rendered PNG of the observation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.5.1

TDQS

A4.2/5.0
Behavior4/5

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

The annotations already declare readOnlyHint=true, openWorldHint=false, and idempotentHint=false, and the description adds useful behavior: deterministic 60 Hz simulation, the return shape, and the closed-loop RL workflow. It leaves session lifetime, cleanup, and whether a new reset replaces an existing session unstated, but it does not contradict the annotations.

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?

The description is three sentences, front-loaded with the purpose, then the return value, then the next-step workflow. Every sentence contributes useful information without redundant restatement.

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?

There is no output schema, so the description usefully names the sessionId and t=0 observation fields and explains the deterministic stepping model. Session cleanup, lifetime, and close-sibling guidance are missing, but for a start-episode tool the core context is present.

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 documents all seven parameters and the baseline is 3. The description adds high-level meaning by saying the code/inputPath scene should contain userData.xr traits, but it does not clarify view, width, height, watch, or includeFrame 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?

The description states a specific verb and resource: start a closed-loop agent gym episode, compile a scene with userData.xr traits, and return a sessionId plus the t=0 observation. It also distinguishes this tool from three_live_gym_step by explaining the start-then-step sequence.

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?

The description clearly says to use this tool to start an episode and then call three_live_gym_step repeatedly to act, observe, and react. It does not mention when to avoid starting a new episode or when to use three_live_gym_close, so the guidance is clear but not exhaustive.

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