KG Add Triple
localnest_kg_add_tripleAdd facts to a knowledge graph by specifying a subject, predicate, and object. Entities are auto-created, and contradictory statements are detected.
Instructions
Add a subject-predicate-object triple to the knowledge graph. Entities are auto-created on first reference. Detects contradictions (same subject+predicate with different valid object) and warns without blocking.
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": {
"subject_name": "<subject_name>",
"predicate": "<predicate>",
"object_name": "<object_name>"
},
"name": "localnest_kg_add_triple"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| subject_name | Yes | ||
| predicate | Yes | ||
| object_name | Yes | ||
| subject_id | No | ||
| object_id | No | ||
| valid_from | No | ||
| valid_to | No | ||
| confidence | No | ||
| source_memory_id | No | ||
| source_type | No | manual | |
| terse | No | verbose | |
| response_format | No | json |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| meta | Yes |