Skip to main content
Glama

Review three.js code

three_review

Review three.js code against the installed release to score it and flag removed APIs, nonexistent symbols, blank renders, per-frame allocations, and resize/dispose issues before saving.

Instructions

Scored static review (0-100) of the three.js code, pinned to the installed release: removed or renamed APIs, symbols that do not exist, code that renders nothing (no lights, shadows off, renderer not attached, never rendered), per-frame allocations, resize and dispose, colour management. One line per finding, file:line severity [rule] message Fix: ..., and the same as JSON. code + file reviews code before you save it. only_new: true in a fix loop: new findings in full, the ones you saw as a short line, and how many are fixed. files lists only findings in those files. Run it after every change and fix the errors first. It writes only its memory for only_new (.threesmith/review-last.json).

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

Input Schema

NameRequiredDescriptionDefault
codeNounsaved source to review in place of `file` on disk
fileNopath (relative to path) that `code` belongs to; required with code
pathNoProject folder, or a file or folder in it (relative to the server's folder; default: the project).
filesNoonly show findings in these files (relative paths)
limitNo
threeNoPath to a three package folder, when it is not in node_modules above the project.
detailNobrief (capped, short) or full (everything); default brief
targetNosame as path (older name)
disableNorule ids to skip
only_newNoshow only what changed since the last review (saves tokens in a fix loop)

Output Schema

NameRequiredDescriptionDefault
okYes
gradeYes
scoreYes
threeYes
errorsYes
findingsYes
warningsYes
truncatedYes
categoriesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.3/5.0
Behavior5/5

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

With readOnlyHint=false, the description carries the burden of explaining the write, and it does so precisely: it writes only its memory file for only_new, at a named path (.threesmith/review-last.json). It also discloses that the review is pinned to the installed release and describes the exact output line format plus its JSON equivalent.

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 purpose and scoring range, then checks, then output format, then the usage scenarios. Dense but mostly earned; the parameter discussion in the middle reads as a compressed run-on and mixes workflow advice with parameter semantics, which slightly hurts scanability.

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?

An output schema exists, so return format is handled, and the description still adds the human-readable line format and the side-effect location. For a 10-parameter tool it covers purpose, timing, side effects, and the non-obvious parameters well enough that an agent can call it without opening anything else.

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 90%, so the baseline is 3; the description earns more by explaining the code+file pairing, that `files` narrows to findings in those files, and the precise semantics of `only_new` (new findings in full, previously seen as a short line, plus a fixed count). It does not explain `limit`, `detail`, `disable`, `three`, or `target` beyond the schema.

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?

States a specific verb and resource ('Scored static review (0-100) of the three.js code') and enumerates the check categories (removed APIs, dead symbols, non-rendering code, per-frame allocations, resize/dispose, colour management), which lets an agent predict findings. It does not name a sibling alternative, so it falls short of a 5.

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 concrete timing guidance ('Run it after every change and fix the errors first') and a workflow condition ('`only_new: true` in a fix loop', '`code` + `file` reviews code before you save it'). It stops short of naming which sibling to use instead for API or rule lookups, so no explicit alternatives are offered.

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