Skip to main content
Glama

Add to Cursor Add to VS Code Add to Claude Add to ChatGPT Add to Codex Add to Gemini

CortexGraph: Temporal Memory for AI

A Model Context Protocol (MCP) server providing human-like memory dynamics for AI assistants. Memories naturally fade over time unless reinforced through use, mimicking the Ebbinghaus forgetting curve.

License: MIT Python 3.10+ Tests Security Scanning codecov SBOM: CycloneDX

NOTE

About the Name & Version

This project was originally developed as mnemex (published to PyPI up to v0.6.0). In November 2025, it was transferred to Prefrontal Systems and renamed to CortexGraph to better reflect its role within a broader cognitive architecture for AI systems.

Version numbering starts at 0.1.0 for the cortexgraph package to signal a fresh start under the new name, while acknowledging the mature, well-tested codebase (791 tests, 98%+ coverage) inherited from mnemex. The mnemex package remains frozen at v0.6.0 on PyPI.

This versioning approach:

  • Signals "new package" to PyPI users discovering cortexgraph

  • Gives room to evolve the brand, API, and organizational integration before 1.0

  • Maintains continuity: users can migrate from pip install mnemex β†’ pip install cortexgraph

  • Reflects that while the code is mature, the cortexgraph identity is just beginning

WARNING

🚧 ACTIVE DEVELOPMENT - EXPECT BUGS 🚧

This project is under active development and should be considered experimental. You will likely encounter bugs, breaking changes, and incomplete features. Use at your own risk. Please report issues on GitHub, but understand that this is research code, not production-ready software.

Known issues:

  • API may change without notice between versions

  • Test coverage is incomplete

πŸ“– New to this project? Start with the ELI5 Guide for a simple explanation of what this does and how to use it.

What is CortexGraph?

CortexGraph gives AI assistants like Claude a human-like memory system.

The Problem

When you chat with Claude, it forgets everything between conversations. You tell it "I prefer TypeScript" or "I'm allergic to peanuts," and three days later, you have to repeat yourself. This is frustrating and wastes time.

What CortexGraph Does

CortexGraph makes AI assistants remember things naturally, just like human memory:

  • 🧠 Remembers what matters - Your preferences, decisions, and important facts

  • ⏰ Forgets naturally - Old, unused information fades away over time (like the Ebbinghaus forgetting curve)

  • πŸ’ͺ Gets stronger with use - The more you reference something, the longer it's remembered

  • πŸ“¦ Saves important things permanently - Frequently used memories get promoted to long-term storage

How It Works (Simple Version)

  1. You talk naturally - "I prefer dark mode in all my apps"

  2. Memory is saved automatically - No special commands needed

  3. Time passes - Memory gradually fades if not used

  4. You reference it again - "Make this app dark mode"

  5. Memory gets stronger - Now it lasts even longer

  6. Important memories promoted - Used 5+ times? Saved permanently to your Obsidian vault

No flashcards. No explicit review. Just natural conversation.

Why It's Different

Most memory systems are dumb:

  • ❌ "Delete after 7 days" (doesn't care if you used it 100 times)

  • ❌ "Keep last 100 items" (throws away important stuff just because it's old)

CortexGraph is smart:

  • βœ… Combines recency (when?), frequency (how often?), and importance (how critical?)

  • βœ… Memories fade naturally like human memory

  • βœ… Frequently used memories stick around longer

  • βœ… You can mark critical things to "never forget"

Related MCP server: AGI MCP Server

Technical Overview

This repository contains research, design, and a complete implementation of a short-term memory system that combines:

  • Novel temporal decay algorithm based on cognitive science

  • Reinforcement learning through usage patterns

  • Two-layer architecture (STM + LTM) for working and permanent memory

  • Smart prompting patterns for natural LLM integration

  • Git-friendly storage with human-readable JSONL

  • Knowledge graph with entities and relations

Why CortexGraph?

πŸ”’ Privacy & Transparency

All data stored locally on your machine - no cloud services, no tracking, no data sharing.

  • Short-term memory: Human-readable JSONL files (~/.config/cortexgraph/jsonl/)

    • One JSON object per line

    • Easy to inspect, version control, and backup

    • Git-friendly format for tracking changes

  • Long-term memory: Markdown files optimized for Obsidian

    • YAML frontmatter with metadata

    • Wikilinks for connections

    • Permanent storage you control

You own your data. You can read it, edit it, delete it, or version control it - all without any special tools.

Core Algorithm

The temporal decay scoring function:

$$ \Large \text{score}(t) = (n_{\text{use}})^\beta \cdot e^{-\lambda \cdot \Delta t} \cdot s $$

Where:

  • $\large n_{\text{use}}$ - Use count (number of accesses)

  • $\large \beta$ (beta) - Sub-linear use count weighting (default: 0.6)

  • $\large \lambda = \frac{\ln(2)}{t_{1/2}}$ (lambda) - Decay constant; set via half-life (default: 3-day)

  • $\large \Delta t$ - Time since last access (seconds)

  • $\large s$ - Strength parameter $\in [0, 2]$ (importance multiplier)

Thresholds:

  • $\large \tau_{\text{forget}}$ (default 0.05) β€” if score < this, forget

  • $\large \tau_{\text{promote}}$ (default 0.65) β€” if score β‰₯ this, promote (or if $\large n_{\text{use}}\ge5$ in 14 days)

Decay Models:

  • Power‑Law (default): heavier tail; most human‑like retention

  • Exponential: lighter tail; forgets sooner

  • Two‑Component: fast early forgetting + heavier tail

See detailed parameter reference, model selection, and worked examples in docs/scoring_algorithm.md.

Tuning Cheat Sheet

  • Balanced (default)

    • Half-life: 3 days (Ξ» β‰ˆ 2.67e-6)

    • Ξ² = 0.6, Ο„_forget = 0.05, Ο„_promote = 0.65, use_countβ‰₯5 in 14d

    • Strength: 1.0 (bump to 1.3–2.0 for critical)

  • High‑velocity context (ephemeral notes, rapid switching)

    • Half-life: 12–24 hours (Ξ» β‰ˆ 1.60e-5 to 8.02e-6)

    • Ξ² = 0.8–0.9, Ο„_forget = 0.10–0.15, Ο„_promote = 0.70–0.75

  • Long retention (research/archival)

    • Half-life: 7–14 days (Ξ» β‰ˆ 1.15e-6 to 5.73e-7)

    • Ξ² = 0.3–0.5, Ο„_forget = 0.02–0.05, Ο„_promote = 0.50–0.60

  • Preference/decision heavy assistants

    • Half-life: 3–7 days; Ξ² = 0.6–0.8

    • Strength defaults: 1.3–1.5 for preferences; 1.8–2.0 for decisions

  • Aggressive space control

    • Raise Ο„_forget to 0.08–0.12 and/or shorten half-life; schedule weekly GC

  • Environment template

    • MNEMEX_DECAY_LAMBDA=2.673e-6, MNEMEX_DECAY_BETA=0.6

    • MNEMEX_FORGET_THRESHOLD=0.05, MNEMEX_PROMOTE_THRESHOLD=0.65

    • MNEMEX_PROMOTE_USE_COUNT=5, MNEMEX_PROMOTE_TIME_WINDOW=14

Decision thresholds:

  • Forget: $\text{score} < 0.05$ β†’ delete memory

  • Promote: $\text{score} \geq 0.65$ OR $n_{\text{use}} \geq 5$ within 14 days β†’ move to LTM

Key Innovations

1. Temporal Decay with Reinforcement

Unlike traditional caching (TTL, LRU), Mnemex scores memories continuously by combining recency (exponential decay), frequency (sub-linear use count), and importance (adjustable strength). See Core Algorithm for the mathematical formula. This creates memory dynamics that closely mimic human cognition.

2. Smart Prompting System

Patterns for making AI assistants use memory naturally:

Auto-Save

User: "I prefer TypeScript over JavaScript"
β†’ Automatically saved with tags: [preferences, typescript, programming]

Auto-Recall

User: "Can you help with another TypeScript project?"
β†’ Automatically retrieves preferences and conventions

Auto-Reinforce

User: "Yes, still using TypeScript"
β†’ Memory strength increased, decay slowed

No explicit memory commands needed - just natural conversation.

3. Natural Spaced Repetition

Inspired by how concepts naturally reinforce across different contexts (the "Maslow effect" - remembering Maslow's hierarchy better when it appears in history, economics, and sociology classes).

No flashcards. No explicit review sessions. Just natural conversation.

How it works:

  1. Review Priority Calculation - Memories in the "danger zone" (0.15-0.35 decay score) get highest priority

  2. Cross-Domain Detection - Detects when memories are used in different contexts (tag Jaccard similarity <30%)

  3. Automatic Reinforcement - Memories strengthen naturally when used, especially across domains

  4. Blended Search - Review candidates appear in 30% of search results (configurable)

Usage pattern:

User: "Can you help with authentication in my API?"
β†’ System searches, retrieves JWT preference memory
β†’ System uses memory to answer question
β†’ System calls observe_memory_usage with context tags [api, auth, backend]
β†’ Cross-domain usage detected (original tags: [security, jwt, preferences])
β†’ Memory automatically reinforced, strength boosted
β†’ Next search naturally surfaces memories needing review

Configuration:

MNEMEX_REVIEW_BLEND_RATIO=0.3           # 30% review candidates in search
MNEMEX_REVIEW_DANGER_ZONE_MIN=0.15      # Lower bound of danger zone
MNEMEX_REVIEW_DANGER_ZONE_MAX=0.35      # Upper bound of danger zone
MNEMEX_AUTO_REINFORCE=true              # Auto-reinforce on observe

See docs/prompts/ for LLM system prompt templates that enable natural memory usage.

4. Two-Layer Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚   Short-term memory                 β”‚
β”‚   - JSONL storage                   β”‚
β”‚   - Temporal decay                  β”‚
β”‚   - Hours to weeks retention        β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
               β”‚ Automatic promotion
               ↓
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚   LTM (Long-Term Memory)            β”‚
β”‚   - Markdown files (Obsidian)       β”‚
β”‚   - Permanent storage               β”‚
β”‚   - Git version control             β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Quick Start

Installation

Recommended: UV Tool Install (from PyPI)

# Install from PyPI (recommended - fast, isolated, includes all 7 CLI commands)
uv tool install cortexgraph

This installs cortexgraph and all 7 CLI commands in an isolated environment.

Alternative Installation Methods

# Using pipx (similar isolation to uv)
pipx install cortexgraph

# Using pip (traditional, installs in current environment)
pip install cortexgraph

# From GitHub (latest development version)
uv tool install git+https://github.com/simplemindedbot/cortexgraph.git

For Development (Editable Install)

# Clone and install in editable mode
git clone https://github.com/simplemindedbot/cortexgraph.git
cd cortexgraph
uv pip install -e ".[dev]"

Configuration

IMPORTANT: Configuration location depends on installation method:

Method 1: .env file (Works for all installation methods)

Create ~/.config/cortexgraph/.env:

# Create config directory
mkdir -p ~/.config/cortexgraph

# Option A: Copy from cloned repo
cp .env.example ~/.config/cortexgraph/.env

# Option B: Download directly
curl -o ~/.config/cortexgraph/.env https://raw.githubusercontent.com/simplemindedbot/cortexgraph/main/.env.example

Edit ~/.config/cortexgraph/.env with your settings:

# Storage
MNEMEX_STORAGE_PATH=~/.config/cortexgraph/jsonl

# Decay model (power_law | exponential | two_component)
MNEMEX_DECAY_MODEL=power_law

# Power-law parameters (default model)
MNEMEX_PL_ALPHA=1.1
MNEMEX_PL_HALFLIFE_DAYS=3.0

# Exponential (if selected)
# MNEMEX_DECAY_LAMBDA=2.673e-6  # 3-day half-life

# Two-component (if selected)
# MNEMEX_TC_LAMBDA_FAST=1.603e-5  # ~12h
# MNEMEX_TC_LAMBDA_SLOW=1.147e-6  # ~7d
# MNEMEX_TC_WEIGHT_FAST=0.7

# Common parameters
MNEMEX_DECAY_LAMBDA=2.673e-6
MNEMEX_DECAY_BETA=0.6

# Thresholds
MNEMEX_FORGET_THRESHOLD=0.05
MNEMEX_PROMOTE_THRESHOLD=0.65

# Long-term memory (optional)
LTM_VAULT_PATH=~/Documents/Obsidian/Vault

Method 2: Environment variables in Claude Desktop config

Add environment variables directly to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "cortexgraph": {
      "command": "cortexgraph",
      "env": {
        "MNEMEX_STORAGE_PATH": "~/.config/cortexgraph/jsonl",
        "MNEMEX_DECAY_MODEL": "power_law",
        "MNEMEX_PL_ALPHA": "1.1",
        "MNEMEX_PL_HALFLIFE_DAYS": "3.0",
        "LTM_VAULT_PATH": "~/Documents/Obsidian/Vault"
      }
    }
  }
}

Where cortexgraph looks for .env files:

  1. Primary: ~/.config/cortexgraph/.env ← Use this for uv tool install / uvx

  2. Fallback: ./.env (current directory) ← Only works for editable installs

MCP Configuration

Standard installation (uv tool install / pipx / pip):

{
  "mcpServers": {
    "cortexgraph": {
      "command": "cortexgraph"
    }
  }
}

Configuration loaded from ~/.config/cortexgraph/.env or environment variables (see Configuration section above).

For development (editable install):

{
  "mcpServers": {
    "cortexgraph": {
      "command": "uv",
      "args": ["--directory", "/path/to/cortexgraph", "run", "cortexgraph"],
      "env": {"PYTHONPATH": "/path/to/cortexgraph/src"}
    }
  }
}

Configuration can be loaded from ./.env in the project directory OR ~/.config/cortexgraph/.env.

Troubleshooting: Command Not Found

If Claude Desktop shows spawn cortexgraph ENOENT errors, the cortexgraph command isn't in Claude Desktop's PATH.

macOS/Linux: GUI apps don't inherit shell PATH

GUI applications on macOS and Linux don't see your shell's PATH configuration (.zshrc, .bashrc, etc.). Claude Desktop only searches:

  • /usr/local/bin

  • /opt/homebrew/bin (macOS)

  • /usr/bin

  • /bin

  • /usr/sbin

  • /sbin

If uv tool install placed cortexgraph in ~/.local/bin/ or another custom location, Claude Desktop can't find it.

Solution: Use absolute path

# Find where cortexgraph is installed
which cortexgraph
# Example output: /Users/username/.local/bin/cortexgraph

Update your Claude config with the absolute path:

{
  "mcpServers": {
    "cortexgraph": {
      "command": "/Users/username/.local/bin/cortexgraph"
    }
  }
}

Replace /Users/username/.local/bin/cortexgraph with your actual path from which cortexgraph.

Alternative: System-wide install

You can also install to a system location that Claude Desktop searches:

# Option 1: Link to /usr/local/bin
sudo ln -s ~/.local/bin/cortexgraph /usr/local/bin/cortexgraph

# Option 2: Install with pipx/uv to system location (requires admin)
sudo uv tool install git+https://github.com/simplemindedbot/cortexgraph.git

Maintenance

Use the maintenance CLI to inspect and compact JSONL storage:

# Show storage stats (active counts, file sizes, compaction hints)
cortexgraph-maintenance stats

# Compact JSONL (rewrite without tombstones/duplicates)
cortexgraph-maintenance compact

Migrating to UV Tool Install

If you're currently using an editable install (uv pip install -e .), you can switch to the simpler UV tool install:

# 1. Uninstall editable version
uv pip uninstall cortexgraph

# 2. Install as UV tool
uv tool install git+https://github.com/simplemindedbot/cortexgraph.git

# 3. Update Claude Desktop config to just:
#    {"command": "cortexgraph"}
#    Remove the --directory, run, and PYTHONPATH settings

Your data is safe! This only changes how the command is installed. Your memories in ~/.config/cortexgraph/ are untouched.

Migrating from STM Server

If you previously used this project as "STM Server", use the migration tool:

# Preview what will be migrated
cortexgraph-migrate --dry-run

# Migrate data files from ~/.stm/ to ~/.config/cortexgraph/
cortexgraph-migrate --data-only

# Also migrate .env file (rename STM_* variables to MNEMEX_*)
cortexgraph-migrate --migrate-env --env-path ./.env

The migration tool will:

  • Copy JSONL files from ~/.stm/jsonl/ to ~/.config/cortexgraph/jsonl/

  • Optionally rename environment variables (STM_* β†’ MNEMEX_*)

  • Create backups before making changes

  • Provide clear next-step instructions

After migration, update your Claude Desktop config to use cortexgraph instead of stm.

CLI Commands

The server includes 7 command-line tools:

cortexgraph                  # Run MCP server
cortexgraph-migrate          # Migrate from old STM setup
cortexgraph-index-ltm        # Index Obsidian vault
cortexgraph-backup           # Git backup operations
cortexgraph-vault            # Vault markdown operations
cortexgraph-search           # Unified STM+LTM search
cortexgraph-maintenance      # JSONL storage stats and compaction

Visualization

Interactive graph visualization using PyVis:

# Install visualization dependencies
pip install "cortexgraph[visualization]"
# or with uv
uv pip install "cortexgraph[visualization]"

# Or install dependencies manually
pip install pyvis networkx

# Generate interactive HTML visualization
python scripts/visualize_graph.py

# Custom output location
python scripts/visualize_graph.py --output ~/Desktop/memory_graph.html

# Custom data paths
python scripts/visualize_graph.py --memories ~/data/memories.jsonl --relations ~/data/relations.jsonl

Features:

  • Interactive network graph with pan/zoom

  • Node colors by status (active=blue, promoted=green, archived=gray)

  • Node size based on use count

  • Edge colors by relation type

  • Hover tooltips showing full content, tags, and entities

  • Physics controls for layout adjustment

The visualization reads directly from your JSONL files and creates a standalone HTML file you can open in any browser.

MCP Tools

11 tools for AI assistants to manage memories:

Tool

Purpose

save_memory

Save new memory with tags, entities

search_memory

Search with filters and scoring (includes review candidates)

search_unified

Unified search across STM + LTM

touch_memory

Reinforce memory (boost strength)

observe_memory_usage

Record memory usage for natural spaced repetition

gc

Garbage collect low-scoring memories

promote_memory

Move to long-term storage

cluster_memories

Find similar memories

consolidate_memories

Merge similar memories (algorithmic)

read_graph

Get entire knowledge graph

open_memories

Retrieve specific memories

create_relation

Link memories explicitly

Search across STM and LTM with the CLI:

cortexgraph-search "typescript preferences" --tags preferences --limit 5 --verbose

Example: Reinforce (Touch) Memory

Boost a memory's recency/use count to slow decay:

{
  "memory_id": "mem-123",
  "boost_strength": true
}

Sample response:

{
  "success": true,
  "memory_id": "mem-123",
  "old_score": 0.41,
  "new_score": 0.78,
  "use_count": 5,
  "strength": 1.1
}

Example: Promote Memory

Suggest and promote high-value memories to the Obsidian vault.

Auto-detect (dry run):

{
  "auto_detect": true,
  "dry_run": true
}

Promote a specific memory:

{
  "memory_id": "mem-123",
  "dry_run": false,
  "target": "obsidian"
}

As an MCP tool (request body):

{
  "query": "typescript preferences",
  "tags": ["preferences"],
  "limit": 5,
  "verbose": true
}

Example: Consolidate Similar Memories

Find and merge duplicate or highly similar memories to reduce clutter:

Auto-detect candidates (preview):

{
  "auto_detect": true,
  "mode": "preview",
  "cohesion_threshold": 0.75
}

Apply consolidation to detected clusters:

{
  "auto_detect": true,
  "mode": "apply",
  "cohesion_threshold": 0.80
}

The tool will:

  • Merge content intelligently (preserving unique information)

  • Combine tags and entities (union)

  • Calculate strength based on cluster cohesion

  • Preserve earliest created_at and latest last_used timestamps

  • Create tracking relations showing consolidation history

Mathematical Details

Decay Curves

For a memory with $n_{\text{use}}=1$, $s=1.0$, and $\lambda = 2.673 \times 10^{-6}$ (3-day half-life):

Time

Score

Status

0 hours

1.000

Fresh

12 hours

0.917

Active

1 day

0.841

Active

3 days

0.500

Half-life

7 days

0.210

Decaying

14 days

0.044

Near forget

30 days

0.001

Forgotten

Use Count Impact

With $\beta = 0.6$ (sub-linear weighting):

Use Count

Boost Factor

1

1.0Γ—

5

2.6Γ—

10

4.0Γ—

50

11.4Γ—

Frequent access significantly extends retention.

Documentation

Use Cases

Personal Assistant (Balanced)

  • 3-day half-life

  • Remember preferences and decisions

  • Auto-promote frequently referenced information

Development Environment (Aggressive)

  • 1-day half-life

  • Fast context switching

  • Aggressive forgetting of old context

Research / Archival (Conservative)

  • 14-day half-life

  • Long retention

  • Comprehensive knowledge preservation

License

MIT License - See LICENSE for details.

Clean-room implementation. No AGPL dependencies.

Knowledge & Memory

  • mem0ai/mem0-mcp (Python) - A MCP server that provides a smart memory for AI to manage and reference past conversations, user preferences, and key details.

  • cortexgraph (Python) - A Python-based MCP server that provides a human-like short-term working memory (JSONL) and long-term memory (Markdown) system for AI assistants. The core of the project is a temporal decay algorithm that causes memories to fade over time unless they are reinforced through use.

  • modelcontextprotocol/server-memory (TypeScript) - A knowledge graph-based persistent memory system for AI.

Citation

If you use this work in research, please cite:

@software{cortexgraph_2025,
  title = {Mnemex: Temporal Memory for AI},
  author = {simplemindedbot},
  year = {2025},
  url = {https://github.com/simplemindedbot/cortexgraph},
  version = {0.5.3}
}

Contributing

Contributions are welcome! See CONTRIBUTING.md for detailed instructions.

🚨 Help Needed: Windows & Linux Testers!

I develop on macOS and need help testing on Windows and Linux. If you have access to these platforms, please:

  • Try the installation instructions

  • Run the test suite

  • Report what works and what doesn't

See the Help Needed section in CONTRIBUTING.md for details.

General Contributions

For all contributors, see CONTRIBUTING.md for:

  • Platform-specific setup (Windows, Linux, macOS)

  • Development workflow

  • Testing guidelines

  • Code style requirements

  • Pull request process

Quick start:

  1. Read CONTRIBUTING.md for platform-specific setup

  2. Understand the Architecture docs

  3. Review the Scoring Algorithm

  4. Follow existing code patterns

  5. Add tests for new features

  6. Update documentation

Status

Version: 1.0.0 Status: Research implementation - functional but evolving

Phase 1 (Complete) βœ…

  • 10 MCP tools

  • Temporal decay algorithm

  • Knowledge graph

Phase 2 (Complete) βœ…

  • JSONL storage

  • LTM index

  • Git integration

  • Smart prompting documentation

  • Maintenance CLI

  • Memory consolidation (algorithmic merging)

Future Work

  • Spaced repetition optimization

  • Adaptive decay parameters

  • Performance benchmarks

  • LLM-assisted consolidation (optional enhancement)


Built with Claude Code πŸ€–

Available Tools

13 tools
cluster_memoriesA

Cluster similar memories for potential consolidation or find duplicates.

Groups similar memories based on semantic similarity (if embeddings are enabled) or other strategies. Useful for identifying redundant memories.

Args: strategy: Clustering strategy (default: "similarity"). threshold: Similarity threshold for linking (0.0-1.0, uses config default if not specified). max_cluster_size: Maximum memories per cluster (1-100, uses config default if not specified). find_duplicates: Find likely duplicate pairs instead of clustering. duplicate_threshold: Similarity threshold for duplicates (0.0-1.0, uses config default).

Returns: List of clusters or duplicate pairs with scores and suggested actions.

Raises: ValueError: If any input fails validation.

ParametersJSON Schema
NameRequiredDescriptionDefault
strategyNosimilarity
thresholdNo
find_duplicatesNo
max_cluster_sizeNo
duplicate_thresholdNo

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A3.8/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. It explains the grouping mechanism ('based on semantic similarity if embeddings are enabled'), the return type ('List of clusters or duplicate pairs with scores and suggested actions'), and error behavior ('Raises ValueError'). However, it does not disclose whether the operation is read-only or might trigger side effects, leaving some ambiguity for an agent.

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 brief summary followed by Args/Returns/Raises sections. It is front-loaded with the main purpose. While it is a bit verbose, each section serves a purpose and no filler text is present.

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 tool's complexity (5 optional params, no output schema description), the description covers the key aspects: purpose, parameters, return value, and exceptions. The existence of an output schema fills the need for return structure details. It lacks detailed usage scenarios or edge cases, but overall it is complete enough for an agent to effectively invoke it.

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

Parameters5/5

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

Schema coverage is 0%, but the description compensates thoroughly. It explains each parameter with added context: strategy is 'Clustering strategy', threshold is 'Similarity threshold for linking (0.0-1.0, uses config default if not specified)', max_cluster_size is 'Maximum memories per cluster (1-100, uses config default)', find_duplicates changes behavior, and duplicate_threshold has its own range. This provides clear semantic meaning beyond the raw schema.

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 states the tool's function: 'Cluster similar memories for potential consolidation or find duplicates' and 'Groups similar memories based on semantic similarity'. This is a specific verb+resource with useful context. However, it does not explicitly distinguish itself from the sibling tool 'consolidate_memories' or 'search_memory', so it falls short of a perfect score.

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

Usage Guidelines3/5

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

The description notes it is 'Useful for identifying redundant memories', which implies a use case. However, it provides no explicit guidance on when to use this tool versus alternatives, nor does it mention any exclusions or prerequisites. This is adequate but not thorough.

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

consolidate_memoriesA

Consolidate similar memories using algorithmic merging.

This tool intelligently merges similar memories by:

  1. Combining content (preserving unique information)

  2. Merging tags and entities (union)

  3. Calculating appropriate strength based on cohesion

  4. Preserving earliest created_at and latest last_used timestamps

Modes:

  • "preview": Generate merge preview without making changes

  • "apply": Execute the consolidation (requires cluster_id)

Args: cluster_id: Specific cluster ID to consolidate (valid UUID, required for apply mode). mode: Operation mode - "preview" or "apply". auto_detect: If True, automatically find high-cohesion clusters. cohesion_threshold: Minimum cohesion for auto-detection (0.0-1.0, default: 0.75).

Returns: Consolidation preview or execution results.

Raises: ValueError: If cluster_id is invalid or cohesion_threshold is out of range.

ParametersJSON Schema
NameRequiredDescriptionDefault
modeNopreview
cluster_idNo
auto_detectNo
cohesion_thresholdNo

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.2/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 of behavioral disclosure. It details the merging algorithm (content, tags, strength, timestamps), the preview vs apply behavior, and error conditions. It does not explicitly state whether original memories are deleted or modified in place, but overall transparency is high.

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 with clear sections: numbered merge steps, a mode list, parameter explanations, and returns/raises. Every sentence serves a purpose, and the initial purpose statement is front-loaded, making the tool easy to scan and understand.

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 the tool's complexity (multiple modes, optional auto-detection, threshold validation, and different outputs for preview vs apply), the description covers all necessary aspects. It even documents return behavior and errors despite having an output schema. No material gaps remain.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must compensate. It does so comprehensively: every parameter (mode, cluster_id, auto_detect, cohesion_threshold) is explained with defaults, valid range, and mode-specific requirements. This fully compensates for the absent schema-level descriptions.

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 opens with 'Consolidate similar memories using algorithmic merging,' a specific verb+resource phrase that clearly states the tool's purpose. However, it does not explicitly distinguish this tool from its sibling 'cluster_memories,' so it falls short of full sibling differentiation.

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

Usage Guidelines3/5

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

The description explains operational modes ('preview' and 'apply') and auto-detection, giving clear invocation context. It does not, however, state when to use this tool over alternatives like 'cluster_memories' or mention exclusions, leaving the choice to the agent based on implied semantics.

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

create_relationA

Create an explicit relation between two memories.

Links two memories with a typed relationship.

Args: from_memory_id: Source memory ID (valid UUID). to_memory_id: Target memory ID (valid UUID). relation_type: Type of relation (must be one of: related, causes, supports, contradicts, has_decision, consolidated_from). strength: Strength of the relation (0.0-1.0). metadata: Additional metadata about the relation.

Returns: Created relation ID and confirmation.

Raises: ValueError: If any input fails validation.

ParametersJSON Schema
NameRequiredDescriptionDefault
metadataNo
strengthNo
to_memory_idYes
relation_typeYes
from_memory_idYes

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4/5.0
Behavior3/5

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

With no annotations provided, the description must carry the transparency burden. It discloses that invalid inputs raise ValueError and describes the return value, which is helpful. However, it does not mention whether memories must already exist, whether the relation is directed, or any side effects like duplicate handling, leaving important behavioral traits undisclosed.

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 Args, Returns, and Raises sections. The first two sentences are somewhat redundant ('Create an explicit relation' and 'Links two memories with a typed relationship'), but the rest is efficient and clearly formatted, earning a high but not perfect score.

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 relatively simple create-relation tool, the description is fairly complete: it covers all five parameters, allowed relation types, validation behavior, and what is returned. However, it omits preconditions like whether the referenced memories must exist, and lacks any statement about permissions or idempotency, which would fully round out the context.

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

Parameters5/5

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

Schema description coverage is 0%, so the description fully compensates by explaining each parameter: source/target IDs as valid UUIDs, allowed relation_type values (related, causes, supports, contradicts, has_decision, consolidated_from), strength range 0.0-1.0, and metadata as additional relation info. This adds significant meaning beyond the bare schema.

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 explicitly states 'Create an explicit relation between two memories' and 'Links two memories with a typed relationship,' using a specific verb and resource. It clearly differentiates from sibling tools like save_memory or consolidate_memories by focusing on relation creation.

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

Usage Guidelines3/5

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

The description implies when to use the tool (creating relations) but does not explicitly mention alternatives or exclusion criteria. It provides no guidance on when to choose this over other memory-related tools, leaving usage context implicit.

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

gcA

Perform garbage collection on low-scoring memories.

Removes or archives memories whose decay score has fallen below the forget threshold. This prevents the database from growing indefinitely with unused memories.

Args: dry_run: Preview what would be removed without actually removing. archive_instead: Archive memories instead of deleting. limit: Maximum number of memories to process (1-10,000).

Returns: Statistics about removed/archived memories.

Raises: ValueError: If limit is out of valid range.

ParametersJSON Schema
NameRequiredDescriptionDefault
limitNo
dry_runNo
archive_insteadNo

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.3/5.0
Behavior3/5

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

The description explains that memories are removed or archived based on decay score and describes dry_run and archive_instead parameters. However, it does not disclose that dry_run defaults to true, so a bare call would not actually modify memories despite the description's active phrasing. This is a significant behavioral nuance given there are no annotations to provide safety hints.

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 with separate sections for summary, args, returns, and raises. It is concise, with no redundant sentences, and every sentence adds value.

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 purpose, parameters, return values, and error conditions, which is sufficient for a tool with an output schema. However, it lacks explicit notes on the default behavior of dry_run and the permanence of deletion, leaving some operational context unclear.

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

Parameters5/5

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

The input schema has no descriptions, but the tool description fully defines each parameter: dry_run ('Preview what would be removed'), archive_instead ('Archive memories instead of deleting'), and limit ('Maximum number of memories to process'). It also documents the return type and ValueError, adding semantic meaning beyond the bare schema.

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 'Perform garbage collection on low-scoring memories' and explains it removes or archives memories below a threshold. This specific verb+resource distinguishes it from siblings like search_memory or promote_memory.

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 context by stating that GC 'prevents the database from growing indefinitely with unused memories,' indicating when it should be used. However, it does not explicitly compare to alternatives like consolidate_memories or promote_memory, so it lacks explicit when-not-to-use guidance.

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

get_performance_metricsA

Get current performance metrics and statistics.

Returns: Dictionary containing performance statistics for various operations.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.2/5.0
Behavior3/5

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

No annotations are provided, so the description must disclose behavior. It states that the tool 'Get's' metrics and returns a dictionary of statistics, implying read-only behavior, but does not explicitly confirm side effects or whether metrics are cumulative. This is minimal but adequate for a getter.

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 two sentences, front-loaded with the action, and includes a return type note. No wasted words.

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 tool has no parameters and an output schema exists, the description covers the core purpose well. However, it lacks any mention of how this relates to reset_performance_metrics or what specific metrics are included, so a perfect score is not warranted.

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?

There are zero parameters, so the description needs no parameter information. The schema has no properties, and the description adds no parameter details, which is appropriate. Baseline for 0 params is 4.

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 uses the specific verb 'Get' and identifies the resource as 'current performance metrics and statistics', clearly distinguishing it from sibling reset_performance_metrics and other memory tools. The purpose is 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 implies usage when performance metrics are needed, but does not explicitly mention alternatives or exclusions. It does not reference the sibling reset_performance_metrics, leaving the user to infer the distinction, but the context is clear enough.

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

open_memoriesA

Retrieve specific memories by their IDs.

Similar to the reference MCP memory server's open_nodes functionality. Returns detailed information about the requested memories including their relations to other memories.

Pagination: When retrieving many memories by ID, results are paginated. Use page and page_size to navigate through the list of requested memories.

Args: memory_ids: Single memory ID or list of memory IDs to retrieve (max 100 IDs). include_relations: Include relations from/to these memories. include_scores: Include decay scores and age. page: Page number to retrieve (1-indexed, default: 1). page_size: Number of memories per page (default: 10, max: 100).

Returns: Dictionary with paginated results including: - memories: Detailed memory information for current page - not_found: List of IDs that weren't found - pagination: Metadata (page, page_size, total_count, total_pages, has_more)

Examples: # Get first page of memories open_memories(["id1", "id2", "id3", ...], page=1, page_size=10)

# Get next page
open_memories(["id1", "id2", "id3", ...], page=2, page_size=10)

Raises: ValueError: If any memory ID is invalid or list exceeds maximum length.

ParametersJSON Schema
NameRequiredDescriptionDefault
pageNo
page_sizeNo
memory_idsYes
include_scoresNo
include_relationsNo

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.7/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: it states that results are paginated, explains page/page_size navigation, covers return fields (memories, not_found, pagination), and lists the ValueError for invalid IDs or exceeding 100 IDs. It also clarifies that include_relations and include_scores control relationships and decay scores/age, respectively.

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 labeled sections (Args, Returns, Examples, Raises) and front-loaded with the purpose. It is clear and efficient, though there is some redundancy (pagination is explained both in prose and in the Args/Returns sections), preventing a perfect conciseness score.

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?

The description is complete for a moderately complex tool: it explains input, output, pagination, error behavior, and provides examples. The presence of an output schema reduces the need to detail return values, but the description still covers the key fields. No prerequisites or exclusions are missing, and the tool's read-only nature is implied by 'retrieve'.

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

Parameters5/5

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

Schema coverage is 0%, so the description must add meaning. It does so comprehensively: every parameter (memory_ids, include_relations, include_scores, page, page_size) is described with its purpose, default (including the max 100 IDs constraint for memory_ids and max 100 for page_size). This goes well beyond the bare schema and compensates fully.

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 begins with a specific verb+resource: 'Retrieve specific memories by their IDs.' It also clarifies scope by referencing the reference MCP memory server's open_nodes functionality, which helps distinguish it from sibling tools like search_memory or save_memory.

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 clear context for when to use the tool (retrieving known IDs) and gives pagination examples, but it does not explicitly mention when to use an alternative or when not to use this tool. It lacks an explicit exclusion or alternative recommendation, making it a 4 rather than a 5.

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

promote_memoryA

Promote high-value memories to long-term storage.

Memories with high scores or frequent usage are promoted to the Obsidian vault (or other long-term storage) where they become permanent.

Args: memory_id: Specific memory ID to promote (valid UUID). auto_detect: Automatically detect promotion candidates. dry_run: Preview what would be promoted without promoting. target: Storage backend for promotion. Default: "obsidian" (Obsidian-compatible markdown). Note: This is a storage format, not a file path. Path configured via LTM_VAULT_PATH. force: Force promotion even if criteria not met.

Returns: List of promoted memories and promotion statistics.

Raises: ValueError: If memory_id is invalid or target is not supported.

ParametersJSON Schema
NameRequiredDescriptionDefault
forceNo
targetNoobsidian
dry_runNo
memory_idNo
auto_detectNo

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.5/5.0
Behavior4/5

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

With annotations absent, the description carries the full burden of behavioral disclosure. It discloses dry-run and force modes, explains that target is a storage format (not a file path) configured via LTM_VAULT_PATH, and lists ValueError conditions. It also specifies return values. It does not clarify whether promotion copies or moves memories, but provides substantial context overall.

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-structured and front-loaded with a concise one-line purpose, followed by brief context, then organized Args, Returns, and Raises sections. Every sentence earns its place with no redundancy or filler.

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 purpose, usage, parameters, returns, and error handling. Gaps include lack of clarity on whether memory_id and auto_detect are mutually exclusive and what happens when neither is provided. Since an output schema exists, return structure is covered, but default behavior remains ambiguous.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must compensate. It does this thoroughly: memory_id is described as a valid UUID, auto_detect as automatic candidate detection, dry_run as a preview, target as a storage format with env var configuration, and force as overriding criteria. These details go well beyond the bare schema.

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 opening line 'Promote high-value memories to long-term storage' uses a specific verb and resource, and the description clarifies the criteria ('high scores or frequent usage') and result ('become permanent'), clearly distinguishing it from sibling memory tools like save_memory or touch_memory.

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 clear context by explaining that memories with high scores or frequent usage are promoted, implying when to use the tool. However, it does not explicitly name alternative tools or state when not to use it, so it falls just 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.

read_graphA

Read the entire knowledge graph of memories and relations.

Returns the complete graph structure including all memories (with decay scores), all relations between memories, and statistics about the graph.

Pagination: Results are paginated to help you navigate large knowledge graphs. Use page and page_size to retrieve specific portions of the graph. If searching for specific memories or patterns, increment page to see more results.

Args: status: Filter memories by status - "active", "promoted", "archived", or "all". include_scores: Include decay scores and age in results. limit: Maximum number of memories to return (1-10,000). page: Page number to retrieve (1-indexed, default: 1). page_size: Number of memories per page (default: 10, max: 100).

Returns: Dictionary with paginated graph including: - memories: List of memories for current page - relations: All relations (not paginated, for graph structure) - stats: Graph statistics - pagination: Metadata (page, page_size, total_count, total_pages, has_more)

Examples: # Get first page of active memories read_graph(status="active", page=1, page_size=10)

# Get next page
read_graph(status="active", page=2, page_size=10)

# Larger page for overview
read_graph(status="active", page=1, page_size=50)

Raises: ValueError: If status is invalid or limit is out of range.

ParametersJSON Schema
NameRequiredDescriptionDefault
pageNo
limitNo
statusNoactive
page_sizeNo
include_scoresNo

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations provided, the description carries full responsibility for behavioral disclosure. It richly explains pagination, the relationship between page and page_size, the fact that relations are not paginated, error conditions (ValueError), and the optional inclusion of decay scores and age. This goes well beyond a simple read operation.

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-structured with clear sections (description, pagination, args, returns, examples, raises) and front-loaded with a one-sentence purpose. Despite its length, every section adds value and the formatting makes it easy to scan.

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?

The description covers all aspects needed for correct invocation: parameters, pagination behavior, return structure, and error handling. Even though an output schema exists (so return explanation isn't required), the description goes further by detailing the keys returned, which is helpful for an agent.

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

Parameters5/5

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

The input schema has 0% parameter description coverage, so the description fully compensates by explaining each parameter's meaning, allowed values, ranges, and defaults. It also provides examples showing parameter combinations.

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 opens with 'Read the entire knowledge graph of memories and relations,' a specific verb and resource that clearly distinguishes it from sibling tools like search_memory or cluster_memories. It also explicitly lists what is returned, reinforcing the tool's scope.

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 clear context for use, including pagination examples and a note to increment pages to see more results. However, it does not explicitly name alternatives (e.g., search_memory) or state when not to use this tool, so it falls 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.

reset_performance_metricsA

Reset all performance metrics and return confirmation.

Returns: Dictionary confirming metrics have been reset.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A3.5/5.0
Behavior2/5

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

Annotations are absent, so the description carries full responsibility for behavioral disclosure. It only states the reset action and return value, but fails to disclose that this is a destructive, likely irreversible operation that clears all accumulated metrics. No mention of permissions, side effects, or safety considerations.

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 exceptionally concise: two sentences that get straight to the point. It front-loads the action and clearly states the return, with no wasted words.

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 zero-parameter tool, the description covers the core purpose and return type. However, it omits the destructive nature of the reset and any guidance on when to use it, making it incomplete for safe usage. The output schema may provide return details, but the missing side-effect warning is a significant gap.

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?

There are zero parameters in the schema, so the baseline is 4. The description adds no parameter information, but none is needed since there are no parameters.

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 uses the specific verb 'Reset' with the resource 'all performance metrics' and notes that it returns confirmation. This clearly distinguishes it from the sibling 'get_performance_metrics' which is a read operation.

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?

The description provides no guidance on when to use this tool, such as mentioning that it permanently clears data or suggesting using get_performance_metrics first. There are no alternatives or exclusions, leaving the agent without context for appropriate invocation.

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

save_memoryA

Save a new memory to short-term storage.

The memory will have temporal decay applied and will be forgotten if not used regularly. Frequently accessed memories may be promoted to long-term storage automatically.

Args: content: The content to remember (max 50,000 chars). tags: Tags for categorization (max 50 tags, each max 100 chars). entities: Named entities in this memory (max 100 entities). source: Source of the memory (max 500 chars). context: Context when memory was created (max 1,000 chars). meta: Additional custom metadata.

Raises: ValueError: If any input fails validation.

ParametersJSON Schema
NameRequiredDescriptionDefault
metaNo
tagsNo
sourceNo
contentYes
contextNo
entitiesNo

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations, the description fully discloses the tool's side effects: temporal decay ('will have temporal decay applied'), automatic forgetting ('forgotten if not used regularly'), and potential promotion to long-term storage. It also documents error behavior with 'Raises: ValueError.' These are significant behavioral traits that go beyond a simple save operation.

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 structured efficiently: a one-sentence purpose, two sentences on behavior, a compact Args list, and a Raises clause. It avoids repetition and keeps the total length appropriate for a tool with six parameters, all of which are covered.

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 creation tool with no annotations, the description provides a complete picture: purpose, behavior, parameter details, and validation errors. Since an output schema exists, the lack of return-value documentation is acceptable. The only missing element is explicit alternative guidance, but that's captured under usage guidelines.

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

Parameters5/5

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

The input schema only specifies types and names, providing no descriptions for any parameters. The description compensates by explaining each parameter's semantic role (e.g., 'tags: Tags for categorization') and adding explicit constraints like 'max 50,000 chars' and 'max 50 tags, each max 100 chars.' This gives the agent concrete invocation requirements.

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 opens with 'Save a new memory to short-term storage,' using a specific verb ('save') and resource ('memory') with a clear target. It distinguishes from sibling tools like promote_memory and touch_memory by emphasizing creation and short-term placement. This unambiguous phrasing makes the purpose immediately obvious to an agent.

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 phrase 'short-term storage' sets clear context for when this tool is appropriateβ€”creating a new memory intended for short-term use. However, it does not explicitly name alternatives or state when to avoid using this tool in favor of a sibling. It is more than implied guidance but lacks explicit exclusionary language.

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

search_memoryA

Search for memories with optional filters and scoring.

This tool implements natural spaced repetition by blending memories due for review into results when they're relevant. This creates the "Maslow effect" - natural reinforcement through conversation.

Pagination: Results are paginated to help you find specific memories across large result sets. Use page and page_size to navigate through results. If a search term isn't found on the first page, increment page to see more results.

Args: query: Text query to search for (max 50,000 chars). tags: Filter by tags (max 50 tags). top_k: Maximum number of results before pagination (1-100). window_days: Only search memories from last N days (1-3650). min_score: Minimum decay score threshold (0.0-1.0). use_embeddings: Use semantic search with embeddings. include_review_candidates: Blend in memories due for review (default True). page: Page number to retrieve (1-indexed, default: 1). page_size: Number of memories per page (default: 10, max: 100).

Returns: Dictionary with paginated results including: - results: List of matching memories with scores for current page - pagination: Metadata (page, page_size, total_count, total_pages, has_more)

Some results may be review candidates that benefit from reinforcement.

Examples: # Get first page (10 results) search_memory(query="authentication", page=1, page_size=10)

# Get next page
search_memory(query="authentication", page=2, page_size=10)

# Larger page size
search_memory(query="authentication", page=1, page_size=25)

Raises: ValueError: If any input fails validation.

ParametersJSON Schema
NameRequiredDescriptionDefault
pageNo
tagsNo
queryNo
top_kNo
min_scoreNo
page_sizeNo
window_daysNo
use_embeddingsNo
include_review_candidatesNo

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations provided, the description fully carries the burden of behavioral disclosure. It explains the spaced-repetition blending ('Maslow effect'), pagination behavior, default values, return structure, and that ValueError is raised on invalid input. This goes far beyond what the schema or annotations 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 well-structured with clear sections (Args, Returns, Examples, Raises) and each sentence adds useful context. It is somewhat verbose, especially the multiple pagination examples, but the length is justified by the complexity of the tool.

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?

The description is complete: it covers all 9 parameters, return data structure, pagination behavior, exceptions, defaults, and usage examples. The presence of an output schema does not need to be repeated, and the description adds everything needed for correct invocation.

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

Parameters5/5

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

Although the schema has no per-parameter descriptions, the tool description explicitly explains every parameter's purpose, constraints, and defaults (e.g., 'query: Text query to search for (max 50,000 chars)', 'page_size: Number of memories per page (default: 10, max: 100)'). This adds substantial meaning beyond the bare schema definitions.

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 opens with a specific verb and resource: 'Search for memories with optional filters and scoring.' It clearly differentiates from sibling tools like search_unified by describing the unique 'Maslow effect' spaced-repetition blending behavior, making the tool's purpose immediately identifiable.

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 clearly explains when to use the tool β€” when searching memories with pagination and review blending. It provides detailed pagination instructions ('If a search term isn't found on the first page, increment page') and examples. However, it does not explicitly mention when not to use it or contrast with sibling tools like search_unified.

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

search_unifiedA

Search across both STM and LTM with unified ranking.

Pagination: Results are paginated to help you find specific memories across large result sets from both short-term and long-term memory. Use page and page_size to navigate through results. If a search term isn't found on the first page, increment page to see more results.

Args: query: Text query to search for (max 50,000 chars). tags: Filter by tags (max 50 tags). limit: Maximum total results before pagination (1-100). stm_weight: Weight multiplier for STM results (0.0-2.0). ltm_weight: Weight multiplier for LTM results (0.0-2.0). window_days: Only include STM memories from last N days (1-3650). min_score: Minimum score threshold for STM memories (0.0-1.0). page: Page number to retrieve (1-indexed, default: 1). page_size: Number of memories per page (default: 10, max: 100).

Returns: Dictionary with paginated results including: - results: List of matching memories from STM and LTM for current page - pagination: Metadata (page, page_size, total_count, total_pages, has_more)

Examples: # Get first page (10 results) search_unified(query="architecture", page=1, page_size=10)

# Get next page
search_unified(query="architecture", page=2, page_size=10)

Raises: ValueError: If any input fails validation.

ParametersJSON Schema
NameRequiredDescriptionDefault
pageNo
tagsNo
limitNo
queryNo
min_scoreNo
page_sizeNo
ltm_weightNo
stm_weightNo
window_daysNo

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden and does so admirably. It discloses pagination behavior, the structure of the returned dictionary, validation errors (ValueError), and the fact that results are unified across STM/LTM with ranking. This goes well beyond the schema and gives the agent actionable 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.

Conciseness5/5

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

The description is well-structured with clear sections (Pagination, Args, Returns, Examples, Raises). It front-loads the core purpose, then provides necessary detail without verbosity. Every sentence adds value, and the examples are illustrative without being redundant.

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 the tool's complexity (9 parameters, no annotations), the description covers all practical aspects: what it does, when to paginate, parameter constraints, return format, example invocations, and error conditions. It is complete enough for an agent to invoke the tool correctly without additional context.

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

Parameters5/5

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

Schema coverage is 0%, but the Args section compensates fully. It adds constraints not present in the schema, such as query max 50,000 chars, tags max 50, limit range (1-100), stm/ltm_weight ranges (0.0-2.0), window_days range (1-3650), and min_score range (0.0-1.0). The examples also clarify parameter usage in context.

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 line 'Search across both STM and LTM with unified ranking' uses a specific verb (search), names both resources (STM and LTM), and highlights the unified ranking aspect. This clearly differentiates it from sibling search_memory, which likely targets a single memory type.

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 establishes clear context: this tool searches both STM and LTM, which implicitly guides when to use it. It also provides pagination advice ('increment page to see more results'). However, it does not explicitly name alternatives or state when not to use it, stopping short of full exclusion guidance.

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

touch_memoryA

Reinforce a memory by updating its last accessed time and use count.

This resets the temporal decay and increases the memory's resistance to being forgotten. Optionally can boost the memory's base strength.

Args: memory_id: ID of the memory to reinforce (valid UUID). boost_strength: Whether to boost the base strength.

Returns: Updated memory statistics including old and new scores.

Raises: ValueError: If memory_id is invalid.

ParametersJSON Schema
NameRequiredDescriptionDefault
memory_idYes
boost_strengthNo

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.7/5.0
Behavior5/5

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

There are no annotations, so the description carries the full burden. It discloses the mechanism (updates last accessed time and use count), effects (resets decay, increases resistance), optional boost, return values, and error condition for invalid IDs. It does not mention permissions or side effects on other memories, but these are not critical for this operation.

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-structured with a clear purpose statement, mechanism explanation, and clearly labeled Args/Returns/Raises sections. It is appropriately detailed 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 the tool has only 2 parameters and an output schema, the description covers all essential aspects: what it does, how to use it, what it returns, and an error case. It provides enough context for an agent to select and invoke it 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 description coverage is 0%, so the description must compensate. It provides explicit explanations for both parameters: memory_id as 'ID of the memory to reinforce (valid UUID)' and boost_strength as 'Whether to boost the base strength'. This adds meaning beyond the schema.

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 a specific action ('Reinforce a memory by updating its last accessed time and use count') and resource (memory), which distinguishes it from sibling tools focused on creating, searching, or consolidating memories.

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 explains when this tool is useful (to reset temporal decay and increase resistance to forgetting) and mentions an optional boost, but it does not explicitly contrast it with alternatives like promote_memory or provide exclusion conditions.

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. 13 tool updatesv0.2.1
    • First observedcluster_memories
    • First observedconsolidate_memories
    • First observedcreate_relation
    • First observedgc
    • First observedget_performance_metrics
    • First observedopen_memories
    • First observedpromote_memory
    • First observedread_graph
    • First observedreset_performance_metrics
    • First observedsave_memory
    • First observedsearch_memory
    • First observedsearch_unified
    • First observedtouch_memory

TDQS

A4.1/5.0

Scored across 13 tools

Disambiguation4/5

Most tools have distinct purposes: save, retrieve, search, promote, prune, etc. Some overlap exists between cluster_memories (finding groups) and consolidate_memories (merging groups), and between search_memory (STM only) and search_unified (STM+LTM), but descriptions clarify the boundaries.

Naming Consistency4/5

The majority of tools follow a clear verb_noun pattern (save_memory, open_memories, search_memory, promote_memory). The abbreviation 'gc' breaks the pattern, and 'search_unified' is slightly less descriptive than the others, but overall naming is consistent and predictable.

Tool Count5/5

13 tools is well-scoped for a memory management server. Each tool covers a distinct aspect (creation, retrieval, search, reinforcement, consolidation, promotion, garbage collection, relations, metrics) without feeling bloated or sparse.

Completeness4/5

The tool surface covers the core memory lifecycle: save, retrieve, search, reinforce, promote, cluster, consolidate, and garbage collect. Minor gaps include no direct way to edit a memory's content or explicitly delete a single memory by ID (GC handles removal but not selectively). Relation management is also limited to creation with no update/delete.

Maintenance

ActivityInactive
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • F
    license
    B
    quality
    D
    maintenance
    A Model Context Protocol server that provides persistent memory capabilities for AI systems, enabling true continuity of consciousness across conversations through episodic, semantic, procedural, and strategic memory types.
    24
    6
    -
  • F
    license
    Not graded
    quality
    D
    maintenance
    A MCP server that provides persistent memory for AI assistants, storing personal information, relationships, and observations to enable personalized and contextual conversations.
    4
    -
  • A
    license
    A
    quality
    D
    maintenance
    An MCP server that implements memory with decay mechanics, allowing AI agents to store and retrieve memories that fade over time unless accessed, with a permanent journal for verification.
    3
    MIT