delete_realm_session
Remove a specific user session from a Keycloak realm by session ID, with optional handling for offline sessions. Use it to revoke or clean up active or offline user sessions.
Instructions
Remove a specific user session.
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": {
"realm": "<realm>",
"session": "<session>"
},
"name": "delete_realm_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| realm | Yes | Realm name | |
| session | Yes | User session ID | |
| isOffline | No | Whether the session is an offline session |