What this means in practice
Usecrystal_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
| Parameter | Type | Required | Description |
|---|---|---|---|
channel | string | No | Optional channel identifier. If provided, stats are scoped to that channel. |
Returns
Examples
Get global stats:Interpreting the results
totalMemories— cumulative memories ever created (including archived)archivedCount— memories marked as archived; not recalled by defaultavgStrength— mean strength across all active memories; indicates overall saliencerecentCaptures— automatic captures in the last 24 hours fromcrystal_capturehookbyStore— distribution across the five memory typesstrongest— top-N memories by strength; useful for identifying what the system prioritizes
When to use vs alternatives
| Use case | Tool |
|---|---|
| Overall health & usage snapshot | crystal_stats |
| Recall a specific memory by query | crystal_recall |
| List all memories (not summary) | Use dashboard or crystal_what_do_i_know |
| Check recent messages | crystal_recent |
Error handling
| Error | Cause | Resolution |
|---|---|---|
| Embedding service unavailable | The API cannot reach the embedding backend. | Retry; check service health. |
| Memory Crystal not configured | Environment variables not set. | Ensure MEMORY_CRYSTAL_API_URL and MEMORY_CRYSTAL_API_KEY are defined. |
| Invalid channel | Channel identifier is malformed or does not exist. | Verify the channel name. |
Source of truth
mcp-server/src/tools/stats.ts— tool definitionconvex/crystal/stats.ts— backend calculation logicapps/web/app/(dashboard)/— stats visualization in the dashboard
