Recent Retrieval Traces
memory-trace-recentLists recent diagnostic retrieval traces to investigate missed search results, showing whether a document was retrieved, filtered out, or dropped at a specific stage.
Instructions
List the most recent diagnostic retrieval traces. Each trace captures: query text, filters, per-stage candidate counts (corpus → vector above/below floor → keyword → final), result IDs, and total latency. Use this when investigating "why didn't you find the obvious doc" complaints — the trace shows whether the result was retrieved at all, whether it survived the floor, and which stage dropped it. Traces only persist when ENGRAM_ENABLE_RETRIEVAL_TRACES=true (default off). Returns an empty list when traces are disabled or no searches have run.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "memory-trace-recent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max traces to return (default: 25, max: 200). |