graph_maintain
Perform maintenance on the knowledge graph: rebuild from event log to fix inconsistencies, compact history to reduce file size, or retrieve graph statistics.
Instructions
Perform maintenance operations on the knowledge graph: rebuild snapshot from event log, or compact event history.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"operation": "<operation>"
},
"name": "graph_maintain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| storeId | No | Optional store ID to target a specific registered store instead of the active one | |
| operation | Yes | Maintenance operation: "rebuild" fixes inconsistencies, "compact" reduces file size, "stats" returns graph statistics |