1.7 KiB
1.7 KiB
Memory Graph Playbooks
Use these routing patterns to decide which tools to call and in what order.
1) Persist a New Entity (+ facts)
mcp__memory__search_nodeswith the proposed name- If not found →
mcp__memory__create_entities - Then
mcp__memory__add_observations - Optionally
mcp__memory__open_nodesto verify
Example intent → tools
- Intent: “Remember service Alpha (owner: Alice, repo: org/alpha)”
- Tools:
create_entities→ name: "service:alpha", type: "service"add_observations→ key facts (owner, repo URL, language, deploy URL)
2) Add Relations Between Known Entities
mcp__memory__open_nodesfor both- If either missing → create it first
mcp__memory__create_relations
Relation guidance
- Use active voice
relationType:depends_on,owned_by,maintained_by,deployed_to,docs_at - Prefer directional relations; add reverse relation only if it has a different meaning
3) Correct or Update Facts
mcp__memory__open_nodesmcp__memory__delete_observationsto remove stale/incorrect factsmcp__memory__add_observationsto append correct facts
4) Remove Entities or Links
mcp__memory__delete_relationsfor just the linkmcp__memory__delete_entitiesfor full removal (cascades relations)
5) Explore or Export
mcp__memory__read_graphto dump entire graphmcp__memory__search_nodesto find relevant nodes by keyword- For focused context, use
mcp__memory__open_nodeswith names
6) Session Rhythm
- Before deep work:
search_nodesoropen_nodesfor today’s entities - During work: add small observations at decision points
- After work: link new entities and summarize outcomes as observations