get_realm_info
Retrieve realm configuration details from Keycloak identity management to understand current settings and permissions.
Instructions
Get information about the current realm.
Args:
realm: Target realm (uses default if not specified)
Returns:
Realm configuration object
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| realm | No |
Implementation Reference
- src/tools/realm_tools.py:20-32 (handler)The main handler function for the 'get_realm_info' tool. It uses the KeycloakClient to make a GET request to the realm endpoint and returns the realm information.@mcp.tool() async def get_realm_info(realm: Optional[str] = None) -> Dict[str, Any]: """ Get information about the current realm. Args: realm: Target realm (uses default if not specified) Returns: Realm configuration object """ response = await client._make_request("GET", "", params=None, realm=realm) return response