Skip to main content
Glama

three_live_validate

Read-onlyIdempotent

Validates Three.js scripts, HTML documents, and GLB files, running spatial, camera frustum, grounding, AABB collision, lighting, and 3D/XR accessibility lint checks.

Instructions

Validate a Three.js script (.js), HTML document (/), or .glb binary and run the 3D spatial, camera frustum, grounding, AABB collision, lighting, and 3D/XR accessibility linter (TL100-TL606).

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_validate"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeNoInline Three.js scene script (using pre-defined `THREE` and `scene` globals) or HTML document. Provide either `code` or `inputPath`.
cameraFovNoOptional vertical field of view in degrees (default 45).
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.
cameraTargetNoOptional camera look-at target override [x, y, z] in meters.
cameraPositionNoOptional camera eye position override [x, y, z] in meters for frustum and visibility checks.
texturePackPathNoOptional path to a texture pack JSON file (e.g. written by `three_live_bake_textures`).

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

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and openWorldHint=false, so the safety profile is covered; the description adds that a rule-based linter (TL100-TL606) runs across named check categories, which is real added context. It does not disclose what the output looks like (pass/fail vs. diagnostic list, severity, whether rule-range filtering is possible), which matters for a validator with no output schema.

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?

A single front-loaded sentence that opens with the verb and accepted inputs before the parenthetical list of check families; every clause carries information. It is dense and slightly run-on, but there is no filler to remove.

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 7 fully documented optional parameters and no output schema, the main remaining burden on the description is describing the result of validation and the significance of the TL rule codes, neither of which is explained. The definition is adequate to call the tool but leaves the agent guessing about what it gets back.

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 baseline is 3. The description only adds the file-extension-to-inputPath mapping and the HTML tag names, both of which are already nearly stated in the schema; it adds nothing about cameraFov, cameraPosition/cameraTarget, or the texturePack object beyond what the schema documents.

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 gives a specific verb ('Validate') plus the three accepted resource types (.js script, HTML document with <three-live>/<xr-live>, .glb binary) and enumerates the exact check families performed (spatial, frustum, grounding, AABB collision, lighting, XR accessibility) with a rule-ID range. That level of specificity separates it cleanly from siblings like three_live_render or three_live_sim, which do not claim lint coverage.

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

Usage Guidelines3/5

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

Usage is only implied: the accepted input types and check families suggest this is a pre-flight check for a scene, but the description never states when to call it versus three_live_render, three_live_link, or three_live_sim, nor any when-not conditions. An agent must infer placement in a workflow.

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