Skip to main content
Glama

get_client

Retrieve a specific client by its database ID from the Keycloak identity and access management server, specifying the target realm if needed, and return the client object.

Instructions

Get a specific client by database ID. Args: id: The client's database ID (not client_id) realm: Target realm (uses default if not specified) Returns: Client object

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
realmNo

Implementation Reference

  • The core handler function for the 'get_client' MCP tool. Decorated with @mcp.tool() for automatic registration and schema generation from signature and docstring. Fetches a Keycloak client by its database ID.
    @mcp.tool() async def get_client(id: str, realm: Optional[str] = None) -> Dict[str, Any]: """ Get a specific client by database ID. Args: id: The client's database ID (not client_id) realm: Target realm (uses default if not specified) Returns: Client object """ return await client._make_request("GET", f"/clients/{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