retract_node
Soft-delete or hard-delete an incorrect knowledge node to remove hallucinations and factually wrong entries from the graph, preserving audit trail with soft delete.
Instructions
Retract (soft-delete or hard-delete) a knowledge node.
Use when a node was incorrectly extracted, is factually wrong, or is
a hallucination that slipped through grounding checks.
Soft delete (default, hard_delete=false):
Sets retracted=true on the node. It remains in the graph for audit purposes
but is excluded from all searches, retrieval, and concept matching.
Recoverable: set retracted=false manually if needed.
Hard delete (hard_delete=true):
Permanently removes the node and ALL its edges. Irreversible.
Use only for nodes with zero useful relationships.
Supported labels: Concept, Equation, Principle, CircuitTopology, Parameter,
Assumption, Insight, Hypothesis, DesignDecision, BenchResult.
Args:
node_id: The ID value (e.g. the concept_id, equation_id, etc.).
label: Node type — "Concept", "Equation", "Parameter", etc.
reason: Human-readable reason (stored on the node for audit trail).
hard_delete: If True, permanently delete. Default: False (soft-delete).
Returns:
JSON with action taken and whether the node was found.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | Yes | ||
| reason | No | ||
| node_id | Yes | ||
| hard_delete | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |