get_accessible_realms
Retrieve a list of accessible realms in the Keycloak identity and access management system for streamlined access control and user management.
Instructions
Get accessible realms.
Returns:
List of accessible realms
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/realm_tools.py:9-17 (handler)The main handler function for the 'get_accessible_realms' tool. It is decorated with @mcp.tool(), which likely registers it in the MCP system. The function uses a KeycloakClient instance to make a GET request to '/realms' and returns the list of accessible realms.@mcp.tool() async def get_accessible_realms() -> List[Dict[str, Any]]: """ Get accessible realms. Returns: List of accessible realms """ return await client._make_request("GET", "/realms", skip_realm=True)