clear_graph
Delete all entities and relations from a knowledge graph. Requires reason and confirmation token for graphs with over 10 entities, with event-sourced rollback support.
Instructions
Clear ALL entities and relations from the graph. Use sparingly! For graphs with >10 entities: requires reason AND confirm_token. Event-sourced: can rewind to before clear with get_state_at(timestamp).
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": "clear_graph"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | Reason for clearing (required for graphs >10 entities) | |
| confirm_token | No | Confirmation token for large graphs (format: CLEAR_<count>) |