Skip to main content
Glama

Memory MCP

A Model Context Protocol (MCP) server that gives AI coding agents persistent, evolving knowledge about a codebase. Instead of starting cold every session, agents can store and retrieve observations about architecture, conventions, gotchas, and recent work context.

Tools

Tool

Description

memory_context

Session start AND pre-task lookup. Call with no args for user + preferences + stale nudges; call with context for task-specific knowledge

memory_query

Structured search with brief/standard/full detail levels and AND/OR/NOT filter syntax. Scope defaults to "*" (all topics)

memory_store

Store a knowledge entry with dedup detection, preference surfacing, lobe auto-detection, and a review-required gate for likely-ephemeral content

memory_correct

Correct, update, or delete an existing entry (suggests storing as preference)

memory_bootstrap

First-use scan to seed knowledge from repo structure, README, and build files

Hidden tools (still callable, not in the catalog — agents learn about them from hints/errors): memory_list_lobes (lobe paths and stats), memory_stats (entry counts, freshness, storage), memory_diagnose (server health, crash history, recovery steps)

Related MCP server: Hokmah MCP Server

Knowledge Topics

Topic

Purpose

Global?

Expires?

Default Trust

user

Personal info (name, role, communication style)

Yes

Never

user

preferences

Corrections, opinions, coding rules

Yes

Never

user

gotchas

Pitfalls and known issues

No

Never

user

architecture

System design, patterns, module structure

No

30 days

agent-inferred

conventions

Code style, naming, patterns

No

30 days

agent-inferred

modules/<name>

Per-module knowledge

No

30 days

agent-inferred

recent-work

Current task context (branch-scoped)

No

30 days

agent-inferred

Global topics (user, preferences) are stored in a shared global store at ~/.memory-mcp/global/ and are accessible from all lobes. This means your identity and coding preferences follow you across every repository without duplication.

Smart Surfacing

  • Dedup detection: When you store an entry, the response shows similar existing entries in the same topic (>35% keyword overlap) with consolidation instructions

  • Preference surfacing: Storing a non-preference entry shows relevant preferences that might conflict

  • Ephemeral review gate: Likely-ephemeral content is blocked before persistence by default. Re-run memory_store(..., durabilityDecision: "store-anyway") only when you intentionally want to keep it.

  • Piggyback hints: memory_correct suggests storing corrections as reusable preferences

  • memory_context: Describe your task in natural language and get ranked results across all topics with topic-based boosting (preferences 1.8x, gotchas 1.5x)

Smart Filter Syntax

memory_query supports a filter mini-language for precise searches:

Syntax

Meaning

Example

A B

AND (both required)

reducer sealed

A|B

OR (either matches)

MVI|MVVM

-A

NOT (exclude)

-deprecated

combined

Mix freely

kotlin sealed|swift protocol -deprecated

Filters use stemmed matching, so reducers matches reducer and exceptions matches exception.

Quick Start

# Install dependencies
npm install

# Build
npm run build

# Run tests
npm test

Configuration

Create a memory-config.json file next to the memory MCP server:

{
  "lobes": {
    "workspace-mcp": {
      "root": "$HOME/git/personal/workspace-mcp",
      "budgetMB": 2
    },
    "workrail": {
      "root": "$HOME/git/personal/workrail",
      "budgetMB": 2
    }
  }
}

Note: memoryDir is optional. When omitted, storage auto-detects to .git/memory/ for git repos.

What's a "lobe"? Each repository gets its own memory lobe -- a dedicated knowledge scope. Think of it like brain regions: the "workrail lobe" stores knowledge about workrail, the "workspace-mcp lobe" stores knowledge about workspace-mcp.

