get_login_history
Retrieve user login and logout events, including failed login attempts, to audit access and security.
Instructions
Retrieve login and logout events for users, including failed login attempts.
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": "get_login_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| userId | No | Optional: filter by specific user. Omit to get system-wide login events. | |
| dateFrom | No | ISO-8601 start datetime. | |
| dateTo | No | ISO-8601 end datetime (default: now). | |
| includeFailures | No | Include failed login attempts (default true). | |
| limit | No | Maximum results to return (default 50). |