memory_stats
Retrieve statistics on memories, including count, type distribution, tags, and importance. Filter by query, tags, importance, or time range.
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 |
|---|---|---|---|
| query | No | Search query (supports wildcards with *) | |
| tags | No | Filter by tags | |
| minImportance | No | Minimum importance threshold | |
| timeRange | No |