get_accessible_realms
Retrieve the list of accessible realms in Keycloak for identity and access management configuration.
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-18 (handler)The handler function for the 'get_accessible_realms' MCP tool. It is decorated with @mcp.tool() for registration and fetches accessible realms using the KeycloakClient's _make_request method.@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)