Skip to main content
Glama

kuma_memory

Record and search persistent coding memory to capture gotchas, decisions, architecture flows, research, and test outcomes for future sessions.

Instructions

Persistent knowledge. Record what matters, skip what doesn't. This is what saves time in future sessions. Don't record what grep/glob answers faster (functions, imports, types, components).

CORE ACTIONS (use these): gotcha (IMMEDIATELY when you find a bug/quirk), decision (when choosing between options), arch_flow (after tracing a complete flow, max 5 core files), research_save (after exploring an area), search (quick lookup of memory + knowledge graph), gotcha_resolve (archive fixed bugs), test_outcome (record changed files + failed tests to train test selection).

Input Schema

NameRequiredDescriptionDefault
idNoGotcha ID for resolution or deprecation
limitNoResult limit for search
queryNoSearch query for search action
scopeNoFile path for gotcha — or scope for research_save/search
titleNoDecision title (optional if content/target provided)
actionYesgotcha=record bug/quirk, decision=ADR, arch_flow=record architecture flow, research_save=save findings, search=quick memory+graph lookup, gotcha_resolve=archive fixed bug, test_outcome=record test results for predictive selection
recordNoJSON record string for research_save
statusNoGotcha severity (low|medium|high|critical) or status (resolved|deprecated)
targetNoTarget file, gotcha ID, or component
contentNoContent/notes for research_save / gotcha description / arch_flow record
contextNoDecision context
outcomeNoDecision outcome (default: implemented)
severityNoGotcha severity (low|medium|high|critical)
rationaleNoDecision rationale (optional if content provided)
confidenceNoConfidence for research_save (0-1)
descriptionNoGotcha workaround / rationale
trigger_commandNoGotcha trigger: shell command that hits this gotcha

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.4.25

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are provided, so the description must carry the full behavioral burden. It discloses that the store is persistent and saves time in future sessions, but it omits critical details such as mutation semantics, permissions, side effects, or write safety.

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

Conciseness3/5

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

The description is moderately concise but includes vague, motivational phrases ('Record what matters, skip what doesn't', 'This is what saves time in future sessions') that do not add actionable information. The action list is structured with a header, but the overall text is not as front-loaded as it could be.

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?

Given the tool's complexity (7 actions, 17 parameters, no output schema, no annotations), the description adequately covers action usage but leaves significant gaps in behavioral context and return value expectations. It is sufficient to guide action selection but not to fully understand the tool's operation.

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?

The input schema has 100% description coverage, so the baseline is 3. The description adds usage triggers for each action but does not clarify parameter formats or syntax beyond what the schema already provides.

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 defines the tool as a persistent knowledge store and enumerates its core actions, making the tool's purpose reasonably clear. However, it does not differentiate this tool from its siblings (e.g., kuma_context, kuma_safety), so an agent has no explicit guidance on when to choose this tool over others.

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?

The description provides explicit triggers for each action (e.g., 'gotcha' immediately when you find a bug/quirk, 'decision' when choosing between options) and a when-not rule for what to skip ('Don't record what grep/glob answers faster'). It does not address when to use this tool versus sibling tools, but the action-level guidance is strong.

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