Skip to main content
Glama

Keep a lesson learned here

godot_lesson_add
Idempotent

Store a project lesson learned so future sessions reuse the fix when the same Godot message or question returns; add symptom, cause, error, and test to keep it findable.

Instructions

Keep a lesson learned in this project, so the next session knows it: when the same Godot message or question comes back, godot_check and godot_lessons show your fix. Write it in general words: title in one line, fix what to do; add symptom, cause, error (the Godot message as printed), topic, tags, rules and test when you can. Project names, paths, links, e-mail addresses, codes, keys and source code are replaced before anything is stored; a lesson that is mostly names is refused with what to change. The same title again updates that lesson. It writes only to the local learning file and is never sent. Add one whenever a fix took more than one try, not for what a review rule already reports. Returns the stored lesson and what was replaced; an error when it is refused or learning is off.

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": "godot_lesson_add"
  }
}

Input Schema

NameRequiredDescriptionDefault
fixYeswhat to do instead
tagsNowords to find it by
testNohow to test it
causeNowhy, in Godot terms
errorNothe Godot message it explains, as printed
rulesNoreview or model rule ids it belongs to
titleYesthe lesson in one line, e.g. 'A body placed on a moving deck must start at the deck speed'
topicNodefault gdscript
symptomNowhat went wrong, as it showed

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.2

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only cover the safety/idempotency profile; the description supplies what they cannot: which content gets redacted before storage (names, paths, links, e-mails, codes, keys, source), the refusal condition and that the refusal names what to change, that a repeated title updates rather than duplicates, that the write is local-only and never transmitted, and what is returned. It is consistent with idempotentHint=true and the non-read-only, non-destructive hints.

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?

Purpose and payoff come first, then field guidance, then storage/refusal semantics, then trigger conditions — a sensible order with no filler sentences. It is dense in a single block, and the trigger advice arriving in the final sentence would read better earlier, but nothing is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Nine parameters and no output schema, yet the description covers returns ('the stored lesson and what was replaced'), failure modes ('an error when it is refused or learning is off'), mutation semantics, and privacy handling. Nothing an agent needs to invoke this correctly or interpret the result is left out.

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 100%, so the baseline is 3; the description adds real guidance on top by prescribing the writing register (general words), the shape of title ('in one line') and fix ('what to do'), and a priority ordering for the optional fields ('add ... when you can'), with the specific note that error must be the Godot message as printed. It doesn't add syntax or format detail for tags/rules beyond their caps.

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?

It states a concrete verb and resource ('Keep a lesson learned in this project') and immediately situates it in the workflow: consumed back through godot_check and godot_lessons when the same message returns. That distinguishes it from the read-side sibling godot_lessons without the agent needing to compare schemas.

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?

Gives an explicit positive trigger ('whenever a fix took more than one try') and an explicit exclusion ('not for what a review rule already reports'), plus the downstream condition under which the entry pays off. Few definitions route this cleanly.

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