get_realm_info
Retrieve detailed configuration data for a specified or default realm in Keycloak, enabling identity and access management analysis.
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 handler function implementing the 'get_realm_info' MCP tool. It is decorated with @mcp.tool() which registers it. Fetches realm information via KeycloakClient._make_request.@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