Skip to main content
Glama

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/idoyudha/mcp-keycloak'

If you have feedback or need assistance with the MCP directory API, please join our Discord server