Skip to main content
Glama

Type-check a TypeScript three.js project

three_types
Read-onlyIdempotent

Runs tsc --noEmit to surface three.js type errors and resolve them against the installed release, including missing members, export paths, removed APIs, and @types mismatches.

Instructions

Run the project's own TypeScript (tsc --noEmit) and return the type errors about three.js, each with the answer from the installed release: the member that does exist (did you mean), where a name is really exported from ('three' or 'three/addons/...'), removed paths, and a note when @types/three is a different release than three. all: true lists the other type errors too. Needs typescript and a tsconfig.json in the project; for JavaScript use three_review. Read-only (tsc runs with --noEmit).

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

Input Schema

NameRequiredDescriptionDefault
allNo
pathNoProject folder, or a file or folder in it (relative to the server's folder; default: the project).
limitNo
threeNoPath to a three package folder, when it is not in node_modules above the project.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.3/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 the description reinforces that with the concrete reason (`--noEmit`), so credit is for the substantive additions: what each error record contains (suggested existing member, real export path, removed paths, @types/three release mismatch) and the external dependency requirement. It does not disclose result volume or how `limit` truncates output, which is the remaining behavioral gap.

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 what it does and what it returns, then prerequisites, alternative, and safety note in a logical order with no filler sentences. It is dense to the point of being a single semicolon-chained block, which slightly hurts scannability.

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?

For a four-parameter, no-output-schema tool the description carries the return-value burden well, listing the kinds of error annotations returned. The main omission is `limit` behavior and any note on result volume, otherwise the agent has enough 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?

With schema coverage at 50%, the description compensates for `all: true` by explaining that it also lists non-three type errors, which the schema does not say. However, `limit` is undocumented in both schema and description (no indication of truncation or ordering), so the compensation is partial.

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?

Names a specific verb and mechanism ('Run the project's own TypeScript (`tsc --noEmit`)') plus the precise result scope (type errors about three.js only). It also distinguishes itself from the sibling three_review by stating that JavaScript projects should use that tool instead.

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 an explicit precondition ('Needs typescript and a tsconfig.json in the project') and an explicit alternative with the condition that selects it ('for JavaScript use three_review'). An agent can decide correct routing without inspecting sibling schemas.

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