End session
end_sessionUse this when the user wants to stop studying before the cards run out, or after the last card. Closes the session and returns its summary (cards reviewed, counts by rating); give the user a one-sentence recap. Every review already recorded stays, and ending a session again changes nothing.
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 | The session_id start_study_session returned. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| easy | Yes | ||
| good | Yes | ||
| hard | Yes | ||
| note | Yes | Where the user can study next time, on their own. | |
| again | Yes | ||
| reviewed | Yes |