Skip to main content
Glama

list-realms

Retrieve all available realms from the Keycloak identity and access management server to manage authentication and authorization configurations.

Instructions

List all available realms

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler implementation for the 'list-realms' tool. Fetches all realms from Keycloak using kcAdminClient.realms.find() and returns a formatted text list.
    case "list-realms": { const realms = await kcAdminClient.realms.find(); return { content: [{ type: "text", text: `Available realms:\n${realms.map(r => `- ${r.realm}`).join('\n')}` }] }; }
  • src/index.ts:74-82 (registration)
    Registration of the 'list-realms' tool in the ListToolsRequestHandler response, defining name, description, and empty input schema.
    { name: "list-realms", description: "List all available realms", inputSchema: { type: "object", properties: {}, required: [] } },
  • Input schema for the 'list-realms' tool, which requires no parameters (empty object).
    inputSchema: { type: "object", properties: {}, required: [] }
Install Server

Other Tools

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/ChristophEnglisch/keycloak-model-context-protocol'

If you have feedback or need assistance with the MCP directory API, please join our Discord server