Skip to main content
Glama

Build and check what will be deployed

three_build

Build your project and audit the output for bundled three.js size, missing or miscased assets, sub-path URL breaks and Draco/KTX2 decoders, then headless-load the page before you deploy.

Instructions

Run the project's own build script (npm/pnpm/yarn/bun run build; this runs the project's code), then check the output folder: how many copies of three are bundled and its size, assets the bundle or a .gltf refers to that are missing or differ in case, root-absolute URLs that break under a sub-path host such as GitHub Pages (with the base to set), Draco/KTX2 decoder files, then open the built page headless (served under its base). build: false checks the output that is already there. Use it before you call a page ready to deploy.

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

Input Schema

NameRequiredDescriptionDefault
baseNodeploy base, e.g. "/repo/" for GitHub Pages (default from the config)
pathNoProject folder, or a file or folder in it (relative to the server's folder; default: the project).
buildNofalse: do not build, check the existing output
checkNofalse: skip the headless check of the built page
scriptNopackage.json script (default build)
out_dirNooutput folder (default from the bundler config, else dist, build or out)
timeout_sNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.6/5.0
Behavior3/5

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

Adds real context beyond the annotations: it warns that the tool executes the project's own code and opens the built page headless under its base, which hints at cost and side effects. However, with readOnlyHint=false and no output schema, it still does not say what the run writes to disk beyond the build, what happens on a failed build, or roughly how long the headless pass takes.

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 primary action, then a dense but purposeful checklist where each item maps to a real failure mode. The enumeration makes the sentence long and slightly run-on, but little of it is filler.

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 zero-required-parameter, seven-optional-parameter tool with no output schema, the description conveys the full pipeline (build, static output audit, headless load) and the meaning of the main toggles. Return shape is only implied through the list of things it checks, which is the main remaining gap.

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 86%, so the schema already documents all seven parameters including `build`, `base`, `out_dir`, and `script`. The description only restates `build: false` and echoes `base` for sub-path hosting, adding little semantic depth beyond the structured fields, which fits the baseline of 3.

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 concrete verb+resource chain: run the project's build script, then inspect the output folder for three duplication, bundled size, missing/mis-cased assets, root-absolute URL problems, Draco/KTX2 decoders, and a headless page load. It is unusually specific, but it never names the sibling it overlaps with (e.g. three_check), so an agent cannot fully disambiguate from the name alone.

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 a clear when-to-use line, 'Use it before you call a page ready to deploy', and explains the `build: false` path for checking an existing output. It stops short of explicit exclusions or naming an alternative checker for cases where a build is not wanted.

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