explain_memory
Debug unexpected memory search results by analyzing retrieval paths, freshness, scope filters, and matched terms to understand why memories matched your query.
Instructions
Explain why memories matched a query: retrieval path, freshness, scope, and matched terms. Read-only. Use when search results seem unexpected and you need to debug ranking or scope filtering.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Search query to explain — natural language or keywords, e.g. 'auth migration' | |
| limit | No | Maximum number of matched results to analyze and explain (default: 5) | |
| scope | No | Restrict to a specific scope, e.g. 'project:myapp'. Omit to use default scope | |
| sessionId | No | Session identifier to infer session-scoped search, e.g. 'abc123' | |
| allScopes | No | Set to true to search across all scopes instead of the default scope | |
| category | No | Filter results by memory category, e.g. 'preference', 'decision', 'fact' | |
| profile | No | Retrieval profile that tunes ranking: 'debug' for technical, 'fact-check' for precision |