Benefits:

  • Portable ($HOME and ~ expansion works across machines)

  • Discoverable (use memory_list_lobes to see what's configured)

  • Easy to extend (just add a new lobe entry)

Environment Variables (Fallback)

If no memory-config.json is found, the server falls back to environment variables:

Variable

Default

Description

MEMORY_MCP_WORKSPACES

--

JSON mapping workspace names to repo paths (multi-repo mode)

MEMORY_MCP_REPO_ROOT

process.cwd()

Fallback: single-repo path (if WORKSPACES not set)

MEMORY_MCP_DIR

(auto-detect)

Override storage dir (relative to repo root, or absolute). Disables git-native auto-detection.

MEMORY_MCP_BUDGET

2097152 (2MB)

Storage budget per workspace in bytes

Adding a New Lobe

  1. Edit memory-config.json (create if it doesn't exist)

  2. Add lobe entry:

    {
    "my-project": {
      "root": "$HOME/git/my-project",
      "budgetMB": 2
    }
    }
  3. Restart the memory MCP server

  4. Verify: Use memory_list_lobes to confirm it loaded

The agent will see the new lobe in tool descriptions and can immediately use it with memory_store(lobe: "my-project", ...).

MCP Client Registration

With memory-config.json (recommended):

{
  "mcpServers": {
    "memory": {
      "command": "node",
      "args": ["/path/to/memory-mcp/dist/index.js"]
    }
  }
}

The server reads memory-config.json automatically -- no env vars needed.

Environment Variable Mode

{
  "mcpServers": {
    "memory": {
      "command": "node",
      "args": ["/path/to/memory-mcp/dist/index.js"],
      "env": {
        "MEMORY_MCP_WORKSPACES": "{\"android\":\"/path/to/android\",\"ios\":\"/path/to/ios\"}"
      }
    }
  }
}

Storage Location

Knowledge is stored as human-readable Markdown files -- one file per entry. The storage location is auto-detected with the following priority:

  1. Explicit memoryDir config -- if set in memory-config.json or MEMORY_MCP_DIR, uses that path

  2. Git-native (default) -- <git-common-dir>/memory/ using git rev-parse --git-common-dir. This ensures:

    • Invisible to git -- .git/ contents are never tracked, no .gitignore needed

    • Shared across worktrees -- all worktrees of the same repo share one memory store

    • Worktree/submodule safe -- resolves to the common .git/ directory regardless

  3. Central fallback -- ~/.memory-mcp/<lobe-name>/ for non-git directories

Use memory_stats or memory_list_lobes to see where memory is stored for each lobe.

File Structure

Each entry gets its own file. Recent-work entries are scoped by branch.

.git/memory/
  architecture/
    arch-e8d4f012.md              # One entry per file
  conventions/
    conv-a1b2c3d4.md
  gotchas/
    gotcha-7k3m9p2q.md
  recent-work/
    main/                          # Branch-scoped
      recent-f5e6d7c8.md
    feature-messaging-refactor/    # Sanitized branch name
      recent-9i0j1k2l.md
  modules/
    messaging/
      mod-4d5e6f7g.md

~/.memory-mcp/global/              # Global store (shared across all lobes)
  user/
    user-3f7a2b1c.md              # Personal info
  preferences/
    pref-5c9b7e3d.md              # Coding opinions & corrections

Concurrency Safety

Each entry is its own file with a random hex ID. Two MCP processes (e.g., Firebender + Cursor) writing different entries to the same repo never conflict -- they write to different files. The store reloads from disk before every read to pick up changes from other processes.

Branch-Scoped Recent Work

Recent-work entries are automatically tagged with the current git branch and stored in a branch-named subdirectory. memory_query filters recent-work to the current branch by default. Use branch: "*" to see recent-work from all branches.

Entry Format

# Build System & Language
- **id**: arch-3f7a2b1c
- **topic**: architecture
- **confidence**: 0.70
- **trust**: agent-inferred
- **created**: 2026-02-18T12:00:00.000Z
- **lastAccessed**: 2026-02-18T12:00:00.000Z

Detected: Node.js/TypeScript project (npm)

Trust Levels

Level

Confidence

Meaning

user

1.0

Human-provided or human-corrected knowledge

agent-confirmed

0.85

Agent-observed and verified against code

agent-inferred

0.70

Agent-observed, not yet verified

Resilience

The server uses a degradation ladder to stay useful even when things go wrong:

  • Running -- all lobes healthy, full functionality

  • Degraded -- some lobes failed to initialize but healthy ones continue working. Failed lobes report specific recovery steps via memory_diagnose.

  • Safe Mode -- all lobes failed. Only memory_diagnose and memory_list_lobes work, giving you enough information to fix the problem.

Crash journaling: On uncaught exceptions, the server writes a structured crash report to ~/.memory-mcp/crashes/ before exiting. The next startup surfaces the crash in memory_context() (briefing mode) with recovery steps. Use memory_diagnose(showCrashHistory: true) to see the full history.

Argument Normalization

Agents frequently guess wrong parameter names. The server silently resolves common aliases to avoid wasted round-trips:

Alias

Resolves to

key, name

title

value, body, text

content

query, search

filter

workspace, repo

lobe

Wildcard scope aliases (all, everything, global, project) resolve to *.

Architecture

types.ts          Domain types (discriminated unions, parse functions)
store.ts          MarkdownMemoryStore (CRUD, search, bootstrap, briefing)
text-analyzer.ts  Keyword extraction, stemming, similarity (stateless)
normalize.ts      Argument alias resolution (pure)
formatters.ts     Response formatters for tool handlers (pure)
config.ts         3-tier config loading (file > env > default)
git-service.ts    Git operations boundary (injectable for testing)
crash-journal.ts  Crash report lifecycle (build, write, read, format)
index.ts          MCP server, tool handlers, startup, migration

Design

See ideas/codebase-memory-mcp-design-thinking.md for the full design thinking document with 67 ideas, 5 concept packages, pre-mortem analysis, and test plan.

Available Tools

10 tools
briefA

Start of conversation — call once to load context for a project. Returns stored preferences, gotchas overview, stale entries needing review, and entry counts. Example: {"lobe": "my-project"} Surfaces everything previously saved via learn/gotcha/convention/prefer. Call once at session start. Results stay valid for the entire conversation — no need to re-call.

ParametersJSON Schema
NameRequiredDescriptionDefault
lobeNoMemory lobe name. No lobes configured yet — run memory_bootstrap(lobe: "your-project", root: "/absolute/path/to/repo") first.

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description supplies key behavioral facts: the tool is a one-time load at session start, returns a project-context snapshot including stale entries, and results remain valid for the whole conversation. It doesn't explicitly state read-only semantics or failure modes, but 'load context' implies non-destructive behavior and the cached-results disclosure adds value.

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 sentences carry the essential call timing, return values, example, and validity window. Minor redundancy between 'Start of conversation' and 'Call once at session start' prevents a 5, but it remains tight and well organized.

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 simple one-optional-parameter tool with no output schema, the description covers main return categories, call timing, and validity. However, it doesn't explain behavior when lobe is omitted (required list is empty) or the memory_bootstrap prerequisite beyond the schema property text, leaving a small but meaningful gap.

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 already describes 'lobe' as a memory lobe name and even provides prerequisite bootstrap guidance, so schema coverage is complete. The tool description contributes a concrete example ('lobe': 'my-project') but no additional meaning beyond the schema, matching the baseline of 3.

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 clearly identifies the tool as a session-start context loader with a specific resource ('context for a project') and enumerates the returned content (preferences, gotchas overview, stale entries, counts). It distinguishes itself by covering everything saved via learn/gotcha/convention/prefer, but doesn't explicitly contrast with sibling tools like recall or gotchas.

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 gives explicit timing guidance: 'Call once at session start' and 'no need to re-call,' which tells the agent when to use it. It doesn't name alternatives or exclusions, so it stops short of a 5.

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

conventionA

When you notice a pattern the codebase follows, record it here. For personal style rules, use prefer() instead. Example: {"lobe": "my-project", "observation": "All ViewModels use StateFlow for UI state. LiveData is banned."} Store facts that help future sessions, not notes about this one. Wrong: "Migrated to StateFlow." Right: "All ViewModels use StateFlow." One insight per call. Persists across sessions, surfaces in brief() and recall(). Returns related knowledge. Required params: "lobe", "observation".

ParametersJSON Schema
NameRequiredDescriptionDefault
lobeYesMemory lobe name. No lobes configured yet — run memory_bootstrap(lobe: "your-project", root: "/absolute/path/to/repo") first.
observationYesThe convention. Write naturally — first sentence becomes the title.
durabilityDecisionNoUse "store-anyway" only when re-storing after a review-required response.default

TDQS

A4.5/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so thoroughly. It discloses that data persists across sessions, surfaces in brief() and recall(), returns related knowledge, and should store timeless facts rather than ephemeral notes. This goes well beyond the schema and provides excellent behavioral expectations.

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?

The description is well-structured and front-loaded with the primary instruction. Some redundancy exists between 'Store facts... not notes' and the subsequent wrong/right example, but each sentence earns its place overall. The length is acceptable given the tool's complexity.

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?

Given the lack of annotations and no output schema, the description is quite complete: it covers purpose, usage, persistence, surfacing, and return value. However, it omits any mention of the 'review-required' flow that the schema's durabilityDecision hints at, and it does not elaborate on how the returned 'related knowledge' might be used, leaving a slight gap.

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 the schema already explains all three parameters. The description adds a JSON example and reiterates required params, but does not add significant new meaning beyond the schema. The 'durabilityDecision' parameter, in particular, is not mentioned in the description.

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 the action ('record a pattern the codebase follows') and the resource ('convention' store), and distinguishes itself from the sibling tool 'prefer()' by explicitly noting that personal style rules should use prefer instead. It also differentiates conventions from session notes with a concrete example.

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 explicitly says when to use the tool ('When you notice a pattern the codebase follows') and when not to ('For personal style rules, use prefer() instead'). It further clarifies with wrong/right examples and emphases one insight per call, making the usage context unambiguous.

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

conventionsA

Before writing new code, check how this codebase does things. Retrieves stored conventions, optionally filtered. Example: {"lobe": "my-project", "area": "testing"} or {"lobe": "my-project"} for all. recall() also surfaces conventions. Use this for focused convention lookup, recall() for broader cross-topic search.

ParametersJSON Schema
NameRequiredDescriptionDefault
areaNoOptional keyword filter (e.g. "testing", "naming", "architecture").
lobeNoMemory lobe name. No lobes configured yet — run memory_bootstrap(lobe: "your-project", root: "/absolute/path/to/repo") first.

TDQS

A4.4/5.0
Behavior3/5

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

With no annotations, the description must carry the full burden of behavioral disclosure. It states the tool 'retrieves' conventions and gives filter examples, which implies a read-only operation. However, it does not explicitly state that it is non-destructive, nor does it mention dependence on memory_bootstrap or behavior when no conventions match. Missing explicit side-effect or prerequisite details beyond what's implied.

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 concise, front-loaded with the key purpose, and includes a compact example. It avoids redundancy and every sentence contributes: usage context, retrieval mechanics, example, and alternative tool guidance.

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 simple read tool with two optional params and no output schema, the description covers when, what, and how, plus an alternative. It doesn't detail return values, but schema covers parameter specifics. The main gap is lack of mention of the need for memory_bootstrap (though in schema), but overall adequate for the complexity.

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 description coverage is 100%, so the baseline is 3. The description adds value by showing concrete examples of parameter combinations, clarifying that omitting 'area' returns all conventions for a lobe. This enhances the semantic understanding of how the parameters combine.

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 the tool retrieves stored conventions, with a specific context of use ('Before writing new code'). It distinguishes from recall() by noting this is for focused lookup, which is an explicit alternative. The verb 'Retrieves' and resource 'stored conventions' make the purpose unambiguous.

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?

The description explicitly says when to use ('Before writing new code') and provides an alternative: 'recall() for broader cross-topic search.' This qualifies as explicit when/alternatives, exceeding the minimum requirement.

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

fixA

When a stored entry is wrong or outdated, correct or delete it. IDs appear in brief/recall/gotchas/conventions results. Example: {"id": "gotcha-3f7a", "correction": "Updated text"} to replace, or {"id": "gotcha-3f7a"} to delete. Required param: "id". Pass "correction" to update; omit to delete.

ParametersJSON Schema
NameRequiredDescriptionDefault
idYesEntry ID (e.g. gotcha-3f7a, conv-5c9b, gen-a2d1, pref-8e4f).
lobeNoOptional. Searches all lobes if omitted. Available:
correctionNoNew text to replace the entry content. Omit entirely to delete the entry.

TDQS

A4.4/5.0
Behavior4/5

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

No annotations are provided, so the description carries the burden. It discloses both update (replacement) and deletion behaviors with concrete examples, and clarifies the required 'id' parameter. It doesn't mention permanence of deletion or error handling, but covers the essential operational behavior.

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 three sentences with a clear example, no fluff, and front-loaded purpose. Every sentence earns its place, efficiently conveying purpose, usage, and mechanics.

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 simple 3-parameter mutation tool with no output schema, the description covers purpose, when to use, and how to update/delete. It lacks explicit mention of return values or edge cases like missing IDs, but is sufficient for an agent to invoke correctly.

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 baseline is 3. The description adds value by providing JSON examples and explaining the relationship between 'correction' (update) and omitting it (delete). This gives deeper semantic meaning than the bare schema descriptions.

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 the tool 'correct or delete' a stored entry, using specific verbs and a clear resource. It distinguishes from sibling tools by focusing on modifying existing entries, referencing IDs from retrieval tools like brief/recall/gotchas/conventions.

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 explicitly says when to use: 'When a stored entry is wrong or outdated.' It also mentions that IDs appear in brief/recall/gotchas/conventions results, implying this is used after retrieving entries. It does not explicitly name alternatives, but the context of sibling learning tools makes the distinction clear.

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

gotchaA

When something surprises you or doesn't work as expected, flag it here. Example: {"lobe": "my-project", "observation": "Gradle cache must be cleaned after Tuist changes or builds silently use stale artifacts"} Store facts that help future sessions, not notes about this one. Wrong: "Build failed because of stale cache." Right: "Gradle cache must be cleaned after Tuist changes." One insight per call. Persists across sessions, gets priority in brief() and recall(). Returns related knowledge. Required params: "lobe", "observation".

ParametersJSON Schema
NameRequiredDescriptionDefault
lobeYesMemory lobe name. No lobes configured yet — run memory_bootstrap(lobe: "your-project", root: "/absolute/path/to/repo") first.
observationYesThe gotcha. Write naturally — first sentence becomes the title.
durabilityDecisionNoUse "store-anyway" only when re-storing after a review-required response.default

TDQS

A4.5/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 full burden. It discloses persistence across sessions, priority in brief()/recall(), and that it returns related knowledge. It also enforces 'One insight per call.' This is solid behavioral disclosure, but it doesn't mention potential side effects like duplication or error conditions, which would push it higher.

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 appropriately sized and well-structured. It starts with the core purpose, then gives an example, then clarifies the distinction between facts and notes, then states constraints and behavior. Every sentence adds value, and the structure supports quick scanning.

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?

For a simple write operation with a rich schema and no output schema, the description is complete. It covers purpose, when to use, how to phrase observations, persistence, return behavior, and required parameters. The only optional parameter (durabilityDecision) is fully explained in the schema, so no additional description is needed.

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 baseline is 3. The description adds value beyond schema by providing a full example of lobe and observation, and by giving wrong/right examples for how to phrase the observation. It also explicitly flags the required params, making parameter usage clearer.

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 the tool flags surprising or unexpected issues as 'gotchas' for future sessions. It provides a concrete example and distinguishes itself from siblings like learn, prefer, and conventions by emphasizing the specific use case. The verb+resource combination is specific and unambiguous.

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 explicitly says when to use: 'When something surprises you or doesn't work as expected.' It also gives right/wrong phrasing examples and advises 'Store facts that help future sessions, not notes about this one,' which is a clear guideline. However, it doesn't explicitly name alternatives or exclusion cases, leaving some room for interpretation.

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

gotchasA

Before making changes to an area, check for known pitfalls. Retrieves stored gotchas, optionally filtered. Example: {"lobe": "my-project", "area": "auth"} or {"lobe": "my-project"} for all. brief() already includes a gotchas overview. Use this when you need gotchas for a specific area not covered in the briefing.

ParametersJSON Schema
NameRequiredDescriptionDefault
areaNoOptional keyword filter (e.g. "auth", "build", "navigation").
lobeNoMemory lobe name. No lobes configured yet — run memory_bootstrap(lobe: "your-project", root: "/absolute/path/to/repo") first.

TDQS

A4.4/5.0
Behavior3/5

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

With no annotations provided, the description carries the full burden for behavioral disclosure. It uses the verb 'retrieves' to imply a read-only operation, but does not explicitly state that it has no side effects, nor does it mention prerequisite conditions like needing a configured lobe (which appears only in the schema). It also does not describe what happens when no gotchas are found. Adequate but not comprehensive.

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 composed of two sentences plus an example, front-loaded with the core purpose and immediately followed by usage guidance. Every sentence provides useful information, with no filler or repetition.

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 simple tool with two optional parameters and no output schema, the description adequately covers purpose, usage, and parameter behavior. It could have mentioned the return format or error behavior, but 'retrieves stored gotchas' is sufficient in this context. The relationship to brief and memory_bootstrap is indirectly supported.

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 value by showing example JSON invocations and explaining that omitting 'area' returns all gotchas for the lobe. This clarifies parameter interaction beyond the schema's individual field descriptions.

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 the tool 'Retrieves stored gotchas, optionally filtered' with a specific verb and resource, and includes concrete examples. It also distinguishes from the sibling 'brief' by noting that brief already includes a gotchas overview, clarifying when this tool is specifically needed.

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?

The description provides explicit when-to-use guidance: 'Before making changes to an area, check for known pitfalls' and 'Use this when you need gotchas for a specific area not covered in the briefing.' It also implicitly contrasts with brief as an alternative, giving clear direction on tool selection.

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

learnA

When you understand how something works — architecture, dependencies, module boundaries — store it here. Catch-all for knowledge not covered by gotcha/convention. Example: {"lobe": "my-project", "observation": "Payments module depends on auth for tokens only, no other cross-module dependency"} Store facts that help future sessions, not actions you took or bugs you fixed. Wrong: "Fixed the null pointer in UserService." Right: "UserService.getUser() returns null when session expires — callers must handle this." One insight per call. Persists across sessions. Returns related knowledge. Required params: "lobe", "observation".

ParametersJSON Schema
NameRequiredDescriptionDefault
lobeYesMemory lobe name. No lobes configured yet — run memory_bootstrap(lobe: "your-project", root: "/absolute/path/to/repo") first.
observationYesThe observation. Write naturally — first sentence becomes the title.
durabilityDecisionNoUse "store-anyway" only when re-storing after a review-required response.default

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden. It discloses key behaviors: 'Persists across sessions,' 'Returns related knowledge,' and 'One insight per call.' It does not mention error handling or authorization, but these are minor for a memory-store tool.

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?

The description is well-structured with a clear flow: purpose, example, do/don't guidance, and constraints. It is longer than minimal but every sentence adds practical value, especially the examples.

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?

The tool has 3 parameters and no output schema. The description covers input format and content guidance thoroughly, but it only vaguely mentions 'Returns related knowledge' without describing the return structure. The durabilityDecision parameter is documented only in the schema, which is acceptable given 100% coverage.

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 value by providing a concrete JSON example and by guiding what the 'observation' should contain ('Store facts that help future sessions, not actions you took or bugs you fixed'). This goes beyond the schema's simple 'Write naturally'.

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 the tool's purpose: 'When you understand how something works — architecture, dependencies, module boundaries — store it here.' It identifies a specific verb (store) and resource (knowledge), and distinguishes itself from siblings with 'Catch-all for knowledge not covered by gotcha/convention.'

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?

The description explicitly differentiates from gotcha/convention and provides strong usage guidance with wrong/right examples ('Wrong: “Fixed the null pointer in UserService.” Right: “UserService.getUser() returns null when session expires—callers must handle this.”'). It also states constraints like 'One insight per call' and persistence across sessions.

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

memory_bootstrapA

When no lobe exists for a project — run this before any other tool. Scans repo structure, README, and build system to create a named lobe and seed initial memory. Required param: "root" (absolute path to repo) when the lobe does not yet exist. Example: {"lobe": "my-project", "root": "/absolute/path/to/repo"}. After bootstrapping, all other tools become available for that lobe.

ParametersJSON Schema
NameRequiredDescriptionDefault
lobeNoMemory lobe name. If the lobe doesn't exist yet, also pass "root" to auto-create it. Available lobes:
rootNoAbsolute path to the repo root. Required only when the lobe does not exist yet — the server will add it to memory-config.json automatically.
budgetMBNoStorage budget in MB for the new lobe (default: 2). Only used when auto-creating a lobe via "root".

TDQS

A4.2/5.0
Behavior3/5

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

With no annotations provided, the description carries full burden. It discloses the side effects of scanning and seeding memory, and it clarifies the required 'root' param. However, it does not mention whether the operation is destructive, idempotent, what happens if the lobe already exists, or if it modifies files in the repo. This is partial transparency sufficient for basic use but not comprehensive for a mutating tool.

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 three sentences, front-loaded with the primary use case, includes a helpful JSON example, and contains no filler. Every sentence provides distinct value: when to use, what it does, and an example.

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?

The description covers when to use, what it does, the required parameter condition, and the outcome. However, it lacks details about edge cases (e.g., running when lobe exists, budgetMB behavior, response format) and does not have an output schema. For a bootstrap tool with this complexity, it is nearly complete but has minor gaps in behavioral outcomes.

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 the schema already fully documents all three parameters. The description does add value by restating the conditional requirement for 'root' and providing a concrete example, but it does not explain 'budgetMB' beyond the schema, and the example only covers two of the three params. The added semantic clarity is modest, so a baseline 3 is appropriate.

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 the tool's function: it scans repo structure, README, and build system to create a named lobe and seed initial memory. It uses specific verbs like 'scans' and 'create' and references a specific resource ('lobe'), distinguishing it from sibling tools like brief, recall, or learn which operate on an existing lobe.

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?

The description provides explicit when-to-use guidance: 'When no lobe exists for a project — run this before any other tool.' It also states the benefit of using it ('After bootstrapping, all other tools become available for that lobe'), implicitly guiding the agent to use this before alternatives. This is strong, actionable usage context.

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

preferA

When the user corrects you or states how they want things done, record it here. Example: {"rule": "Never use !! operator"} or {"rule": "Use Anvil for DI", "lobe": "my-project"} Highest trust level. Persists across sessions, surfaced in every brief(). Omit lobe for global preferences; add lobe to scope to one project. Required param: "rule".

ParametersJSON Schema
NameRequiredDescriptionDefault
lobeNoOptional. Scope this preference to a specific lobe. Omit for global. Available:
ruleYesThe preference or rule. Write naturally.

TDQS

A4/5.0
Behavior5/5

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

No annotations are provided, so the description carries full behavioral disclosure. It states 'Highest trust level,' 'Persists across sessions,' and 'surfaced in every brief(),' which are meaningful behavioral traits beyond just the write action. This is substantial transparency for a simple recording tool.

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?

The description is compact and starts with the primary use case, followed by clear examples and practical scoping tips. Every sentence carries useful information, though the prose is slightly run-on and could be structured more cleanly.

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 simple 2-parameter tool, the core behavior, persistence, and scoping are covered. However, the large set of sibling memory tools (learn, conventions, gotchas, recall) makes it unclear when to choose 'prefer' over these alternatives. The description would be more complete if it explicitly distinguished itself from those tools.

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 coverage is 100%, so the baseline is 3. The description reinforces that 'rule' is required and gives examples, but the lobe scoping and rule description are already present in the input schema. The description adds little beyond illustrative JSON examples.

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 clearly identifies the tool's purpose: when the user corrects you or states how they want things done, record it here. It names the resource (preferences/rules) and includes concrete examples. However, it does not explicitly differentiate from sibling memory tools like 'learn' or 'conventions', so it gets a 4 rather than a 5.

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 an explicit trigger condition ('When the user corrects you or states how they want things done') and scoping instructions ('Omit lobe for global preferences; add lobe to scope to one project'). It does not mention exclusions or alternative tools, but the context is clear enough for basic use.

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

recallA

Before starting a task, surface prior knowledge you haven't loaded yet. Searches stored memory using semantic + keyword matching. Example: {"context": "auth token refresh", "lobe": "my-project"} Searches YOUR memory entries (from learn/gotcha/convention/prefer). Does NOT search the codebase or the internet. Call once per area. Skip if you already recalled this topic or received it from brief(). Knowledge stays in your context. Required param: "context" — the area you need knowledge about.

ParametersJSON Schema
NameRequiredDescriptionDefault
lobeNoMemory lobe name. No lobes configured yet — run memory_bootstrap(lobe: "your-project", root: "/absolute/path/to/repo") first.
contextYesThe topic or area you need knowledge about. Describe in natural language — e.g. "auth token refresh", "how modules communicate", "payment webhook handler".
maxResultsNoMax results (default: 10).

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations, the description fully discloses behavior: semantic + keyword matching, search scope limited to specific memory entry types, call frequency, skip conditions, and that 'Knowledge stays in your context.' This is significant context beyond what a schema could provide.

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?

The description is front-loaded with the core purpose and includes a useful example. It is compact but contains some redundancy (e.g., 'stored memory' vs. 'memory entries') and a restatement of the required parameter, but overall each sentence earns its place.

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?

For a 3-parameter tool with no output schema, the description is self-sufficient: it explains what the tool does, its scope, exclusions, when to call it, when to skip, and provides an example. The behavior is fully contextualized for an agent.

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 baseline is 3. The description adds only an example and repeats 'Required param: context'; it does not enrich parameter meaning beyond what the detailed schema descriptions already provide.

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 states a specific action: 'surface prior knowledge you haven't loaded yet' and 'Searches stored memory using semantic + keyword matching.' It distinguishes itself from siblings by clarifying scope: 'Searches YOUR memory entries (from learn/gotcha/convention/prefer)' and 'Does NOT search the codebase or the internet.'

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?

Explicit usage guidance is given: 'Before starting a task' and 'Call once per area.' It also provides clear when-not-to-use instructions: 'Skip if you already recalled this topic or received it from brief().' The exclusion of codebase/internet searches further refines when this tool is appropriate.

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

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 10 tool updatesv0.1.0
    • First observedbrief
    • First observedconvention
    • First observedconventions
    • First observedfix
    • First observedgotcha
    • First observedgotchas
    • First observedlearn
    • First observedmemory_bootstrap
    • First observedprefer
    • First observedrecall

TDQS

A4/5.0

Scored across 10 tools

Disambiguation4/5

Most tools have clear, distinct purposes: brief loads the full context, recall searches broadly, gotchas/conventions retrieve specific types, and gotcha/convention/learn/prefer add different kinds of knowledge. The overlap between recall and the focused retrieval tools is intentional and described, but the singular/plural pairs (convention vs. conventions, gotcha vs. gotchas) could cause misselection if the agent does not read descriptions carefully.

Naming Consistency2/5

Tool names follow no consistent pattern. Some are verbs (brief, recall, learn, prefer, fix), some are plural nouns used for retrieval (gotchas, conventions), some are singular nouns used for adding (gotcha, convention), and one is a compound (memory_bootstrap). This mix of conventions makes the naming unpredictable.

Tool Count5/5

With 10 tools, the set is well-scoped for a memory/knowledge server. Each tool covers a necessary function: adding knowledge (four types), retrieving it (three approaches), fixing entries, and bootstrapping a project. The count feels appropriate and not bloated.

Completeness4/5

The tool surface covers the full lifecycle of memory: create (gotcha, convention, learn, prefer), read (brief, recall, gotchas, conventions), update/delete (fix), and initialization (memory_bootstrap). The only minor gap is that there is no dedicated list tool for 'learn' or 'prefer' entries, but recall and brief surface them adequately.

Maintenance

ActivityInactive
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    B
    maintenance
    Provides persistent, searchable memory and knowledge capture for AI-assisted development, enabling agents to retain decisions, bugs, and patterns across sessions and projects.
    MIT
  • A
    license
    Not graded
    quality
    A
    maintenance
    Provides persistent memory for coding agents and grounds their claims by verifying against the actual codebase, preventing hallucinated responses.
    506
    Apache 2.0