Skip to main content
Glama

Check the assets the code loads

three_assets
Read-onlyIdempotent

Resolve and validate three.js asset paths against dev-server/static-host rules to catch 404s, case-only breaks, missing decoders, oversized textures, and unused large files before deployment.

Instructions

Resolve every model, texture, HDR/EXR, KTX2, sound, font and video path in the code like the dev server and a static host do (public/ served at /, the page's folder, the source file's folder, loader.setPath): missing files (a 404 that GLTFLoader reports as "Unexpected token '<'"), paths that only work on a case-insensitive disk (macOS/Windows) and break on Linux hosts, Draco/KTX2 decoder folders that are not there, glTF files using Draco, meshopt or KTX2 when the code never sets that decoder up, textures above 4096, big uncompressed models, and large asset files nothing refers to. 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_assets"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoProject folder, or a file or folder in it (relative to the server's folder; default: the project).
limitNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent and closed-world, so the safety bar is low; the description still adds real substance by spelling out the resolution order (public/ at /, page folder, source folder, loader.setPath), the concrete symptom it maps ('Unexpected token "<"' from GLTFLoader), and the specific categories it flags including orphaned assets. It stops short of describing how findings are reported or whether it scans the whole project or only files reachable from entry points.

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?

The check inventory is dense but every clause names a distinct failure mode, and the tool's action and scope come first. The main cost is that the whole body is effectively one run-on sentence with a long parenthetical, which is heavy to parse though not padded.

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?

With only two optional parameters, no output schema and full annotation coverage, the description carries most of what an agent needs to decide to call it and what it will find. The remaining gaps are the undocumented `limit` and the absence of any hint about the shape of the result, which matters given no output schema exists.

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 coverage is only 50%: `path` is documented in the schema, but `limit` (1-200) appears only in the schema structure with no meaning attached anywhere. The description's resolution rules implicitly clarify what `path` is interpreted relative to, but nothing explains whether `limit` caps findings, files scanned, or output size, leaving a real gap.

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?

The description opens with a specific verb and resource ('Resolve every model, texture, HDR/EXR, KTX2, sound, font and video path in the code') and then enumerates the exact defect classes it reports, so an agent knows this is an asset-path resolution linter rather than a general scanner or build tool. The scope is narrow enough to separate it from broad siblings even without naming them.

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

Usage Guidelines3/5

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

Usage is implied rather than stated: the checks listed (404s, case-sensitivity breakage, missing decoders, oversized textures) suggest running it before deploying to a static host, but there is no explicit when-to-use, when-not-to-use, or named alternative such as a general scan or build tool. The agent must infer the trigger from the failure list.

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