Skip to main content
Glama

save_lesson

Records an engineering lesson in a project knowledge file and promotes high-confidence verified lessons to a global knowledge base for reuse.

Instructions

Record an engineering lesson in /.assetrag/knowledge.md; high-confidence verified ones are promoted globally.

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>",
      "category": "<category>",
      "solution": "<solution>"
    },
    "name": "save_lesson"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleYes
categoryYes
evidenceNo
solutionYes
symptomsNo
versionsNo
frameworkNo
confidenceNomedium
preventionNo
root_causeNo
limitationsNo
project_dirNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose two useful behaviors: the write target is a project-local knowledge.md, and qualifying entries are promoted to a global scope. It does not say whether the file is created if absent, how duplicate lessons are handled, or whether promotion is automatic or requires verification, leaving key mutation traits unstated.

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?

A single compact sentence with the resource and destination front-loaded and no filler. The term "verified" is left undefined, which costs a little clarity but does not add bloat.

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

Completeness3/5

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

For a 12-parameter mutation tool with no annotations and no output schema, the description is thin, giving no field-level guidance and no return-value expectations. It does cover the essential what-and-where, so an agent can form the call, but filling in 12 undocumented parameters correctly is left mostly to guesswork.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 12 parameters, so the description must compensate and largely does not. The phrase "high-confidence verified" is the only parameter-relevant hint, loosely mapping to the confidence field, while required fields like category and solution and optional fields like root_cause, prevention, and limitations get no semantic clarification.

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 uses a specific verb ("Record") and resource ("engineering lesson") and names the exact destination file, <project>/.assetrag/knowledge.md, so the agent knows this is a write that persists knowledge. It does not explicitly distinguish itself from the sibling record_failure (lesson vs. failure), so the differentiation is only implicit.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit when-to-use or when-not-to-use guidance, and the obvious alternative, record_failure, is never mentioned. The only usage signal is the embedded hint that verified, high-confidence lessons are promoted globally, which tells the agent something about intent but not how to choose between lesson and failure recording.

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