Skip to main content
Glama

What is in a model, and how three.js loads it

three_model_inspect
Read-onlyIdempotent

Inspect .glb or .gltf files without a browser to get nodes, meshes, materials, textures, animations, draw-call estimates, and the three.js loaders and setup code required.

Instructions

What is in a .glb or .gltf without loading it in a browser: nodes, meshes, triangles, materials, textures with sizes, animations, skins, size in metres, glTF extensions, a draw-call estimate, and which loaders and decoders three.js needs for it (DRACOLoader, MeshoptDecoder, KTX2Loader) with the code to set them up. It also checks the project's code sets those decoders up. Read-only.

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": {
      "file": "<file>"
    },
    "name": "three_model_inspect"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileYes.glb or .gltf file (relative to the project)
pathNoProject folder, or a file or folder in it (relative to the server's folder; default: the project).
detailNobrief (capped, short) or full (everything); default brief

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so the trailing 'Read-only' is largely redundant. Beyond that, the description discloses genuinely non-obvious behavior: it reads the project's source code to verify the required DRACO/Meshopt/KTX2 decoders are actually wired up, and it reports scene scale in metres and a draw-call estimate. It does not say what happens if the file is missing or unreadable.

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?

Purpose is front-loaded in the opening clause, and the long enumeration of returned fields is substantive rather than filler. The trailing 'Read-only' sentence is wasted since annotations already state it, and the enumerated list is dense enough to be slightly hard to scan.

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?

With no output schema, the description carries the burden of describing returns and does so thoroughly, covering scene contents, scale, extensions, estimates, and loader requirements. The only real gap is error/failure behavior for invalid or missing files, which matters for a tool whose input is a user-supplied path.

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 all three parameters (file, path, detail with its brief/full enum) are already documented in the schema. The description adds only indirect meaning, such as the metres-based size output and the decoder setup code, without clarifying the relative-versus-absolute path resolution or what 'brief' actually trims.

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 names a concrete resource (.glb/.gltf) and enumerates exactly what is extracted: nodes, meshes, triangles, materials, textures with sizes, animations, skins, extensions, and a draw-call estimate. It implicitly distinguishes itself from rendering tools with 'without loading it in a browser', but never explicitly differentiates from close siblings like three_model_brief or three_model_lint.

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 implied by 'without loading it in a browser', which suggests this is the static-inspection path rather than a viewer, and the decoder-checking clause hints at a pre-build validation use case. No explicit when-to-use, when-not-to-use, or named alternative is given, so the agent must infer the boundary against three_model_lint, three_model_spec, and three_model_brief.

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