Skip to main content
Glama

Lessons from real three.js projects

three_lessons

Find cause-and-fix lessons for three.js and react-three-fiber errors using console messages, review rules, topics, or search terms; record whether a lesson helped.

Instructions

Lessons from real three.js and react-three-fiber projects: symptom, cause, fix and how to test it. Pass error with a console or build message to get the lessons that explain it; rule with a review rule id for why it matters; query with words ('textures washed out', 'shadow cut off', 'model invisible'); topic to list one topic; id for one lesson in full. With id and verdict (helped or wrong) it records whether the lesson fit, which ranks lessons on this machine. Lessons you kept with three_lesson_add are included.

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

Input Schema

NameRequiredDescriptionDefault
idNo
ruleNoa review rule id
errorNoa message as it was printed
limitNo
queryNo
topicNo
verdictNowith id: did the lesson fit?

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4/5.0
Behavior4/5

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

Annotations declare readOnlyHint=false, and the description explains why: `id` plus `verdict` records whether the lesson fit and 'ranks lessons on this machine', i.e. a persistent local mutation. It also discloses the data source (locally kept lessons from three_lesson_add). It does not mention rate limits, response size, or ordering of results, so it lands at 4 rather than 5.

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 definition is a single dense but front-loaded paragraph that leads with what a lesson is, then walks each parameter mode in sequence. Every clause carries routing information; nothing is decorative. The semicolon-chained style is terse enough to be slightly harder to scan than a bulleted form, which keeps it from a 5.

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 seven optional parameters, no output schema, and mixed read/write behavior, the description does the necessary work: it sketches the return shape (symptom, cause, fix, test) and explains the ranking side effect. What is absent is what an empty result looks like and how `limit` interacts with `topic` listings, minor gaps for this complexity level.

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 only 43%, but the description compensates by assigning meaning to six of seven parameters (error, rule, query, topic, id, verdict), including what `verdict` accepts and that it only applies with `id`. Only `limit` is left to the schema's min/max, and the enum-constrained `topic` values are not illustrated. Strong compensation overall.

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?

The description states a specific resource (lessons drawn from real three.js/react-three-fiber projects) and what each lesson contains: symptom, cause, fix, and how to test it. It also names the companion write tool (three_lesson_add) whose entries are included, which helps separate read access from authoring. It does not explicitly contrast itself with adjacent siblings like three_rules or three_explain, so it stops 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?

Usage is spelled out per mode: `error` for console/build messages, `rule` for review-rule rationale, `query` for free-text symptoms, `topic` for listing, `id` for one lesson in full, and `id`+`verdict` to record fit. The three quoted query examples ('textures washed out', 'shadow cut off', 'model invisible') make the intended query style concrete. Missing is any explicit guidance on when to prefer this over related siblings or which combinations are invalid.

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