register_relationship
Register a relationship between two code entities, specifying type and metadata, to document connections like calls or imports.
Instructions
Register a relationship between entities.
Args: from_entity: Name of the source entity to_entity: Name of the target entity relationship_type: Type of relationship (calls, inherits, imports, etc.) metadata: Additional metadata as key-value pairs
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_entity": "<from_entity>",
"to_entity": "<to_entity>",
"relationship_type": "<relationship_type>"
},
"name": "register_relationship"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from_entity | Yes | ||
| to_entity | Yes | ||
| relationship_type | Yes | ||
| metadata | No |