End Session
end_sessionEnds a session and promotes top episodic memories to long-term storage so valuable conversation learnings are preserved.
Instructions
End a session and consolidate episodic memories.
Mirrors human memory consolidation: short-term (episodic) memories that prove valuable get promoted to long-term (semantic) storage.
Top episodic memories are selected by salience score (combining importance, trust, access count, and recency). Only memories above the threshold are promoted.
Use this at the end of a conversation to preserve valuable learnings.
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": {
"session_id": "<session_id>"
},
"name": "end_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | Session ID to end | |
| promote_top | No | Promote top episodic memories to long-term storage (default: true) | |
| promote_type | No | Memory type for promoted memories: 'project' or 'pattern' (default: project) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||