Skip to main content
Glama

Record a learning

record_learning

Stores reusable OpenSCAD lessons on modeling techniques, print rules, and user preferences, enabling future designs and guidelines to reuse or refine them.

Instructions

OpenSCAD: saves a short lesson for later designs in the workspace (.openscad-mcp/learnings.json): a technique that failed or worked, a printing rule, or a preference of the user. get_guidelines returns every learning together with the guidelines. replaces swaps an existing learning for a refined one. At most 100 learnings; an identical text is refused.

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": {
      "category": "<category>",
      "text": "<text>",
      "reason": "<reason>"
    },
    "name": "record_learning"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesThe lesson as one general sentence that holds for later parts, e.g. "Round every outer edge, also the top and bottom of extrusions; screw holes stay sharp."
designNoThe design it came from.
reasonYesWhat led to it, e.g. "User asked for all edges rounded on broom-holder".
categoryYes"technique": how to model something in OpenSCAD; "printing": what prints well or badly; "preference": what the user wants in their parts.
replacesNoId of a learning this one refines; that one is forgotten.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations only say readOnly=false, destructive=false, idempotent=false; the description adds real behavioral context: the file it writes, a 100-learning cap, that an identical text is refused, and that `replaces` causes the prior learning to be forgotten. That last point is a bounded deletion side effect worth knowing even though destructiveHint is false — minor tension, but not a clear contradiction since the annotation is about broad destructive updates.

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?

Three dense sentences, front-loaded with purpose before constraints and the replace semantics. Nothing is padding, though the opening sentence is long enough that the storage path and content taxonomy compete for attention; a slightly tighter split would read better.

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 write tool with no output schema and fully covered parameters, the description covers the essential unknowns: where data lands, capacity limits, duplicate handling, and replacement semantics. It stops short of saying what the call returns (e.g., a new learning id), which would help an agent that wants to subsequently refine or forget the entry.

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 description coverage is 100%, so category, text, reason, design and replaces are already fully documented, including the enum meaning and the 300-char sentence rule. The description adds only the aggregate cap and duplicate-refusal behavior and restates what `replaces` does, so baseline 3 applies.

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 first sentence names a specific verb (saves) and resource (a short lesson), scopes it to 'later designs in the workspace', gives the storage artifact (.openscad-mcp/learnings.json), and enumerates the kinds of content accepted (failed/worked technique, printing rule, user preference). It also implicitly separates itself from the read-side sibling by noting that get_guidelines returns learnings, so an agent can tell writing from reading.

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?

It states the triggering context clearly — capture a lesson so it applies to later designs — and the read counterpart (get_guidelines) is named, which gives the agent the alternative path. Hard limits (max 100, duplicate text refused) further shape when the call will succeed. What's missing is explicit routing against forget_learning/list_learnings, i.e., when to refine or delete instead.

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