Associate Memories
associate_memoriesCreate typed relationships between memories to build a knowledge graph, improving recall by surfacing related context.
Instructions
Create a typed relationship between two memories. This builds a knowledge graph that improves recall by surfacing related context.
When to use:
After storing a new memory: link it to related existing memories
When a bug fix relates to an original feature implementation
When a new decision updates or invalidates a previous one
To connect patterns with their concrete examples
Authorable relationship types:
RELATES_TO: General relationship (default)
LEADS_TO: Causal relationship (A caused B)
OCCURRED_BEFORE: Temporal ordering
PREFERS_OVER: Chosen alternative
EXEMPLIFIES: Concrete example of a pattern
CONTRADICTS: Conflicts with another memory
REINFORCES: Strengthens another memory's validity
INVALIDATED_BY: Superseded by another memory
EVOLVED_INTO: Updated version of a concept
DERIVED_FROM: Implementation of a decision/pattern
PART_OF: Component of a larger effort
Read-only/internal relations:
System/internal relations such as SIMILAR_TO, PRECEDED_BY, EXPLAINS, SHARES_THEME, PARALLEL_CONTEXT, and DISCOVERED may appear in recall results, but they are not valid inputs for associate_memories.
Examples:
associate_memories({ memory1_id: "bug-fix-123", memory2_id: "feature-456", type: "RELATES_TO", strength: 0.9 })
associate_memories({ memory1_id: "new-decision", memory2_id: "old-decision", type: "EVOLVED_INTO", strength: 0.8 })
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| memory1_id | Yes | ID of the source memory (from store_memory response or recall results) | |
| memory2_id | Yes | ID of the target memory to link to | |
| type | Yes | Relationship type between the two memories | |
| strength | Yes | Relationship strength: 0.9+ direct causation, 0.7-0.9 strong relation, 0.5-0.7 moderate |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | Yes | Whether the association was created | |
| message | Yes | Confirmation message |