add_assertion
Create a directed relationship between entities in a code knowledge graph, specifying relation type, confidence, and domain evidence.
Instructions
Create a precise edge between two nodes in the knowledge graph.
Use this when you need exact control over the graph structure:
Specific relation type between two entities
Confidence level on an assertion
Domain scoping
Both "from" and "to" become nodes if they don't exist yet.
Example: add_assertion(from="Grafema", relation="uses", to="RFDB", context="RFDB is the storage engine for code graphs", confidence=1.0)
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": {
"from": "<from>",
"relation": "<relation>",
"to": "<to>"
},
"name": "add_assertion"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | Yes | Source entity name or ID | |
| relation | Yes | Relation type for the edge | |
| to | Yes | Target entity name or ID | |
| context | No | Additional context or evidence for this assertion | |
| confidence | No | Confidence level 0-1 | |
| domain | No | Knowledge domain this assertion belongs to |