add_triple
Create a relationship between two entities in a knowledge graph by specifying subject, predicate, and object, with automatic entity creation.
Instructions
Add a knowledge graph triple (subject -> predicate -> object).
Entities are auto-created by name if they don't exist.
Args: subject: The subject entity name. predicate: The relationship predicate. object_name: The object entity name.
Returns: JSON string with the created triple details.
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": "<subject>",
"predicate": "<predicate>",
"object_name": "<object_name>"
},
"name": "add_triple"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| subject | Yes | ||
| predicate | Yes | ||
| object_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |