Skip to main content
Glama

What is wrong, and in which order to fix it

three_doctor
Read-onlyIdempotent

Diagnose a three.js project from files alone when the scene is blank or broken: check versions, imports, assets, removed APIs and performance, ranked by cause with fixes and next steps.

Instructions

Start here in a three.js project you do not know, or when something is broken and you do not know where to begin. From the files alone (no browser): versions and imports, why the scene shows nothing, assets that will not load, removed APIs for the installed release, colour, performance and cleanup — grouped by cause, most urgent first, each with its fix and whether three_fix does it, then numbered next steps. For the page itself use three_check afterwards. 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_doctor"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoProject folder, or a file or folder in it (relative to the server's folder; default: the project).
threeNoPath to a three package folder, when it is not in node_modules above the project.
detailNobrief (capped, short) or full (everything); default brief

Output Schema

NameRequiredDescriptionDefault
okYes
nextYes
scoreYes
threeYes
errorsYes
findingsYes
warningsYes
truncatedYes

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 cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the extra 'Read-only' is redundant. The genuinely additive disclosure is 'From the files alone (no browser)' — a static-analysis constraint an agent could not infer — and the output shape (grouped by cause, most urgent first, numbered next steps). It does not discuss cost, limits, or what happens on a missing/invalid path.

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 when-to-use clause, then scope, then output shape, then hand-off — a sensible order with no filler sentences. The middle enumeration is a long em-dash run-on that is dense but each item is informative, so it earns its space despite being harder to scan.

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?

Three optional parameters are fully described in the schema, an output schema exists so return format need not be re-explained, and annotations cover safety. The description supplies exactly the missing pieces — static-only scope, severity ordering, and sibling routing — leaving nothing an agent needs to call it correctly.

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 path, three and detail are already fully documented including the brief/full default. The description adds no syntax, scoping or defaulting detail beyond the schema; 'from the files alone' only loosely hints at the path parameter. Baseline 3 applies when the schema carries parameter meaning.

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 role: static diagnosis of a three.js project from files alone, covering versions/imports, blank scenes, assets, removed APIs, colour, performance and cleanup. It also distinguishes itself from siblings by naming three_fix (as the thing that may perform the fix) and three_check (for the live page), so an agent can place it without opening a schema.

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

Usage Guidelines5/5

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

Gives explicit triggering conditions — 'Start here in a three.js project you do not know' and 'when something is broken and you do not know where to begin' — plus a routing rule to three_check for page-level checks afterwards. It also tells the agent the report will indicate whether three_fix handles each item, which is direct hand-off guidance.

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