end_session
End a work session. This triggers context block generation — your activities are summarized and stored in the knowledge graph for future reference.
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>",
"outcome": "<outcome>"
},
"name": "end_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| outcome | Yes | Outcome: success, failure, partial, abandoned | |
| session_id | Yes | Session ID to end | |
| token_usage | No | Token usage for this session. JSON object with fields: input_tokens (int), output_tokens (int), total_tokens (int), model (string), estimated_cost_usd (float). Optional — set when the agent can report consumption. |