Skip to main content
Glama

record_learning

Record lessons from bugs, debugging, and mistakes to prevent recurring issues. Capture problem, root cause, solution, and prevention guidelines.

Instructions

삽질·버그·실수에서 얻은 교훈을 기록한다. 같은 문제를 다시 밟지 않기 위한 핵심 도구.

언제 쓰나: 원인 파악에 30분 이상 쓴 버그, 문서와 다르게 동작한 것, 함정이 있는 설정, 재발 방지책이 있는 모든 문제. title에는 증상을 검색될 형태로 (예: "pgvector HNSW가 2000차원 초과에서 인덱스 생성 실패"). prevention에는 다음 사람이 지켜야 할 구체적 수칙을 적어라. code_refs: 관련 코드 경로 목록 — 그 파일이 바뀌면 이 교훈이 재검증 대상으로 표시된다. project: 특정 프로젝트/저장소에서만 성립하는 교훈이면 반드시 프로젝트 이름을 넣어라 (미지정 = 팀 공용). 다른 프로젝트의 유사 증상과 섞이는 오해를 막는다. 이름은 list_sources의 projects 목록 기준 — 저장소 이름은 소유 프로젝트로 자동 교정되고, 등록되지 않은 이름은 버려진다 (응답의 project/project_hint 확인).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tagsNo
titleYes
authorNo
problemYes
projectNo
solutionNo
code_refsNo
preventionNo
root_causeNo
supersedesNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior4/5

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

With no annotations provided, the description carries the burden. It discloses key behavioral details such as automatic correction of repository names to owning projects, discarding unregistered names, and the presence of project/project_hint in the response, but it does not explicitly state that the operation creates a persistent record or mention any side effects beyond writing.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-organized into purpose and usage/field guidance sections, uses concise bullet-like phrasing, and includes an example title, making it efficient and easy to follow without unnecessary verbosity.

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?

Given that an output schema exists, the description doesn't need to detail return values, but it does mention response hints (project/project_hint) and references list_sources for project validation, providing sufficient context for an agent to invoke the tool correctly and interpret results.

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?

The schema has zero descriptions, so the description must compensate. It covers important parameters (title, prevention, code_refs, project) with concrete examples and rules, while less complex parameters (author, solution, tags, etc.) are self-explanatory from their names, providing adequate overall semantic coverage.

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 description clearly states that the tool records lessons learned from struggles, bugs, and mistakes to prevent repeating the same issues, which is a specific and distinct purpose from sibling tools like record_note or record_decision.

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?

It provides explicit when-to-use criteria (e.g., bugs that took over 30 minutes, behavior differing from docs, pitfalls) and detailed field-level guidance including title format, prevention rules, code_refs semantics, and project name validation against list_sources.

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