Skip to main content
Glama
mcp-keycloak

mcp-keycloak

by idoyudha

update_client

Modify an existing Keycloak client's configuration, including client ID, redirect URIs, CORS origins, enabled status, and access grants, in a target realm.

Instructions

Update an existing client.

Args:
    id: The client's database ID
    client_id: New client ID
    name: New display name
    description: New description
    enabled: Whether the client is enabled
    redirect_uris: New redirect URIs
    web_origins: New CORS origins
    public_client: Whether client is public
    service_accounts_enabled: Enable service accounts
    direct_access_grants_enabled: Enable direct access grants
    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": {
      "id": "<id>"
    },
    "name": "update_client"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
nameNo
realmNo
enabledNo
client_idNo
descriptionNo
web_originsNo
public_clientNo
redirect_urisNo
service_accounts_enabledNo
direct_access_grants_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: -"update_clientOutput"New value: +"update_clientDictOutput"
  2. First observed

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden and mostly does not meet it. It never says whether omitted optional fields (all of which default to null) are left untouched or cleared, whether the change is reversible, what permissions are needed, or that enabling/disabling or making a client public has security implications. "Returns: Status message" adds almost nothing.

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 statement is front-loaded in a single sentence, followed by a terse, well-ordered argument list. There is no filler, though the list is essentially a restatement of schema property names with short labels.

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?

The description covers the parameter surface and the existence of a status return (the output schema handles the rest), which is reasonable for an 11-parameter tool. What is missing is the behavior an agent needs to safely mutate: partial-update semantics, permission requirements, and side effects of toggling public_client or service_accounts_enabled.

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%, so the description must compensate, and it does provide a one-line gloss for each of the 11 parameters. The most valuable distinction is id (database ID) versus client_id (new client ID), plus the note that realm falls back to a default. However, it does not explain format expectations for redirect_uris/web_origins or the null-versus-omitted semantics that dominate this schema.

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?

"Update an existing client" gives a specific verb plus resource, and the args list makes clear this is a partial-field mutation on a single client identified by database ID. It does not distinguish itself from siblings such as create_client or get_client, so an agent must infer boundaries from names alone.

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 statement of when to use this versus create_client/update_group, no prerequisite or permission context, and no indication of what to do when only some fields need changing. The only usage signal is that id is required, which the schema already conveys.

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