graph_link_entities
Create or remove a directed relationship between two entities in the memory knowledge graph. Specify source (from), relation type, and target (to). Optionally set action to 'unlink' to remove the relationship.
Instructions
Create or remove a directed relationship between two entities. Use action:"unlink" to remove a relationship.
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>",
"relationType": "<relationType>",
"to": "<to>"
},
"name": "graph_link_entities"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| storeId | No | Optional store ID to target a specific registered store instead of the active one | |
| action | No | Action to perform: "link" (default) to create, "unlink" to remove | |
| from | Yes | Source entity name or ID | |
| relationType | Yes | Type of relationship (e.g., "works_on", "knows", "depends_on") | |
| to | Yes | Target entity name or ID |