Skip to main content
Glama
mcp-keycloak

mcp-keycloak

by idoyudha

create_client

Registers a new Keycloak client in a target realm, configuring client ID, protocol, redirect URIs, and access-flow settings for application integration.

Instructions

Create a new client.

Args:
    client_id: Client ID (unique identifier)
    name: Display name
    description: Client description
    enabled: Whether the client is enabled
    always_display_in_console: Always display in account console
    root_url: Root URL for relative URLs
    redirect_uris: Valid redirect URIs
    web_origins: Allowed CORS origins
    protocol: Protocol (openid-connect or saml)
    public_client: Public client (no secret)
    bearer_only: Bearer-only client
    service_accounts_enabled: Enable service accounts
    authorization_services_enabled: Enable authorization services
    direct_access_grants_enabled: Enable direct access grants (password flow)
    implicit_flow_enabled: Enable implicit flow
    standard_flow_enabled: Enable standard flow (authorization code)
    realm: Target realm (uses default if not specified)

Returns:
    Status message

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "client_id": "<client_id>"
    },
    "name": "create_client"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
realmNo
enabledNo
protocolNoopenid-connect
root_urlNo
client_idYes
bearer_onlyNo
descriptionNo
web_originsNo
public_clientNo
redirect_urisNo
implicit_flow_enabledNo
standard_flow_enabledNo
service_accounts_enabledNo
always_display_in_consoleNo
direct_access_grants_enabledNo
authorization_services_enabledNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv1.3.0
    • addedOutput schema / additionalProperties
      Added value: +{
      +  "type": "string"
      +}
    • removedOutput schema / properties
      Removed value: -{
      -  "result": {
      -    "additionalProperties": {
      -      "type": "string"
      -    },
      -    "title": "Result",
      -    "type": "object"
      -  }
      -}
    • removedOutput schema / required
      Removed value: -[
      -  "result"
      -]
    • changedOutput schema / title
      Previous value: -"create_clientOutput"New value: +"create_clientDictOutput"
  2. First observed

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden. It reveals only that a status message is returned; it says nothing about required auth/permissions, conflict or error behavior on duplicate client_id, whether a secret is auto-generated, whether the creation is reversible, or side effects on the realm.

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

Conciseness4/5

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

The purpose sentence is front-loaded and the Args/Returns structure makes scanning easy. It is longer than ideal because the parameter list largely mirrors the schema, but nothing is off-topic or rambling.

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

Completeness3/5

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

An output schema exists, so the brief 'Returns: Status message' is sufficient on that front. For a 17-parameter mutation tool with no annotations, however, the definition omits operational context an agent needs: permission requirements, duplicate-handling, and defaults beyond realm (e.g., standard_flow_enabled=true, enabled=true) that materially change the created client.

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

Parameters3/5

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

Schema description coverage is 0% across 17 parameters, so the Args block is the only documentation and it does add real meaning in places: 'protocol (openid-connect or saml)', 'public_client (no secret)', 'direct_access_grants_enabled (password flow)', and the realm default. However, many entries merely restate field names ('name: Display name', 'enabled: Whether the client is enabled'), and there is no mention of types (redirect_uris and web_origins are arrays), valid URI formats, or the interaction between public_client and service accounts.

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

Purpose4/5

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

States a specific verb and resource: 'Create a new client.' An agent immediately knows the operation. It does not name or distinguish itself from siblings like update_client or get_client, but the intent is unambiguous.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no prerequisites (e.g., realm must exist, required permissions), and no statement about what happens if the client_id already exists. The only hint is 'realm: Target realm (uses default if not specified)', which is parameter-level rather than usage guidance.

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