Overview
Retrieve high-level statistics about the memory system — total sessions, observations, prompts, and tracked projects. Useful for understanding the scope of stored memories and validating that data is being captured.This tool is part of the admin profile and uses deferred loading. It’s designed for dashboards, TUIs, and manual inspection rather than routine agent operations.
Parameters
This tool takes no parameters.Response
Formatted statistics summary
- Sessions: Total number of coding sessions tracked
- Observations: Total observations (memories) saved
- Prompts: Total user prompts recorded
- Projects: Comma-separated list of project names
Usage Example
Get Current Stats
Empty Database
If no data exists yet:When to Use
- System health: Verify that memories are being captured
- Dashboard display: Show metrics in a TUI or web interface
- Data validation: Confirm memory system is working after setup
- Project overview: See which projects have been tracked
Stats Structure
The underlyingStats type from internal/store/store.go contains:
Agent vs Admin Profile
Why is this in the admin profile?AI agents don’t typically need system-wide statistics during coding sessions. This tool is designed for:
- Human operators using the TUI (
engram tui) - Dashboard applications
- CLI inspection (
engram statsif implemented) - Manual curation and maintenance
Performance
This tool counts records across the database, which is fast for SQLite but uses deferred loading to avoid including it in every MCP initialization.Related Tools
mem_context- Get recent session context (agent-facing)mem_timeline- View chronological observation contextmem_search- Search observations