Add Knowledge Relationships
add_knowledge_relationshipsBulk create relationships between existing entities in a knowledge graph to map connections like AUTHORED or REFERENCES.
Instructions
Bulk create relationships between entities in the knowledge graph. Each relationship needs from_id, to_id (matching existing entity_ids), rel_type (matching schema — e.g., 'AUTHORED', 'COVERS', 'REFERENCES'), and optional properties.
Use get_knowledge_schema first to see available relationship types.
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": {
"project_code": "<project_code>",
"relationships": "<relationships>"
},
"name": "add_knowledge_relationships"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_code | Yes | Project code (e.g., 'abc12345') — from list_knowledge_projects | |
| relationships | Yes | Array of relationships to create | |
| environment | No | Target environment | staging |