Skip to main content
Glama

get_client_secret

Retrieve the client secret from Keycloak using the client's database ID and optional realm. Simplify access management tasks by fetching the required secret object directly.

Instructions

Get the client secret. Args: id: The client's database ID realm: Target realm (uses default if not specified) Returns: Client secret object

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
realmNo

Implementation Reference

  • Handler function for the 'get_client_secret' MCP tool. Decorated with @mcp.tool(), which handles registration and schema inference from signature/docstring. Calls KeycloakClient._make_request to fetch the client secret.
    @mcp.tool() async def get_client_secret(id: str, realm: Optional[str] = None) -> Dict[str, str]: """ Get the client secret. Args: id: The client's database ID realm: Target realm (uses default if not specified) Returns: Client secret object """ return await client._make_request( "GET", f"/clients/{id}/client-secret", 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