add_fact
Declare entities or assert typed relationships in the knowledge graph for surgical corrections, fixing inaccuracies with provenance tracking.
Instructions
Write a correction into the knowledge graph. With only 'subject', declares/upserts a single entity. With 'subject', 'relation', and 'object', asserts a typed relationship between two entities (creating either endpoint if missing). Valid relations: CITES, CONTRASTS_WITH, EXTENDS, INFLUENCES, UNCERTAIN_SAME_AS, UNTYPED_RELATION. Manual writes are tagged source='manual_mcp'. Use for surgical fixes, not bulk import.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| object | No | Target entity name. Omit to just declare 'subject'. | |
| subject | Yes | Entity name (the source entity). | |
| evidence | No | Optional ≤200-char justification stored on the edge. | |
| relation | No | Relationship type. Required only when 'object' is given. | |
| confidence | No | Confidence 0.0–1.0 (default 1.0 for human-asserted facts). | |
| object_type | No | Entity type for object (default Concept). | Concept |
| subject_type | No | Entity type for subject (default Concept). | Concept |