Skip to main content
Retrieve aggregate statistics about your Memory Crystal memory store including counts, strength distribution, capture rate, and strongest memories.

What this means in practice

Use crystal_stats to:
  • Monitor total memory count and archive status
  • Understand memory distribution across stores (sensory, episodic, semantic, procedural, prospective)
  • Check recent capture activity (captures in the last 24 hours)
  • Identify the strongest memories by strength score
  • Assess overall health and usage patterns

Parameters

Returns

The response also includes a formatted markdown summary:

Examples

Get global stats:
Get stats for a specific channel:

Interpreting the results

  • totalMemories — cumulative memories ever created (including archived)
  • archivedCount — memories marked as archived; not recalled by default
  • avgStrength — mean strength across all active memories; indicates overall salience
  • recentCaptures — automatic captures in the last 24 hours from crystal_capture hook
  • byStore — distribution across the five memory types
  • strongest — top-N memories by strength; useful for identifying what the system prioritizes

When to use vs alternatives

Error handling

Source of truth

  • mcp-server/src/tools/stats.ts — tool definition
  • convex/crystal/stats.ts — backend calculation logic
  • apps/web/app/(dashboard)/ — stats visualization in the dashboard