get_realm_events_config
Retrieve event configuration details for a specified realm in Keycloak to manage identity and access settings effectively. Returns the configuration object for analysis or further use.
Instructions
Get realm events configuration.
Args:
realm: Target realm (uses default if not specified)
Returns:
Events configuration object
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| realm | No |
Implementation Reference
- src/tools/realm_tools.py:157-168 (handler)The main handler function that implements the logic for the 'get_realm_events_config' tool. It retrieves the events configuration for a specified or default realm using the Keycloak client.async def get_realm_events_config(realm: Optional[str] = None) -> Dict[str, Any]: """ Get realm events configuration. Args: realm: Target realm (uses default if not specified) Returns: Events configuration object """ return await client._make_request("GET", "/events/config", realm=realm)
- src/tools/realm_tools.py:156-156 (registration)The @mcp.tool() decorator that registers the get_realm_events_config function as an MCP tool.@mcp.tool()