Skip to main content
Glama

get_realm_default_groups

Retrieve a list of default groups associated with a specified or default realm in Keycloak identity and access management.

Instructions

Get default groups for the realm. Args: realm: Target realm (uses default if not specified) Returns: List of default groups

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
realmNo

Implementation Reference

  • The handler function for the 'get_realm_default_groups' tool. It is decorated with @mcp.tool() for registration and makes a GET request to the Keycloak API endpoint '/default-groups' to retrieve the list of default groups for the specified realm.
    @mcp.tool() async def get_realm_default_groups(realm: Optional[str] = None) -> List[Dict[str, Any]]: """ Get default groups for the realm. Args: realm: Target realm (uses default if not specified) Returns: List of default groups """ return await client._make_request("GET", "/default-groups", realm=realm)

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