Skip to main content
Glama
mrz1880

mcp-keycloak-admin

Create identity provider

keycloak_idp_create

Create a new identity provider in a Keycloak realm with a unique alias and provider type. Optionally configure settings like clientId and authorization URL via key-value pairs.

Instructions

Creates a new identity provider in the target realm. This is a write operation and is not idempotent: calling it again with an existing alias will fail rather than update. Check keycloak_idp_list first to avoid alias collisions, and use keycloak_idp_get afterward to verify the result. Returns a confirmation message naming the created provider.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
aliasYesUnique alias for the new identity provider within the realm; used as its identifier in later calls (e.g. "google", "corporate-saml"). Must not collide with an existing alias. Required.
configNoProvider-specific configuration as string key/value pairs (e.g. clientId, clientSecret, authorizationUrl, tokenUrl). Non-string values are ignored. Defaults to an empty object when omitted.
enabledNoWhether the provider is enabled for use. Defaults to true; pass false to create it in a disabled state.
providerIdYesKeycloak provider type that determines the protocol and expected config keys (e.g. "oidc", "saml", "google", "github"). Required.
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Describes non-idempotency, failure on duplicate alias, return value (confirmation message). Adds behavioral context beyond annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, front-loaded with action, then behavioral detail, then workflow. No wasted words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Complete for a create tool: covers pre-conditions, operation, post-verification, and return format. No output schema needed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema covers all parameters fully. Description reinforces alias as unique identifier and providerId as determining protocol, adding value beyond schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Clear verb 'Creates' and resource 'identity provider'. Distinguishes from sibling tools by referencing keycloak_idp_list and keycloak_idp_get for pre/post checks.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides explicit guidance: check keycloak_idp_list first to avoid collisions, use keycloak_idp_get to verify. No explicit when-not-to-use, but context is clear.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

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/mrz1880/mcp-keycloak-admin'

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