inspect
View memory decay status, relevance scores, and ages to debug and analyze stored information in AI systems.
Instructions
See all memories with decay status, relevance scores, and ages. Debug view.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- index.js:295-314 (handler)The implementation of the inspect tool logic.
function handleInspect() { const memories = loadMemories(); const now = Date.now(); const inspected = memories.map(m => { const rel = computeRelevance(m, now); return { id: m.id, content: m.content.slice(0, 80) + (m.content.length > 80 ? '...' : ''), category: m.category, mentions: m.mention_count, age_days: rel.age_days, relevance: rel.relevance, decay: rel.decay, status: rel.status, }; }).sort((a, b) => b.relevance - a.relevance); return { memories: inspected, total: inspected.length }; } - index.js:420-423 (registration)MCP tool definition for 'inspect'.
name: 'inspect', description: 'See all memories with decay status, relevance scores, and ages. Debug view.', inputSchema: { type: 'object', properties: {} } },