memory_stats
Get filtered statistics on stored memories, including total counts, type distribution, top tags, importance levels, and keyword frequency. Narrow results by query, tags, time range, or minimum importance.
Instructions
Get statistics about memories with optional filtering.
Usage Examples: // Get overall stats memory_stats()
// Stats for memories containing "error" memory_stats({ query: "error" })
// Stats for last week memory_stats({ timeRange: { start: "2025-01-17", end: "2025-01-24" } })
// Stats for React-related errors memory_stats({ query: "react error*", minImportance: 0.5 })
// Stats for specific tags memory_stats({ tags: ["bug", "frontend"] })
Returns:
Total memory count (filtered)
Memory type distribution
Top 20 tags with counts
Importance distribution
Keyword frequency (if applicable)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Filter by tags | |
| query | No | Search query (supports wildcards with *) | |
| timeRange | No | ||
| minImportance | No | Minimum importance threshold |