memory_related
Retrieve cross-referenced memories from a knowledge graph to enhance context understanding and connections between stored information.
Instructions
Return cross-referenced memories for a given entry.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| memory_id | Yes | ||
| refresh | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
Implementation Reference
- memora/server.py:996-1000 (handler)The tool `memory_related` is implemented as an async function in `memora/server.py`, decorated with `@mcp.tool()`. It calls the helper function `_get_related` to retrieve cross-referenced memories.
async def memory_related(memory_id: int, refresh: bool = False) -> Dict[str, Any]: """Return cross-referenced memories for a given entry.""" related = _get_related(memory_id, refresh) return {"id": memory_id, "related": related}