Skip to main content
Glama

Keep a lesson learned here

three_lesson_add

Save a lesson from a fixed three.js problem so it resurfaces the next time the same error or question appears. Record a title and fix to build reusable troubleshooting memory.

Instructions

Keep a lesson you learned while fixing a three.js problem, so it comes back the next time the same message or question shows up (in three_lessons, three_explain, three_check and the review). Write it in general words: title (the lesson in one line) and fix are required; symptom, cause, test, topic, tags, rules, and error with the exact console or build message. Names, paths, e-mail addresses, links and code are taken out before it is stored, and the file never leaves this machine ($THREESMITH_HOME). The same title updates the lesson.

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": {
      "title": "<title>",
      "fix": "<fix>"
    },
    "name": "three_lesson_add"
  }
}

Input Schema

NameRequiredDescriptionDefault
fixYes
pathNoProject folder, or a file or folder in it (relative to the server's folder; default: the project).
tagsNo
testNo
causeNo
errorNo
rulesNo
titleYes
topicNo
symptomNo

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?

Goes well beyond the annotations: it discloses that names, paths, e-mail addresses, links and code are stripped before storage, that the file stays local at $THREESMITH_HOME, and that writes are keyed by title ('the same title updates the lesson'). That upsert behavior sits in mild tension with idempotentHint=false, the annotations do not tell the agent about sanitization or the local-only storage at all.

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-loads the core purpose, then the required fields, then the sanitization/storage caveat, then upsert semantics — a logical order with no filler sentences. It is a dense paragraph and the parenthetical tool list interrupts the main clause, but nothing is wasted.

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 10-parameter, no-output-schema write tool with near-zero schema coverage, the description covers purpose, required fields, sanitization, storage location and update behavior. Missing pieces are the `path` parameter and any hint of what a successful call returns, which prevents a 5.

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 description coverage is only 10%, so the description must carry the parameters and it mostly does: title (the lesson in one line) and fix flagged as required, plus symptom, cause, test, topic, tags, rules, and error (exact console or build message). The gap is `path`, which is never mentioned, and there is no guidance on tag/rule array format or the topic enum values.

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?

Specific verb and resource: 'keep a lesson you learned while fixing a three.js problem', with the concrete payoff ('comes back the next time the same message or question shows up'). It also names the sibling tools where the lesson resurfaces (three_lessons, three_explain, three_check), so the agent can distinguish create-a-lesson from read-a-lesson without opening schemas.

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?

Clear context for use — capture a lesson during a three.js fix so it is retrievable later — and it names the downstream consumers. There is no explicit 'don't use this for X' or pointer to an alternative tool, so it falls short of the top band, but the when-to-use trigger is unambiguous.

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