Skip to main content
Glama

Map the three.js project

three_scan
Read-onlyIdempotent

Map a three.js project in one read-only call to identify bundler, framework, installed release, renderer settings, used files, animation loops, and asset problems before editing.

Instructions

Map a three.js project from its files in one call: bundler and framework (Vite, Next, React Three Fiber, plain import map), installed three release vs package.json and @types/three, the libraries around it, pages and how they load three, every file that uses three with what it creates (renderer, cameras, lights, controls, loaders, composer) and where its animation loop is, renderer settings (tone mapping, colour space, shadows, pixel ratio) and the assets the code loads with problems. Call it once before your first edit. detail full adds imports per file, every asset problem and the glTF extensions of each model. Read-only.

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

Input Schema

NameRequiredDescriptionDefault
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

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and closed-world, so repeating 'Read-only' is redundant, but the description adds real behavioral context by disclosing what the map contains and how the detail flag alters depth of analysis (imports, all asset problems, glTF extensions). No cost, auth, or pagination caveats are mentioned, keeping it below 5.

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?

Front-loaded with the verb and resource, then a colon-led enumeration of what is mapped, followed by the usage instruction and the detail flag semantics. Every clause carries informational weight, but the single sprawling sentence is dense and could be broken into shorter units for faster scanning.

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

Completeness5/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 must describe the return value — and it does so thoroughly, listing each category of finding plus the delta introduced by detail=full. Combined with only two optional parameters, an agent has everything needed to call it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description earns above that by explaining what 'brief' vs 'full' actually changes ('full adds imports per file, every asset problem and the glTF extensions of each model'), which the schema only vaguely calls 'everything'. The path parameter is not elaborated, but its schema description is already adequate.

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?

States a specific verb and resource ('Map a three.js project from its files in one call') and then enumerates the exact scope: bundler/framework, three version vs package.json and @types/three, pages, per-file usage, renderer settings, assets. That enumeration makes it clearly distinguishable from narrower siblings like three_inspect or three_assets without needing to name them.

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?

Gives explicit timing guidance — 'Call it once before your first edit' — which tells the agent this is an orientation step, not a per-edit tool. It stops short of naming alternatives or stating when-not to use it, so it does not reach a 5.

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