login_events
Retrieve normalized login events from Keycloak or Authentik to troubleshoot authentication failures, audit user access, and analyze patterns by user, event type, or IdP target.
Instructions
[READ] Recent authentication events, normalized (time/type/user/ip/client/error).
Args: event_type: Platform vocabulary — Keycloak LOGIN / LOGIN_ERROR, authentik login / login_failed (case-insensitive). user: Optional username / user-id filter. max_results: Page bound (default 200, max 500). target: IdP target name from config; omit for the default.
Returns {"events": [...], "returned": N, "limit": L, "truncated": bool}. truncated is measured (one extra event is fetched), not guessed — when it is true, more events exist; re-run with a higher max_results rather than treating the partial feed as the whole picture. Optional fields an event did not carry are null, never "".
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "login_events"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user | No | ||
| target | No | ||
| event_type | No | ||
| max_results | No |