memory_graph_relate
Assert a typed relation between two entities, auto-create or resolve them via aliases, and bump confidence on repeats. Returns edge details or closest relation suggestions if rejected.
Instructions
Assert a typed relation between two entities, e.g. ("web-app", "runs-on", "host-1"). Entities auto-create and resolve through
aliases; re-asserting an edge bumps its confidence. On a rejected
relation, pick a suggestion, fall back to related-to, or grow the
vocabulary deliberately via memory_relation_define (full).
Returns: {src, relation, dst, confidence, warnings} or
{error: "unknown_relation", suggestions}.
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": {
"src": "<src>",
"relation": "<relation>",
"dst": "<dst>"
},
"name": "memory_graph_relate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dst | Yes | The object entity. | |
| src | Yes | The subject entity. | |
| origin | No | Who asserted the edge. | |
| dst_type | No | Entity kind for ``dst``: set when the node is created, or filled in on an existing node that has none. | |
| relation | Yes | From the closed registry: ``depends-on``, ``part-of``, ``runs-on``, ``hosts``, ``uses``, ``configures``, ``stores-data-in``, ``related-to``. Separator variants normalise; an unknown name is rejected WITH the closest matches. | |
| src_type | No | Entity kind for ``src``: set when the node is created, or filled in on an existing node that has none. | |
| confidence | No | How sure you are, 0..1. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||