temporal_stats
Analyze memory creation patterns over time, showing frequency and most active periods for a given session.
Instructions
Returns temporal statistics about when memories were created — frequency over time, most active periods.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessionId | Yes | Session identifier |
Implementation Reference
- src/index.ts:233-243 (registration)Registration of the 'temporal_stats' tool in the ListToolsRequestSchema handler, defining its name, description, and input schema (sessionId required).
{ name: 'temporal_stats', description: 'Returns temporal statistics about when memories were created — frequency over time, most active periods.', inputSchema: { type: 'object', properties: { sessionId: { type: 'string', description: 'Session identifier' }, }, required: ['sessionId'], }, }, - src/index.ts:236-243 (schema)Input schema for temporal_stats: takes a sessionId string parameter.
inputSchema: { type: 'object', properties: { sessionId: { type: 'string', description: 'Session identifier' }, }, required: ['sessionId'], }, }, - src/index.ts:401-404 (handler)Handler for the 'temporal_stats' tool in CallToolRequestSchema. Calls memory.temporalStats(sessionId) and returns the stats as JSON.
case 'temporal_stats': { const stats = await (memory as any).temporalStats(args.sessionId as string); return { content: [{ type: 'text', text: JSON.stringify(stats, null, 2) }] }; }