Skip to main content
Glama
idoyudha

mcp-keycloak

by idoyudha

get_group

Retrieve a specific Keycloak group by its ID to manage identity and access permissions within a specified realm.

Instructions

Get a specific group by ID.

Args:
    group_id: Group ID
    realm: Target realm (uses default if not specified)

Returns:
    Group object

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
group_idYes
realmNo

Implementation Reference

  • The 'get_group' tool handler, registered via @mcp.tool() decorator. Retrieves a specific group by its ID from the Keycloak server using the KeycloakClient.
    @mcp.tool()
    async def get_group(group_id: str, realm: Optional[str] = None) -> Dict[str, Any]:
        """
        Get a specific group by ID.
    
        Args:
            group_id: Group ID
            realm: Target realm (uses default if not specified)
    
        Returns:
            Group object
        """
        return await client._make_request("GET", f"/groups/{group_id}", 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