Create an edge between two nodes
create_edgeCreates a directed edge (source → target) for a STRUCTURAL relation: type "dependency" (A is built on / needs B) or "data_flow" (data moves A → B outside a request). Use for module/library deps, a route depending on the data store, a job writing a table. For a runtime request/call/integration use create_api instead, not an edge. Reserve connections for relations a maintainer would trace — don't wire everything. type ∈ project.edge_types; same source and target is rejected. See umtri://rules/system-structure (Connections).
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": {
"slug": "<slug>",
"source": "<source>",
"target": "<target>",
"type": "<type>"
},
"name": "create_edge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | Ground slug. | |
| type | Yes | Edge type — required. "dependency" (source is built on / needs target) or "data_flow" (data moves source → target) — use one of the ground's edgeTypes. | |
| label | No | ||
| source | Yes | Source node id. | |
| target | Yes | Target node id. | |
| metadata | No |