muninn_reconcile
Scan all memories for orphan/inconsistency issues across KV, D1 tag index, and Vectorize. Pass repair:true to fix gaps. Returns a report of what was found and (if repair) what was fixed. For large accounts, pass limit + cursor to process one batch per call (a Worker invocation caps at 1000 subrequests) — the report's nextCursor feeds the next call until it's null. With reindexAll:true every memory's vector is re-embedded unconditionally (used for the vector-id format migration) instead of only re-embedding vectors detected as missing.
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": "muninn_reconcile"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max memories to process this call. Omit to process ALL (may exceed the Worker subrequest cap on large accounts). Use ~150 for batched migration. | |
| cursor | No | KV pagination cursor from a previous call's nextCursor. Omit for the first batch. | |
| repair | No | If true, repair gaps: re-index missing D1 tags and re-embed missing Vectorize vectors. If false, report only. | |
| reindexAll | No | If true (with repair), re-embed + re-upsert EVERY memory's vector unconditionally — skips the existence probe (saves one AI call + one query per memory). Use for the vector-id format migration. |