Skip to main content
Glama

Search the three.js API

three_search
Read-onlyIdempotent

Find three.js classes, constants, or members by partial name in the installed version when exact name is unknown, then use the best match for API lookup; optionally search method and property names.

Instructions

Find three.js classes, constants or members by (part of a) name in the installed version, when you do not know the exact name; then call three_api on the best match. members also searches method and property names. Read-only.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "<query>"
    },
    "name": "three_search"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, so the trailing "Read-only." adds nothing. What the description does add beyond structured data is the scope constraint that only the installed three.js version is searched, which matters for expectations about results.

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 purpose and the fallback to three_api are front-loaded and the whole thing is two short sentences. The final "Read-only." is filler that duplicates the annotations and could be dropped.

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 five-parameter search tool with no output schema, the description conveys enough: it implies a ranked list of matches to pick a "best match" from, and it scopes the search to the installed version. Missing detail on result ordering and the `limit` default is minor.

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 only 40% schema description coverage, the description partially compensates: it explains that `members` extends matching to method and property names, and that `query` accepts partial names. `limit` and the fallback `path` behavior are left to the schema, so the gap is only partly closed.

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?

"Find three.js classes, constants or members by (part of a) name" names a specific verb and resource, and "in the installed version" pins the scope. It also implicitly separates itself from three_api, which handles the exact-name lookup.

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?

"when you do not know the exact name" gives the selecting condition, and "then call three_api on the best match" names the sibling and the follow-up step. The agent knows both the entry point and the next hop without opening a schema.

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