create_relation
Create explicit, typed relations between two memories, defining how they connect with a specified relation type, strength, and optional metadata.
Instructions
Create an explicit relation between two memories.
Links two memories with a typed relationship.
Args: from_memory_id: Source memory ID (valid UUID). to_memory_id: Target memory ID (valid UUID). relation_type: Type of relation (must be one of: related, causes, supports, contradicts, has_decision, consolidated_from). strength: Strength of the relation (0.0-1.0). metadata: Additional metadata about the relation.
Returns: Created relation ID and confirmation.
Raises: ValueError: If any input fails validation.
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_memory_id": "<from_memory_id>",
"to_memory_id": "<to_memory_id>",
"relation_type": "<relation_type>"
},
"name": "create_relation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| metadata | No | ||
| strength | No | ||
| to_memory_id | Yes | ||
| relation_type | Yes | ||
| from_memory_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||