Skip to main content
Glama

get_group

Retrieve a specific group by ID from Keycloak's identity management system, optionally specifying a target realm. Returns the group object for accurate access control.

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: fetches a specific group by ID using KeycloakClient, registered via @mcp.tool() decorator.
    @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