Skip to main content
Glama
mcp-keycloak

mcp-keycloak

by idoyudha

update_user

Edit an existing Keycloak user's username, email, name, enabled status, email verification, and custom attributes in a specified realm.

Instructions

Update an existing user.

Args:
    user_id: The user's ID
    username: New username
    email: New email address
    first_name: New first name
    last_name: New last name
    enabled: Whether the user is enabled
    email_verified: Whether the email is verified
    attributes: Updated user attributes
    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": {
      "user_id": "<user_id>"
    },
    "name": "update_user"
  }
}

Input Schema

NameRequiredDescriptionDefault
emailNo
realmNo
enabledNo
user_idYes
usernameNo
last_nameNo
attributesNo
first_nameNo
email_verifiedNo

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_userOutput"New value: +"update_userDictOutput"
  2. First observed

TDQS

B3/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 burden, and it discloses almost nothing beyond "update": no permission requirements, no statement about whether changes are reversible, and critically no explanation of what an omitted or null field does (leave unchanged vs. clear). The only behavioral detail is the "Returns: Status message" line, which is too thin for a 9-parameter mutation.

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 line is front-loaded and the Args/Returns block is easy to scan, with no filler prose. It is slightly padded by tautological parameter lines that add no information.

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?

The description does not need to explain return values because an output schema exists, and the Args block matches the schema structure. What remains missing (partial-update semantics, permissions) is a behavioral gap rather than a documentation gap.

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

Parameters2/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 supply meaning, yet most glosses merely restate the name ("username: New username", "email: New email address", "attributes: Updated user attributes"). Only "realm: Target realm (uses default if not specified)" adds real semantics; the null-versus-absent distinction for the eight optional fields is never addressed.

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?

The first line, "Update an existing user," gives a specific verb and resource, so the agent knows exactly the operation class. It does not, however, distinguish this from siblings such as create_user, delete_user, or reset_user_password, which compete for similar requests.

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 guidance on when to use this tool rather than create_user, delete_user, or the more targeted siblings like reset_user_password or add_user_to_group. Nothing indicates prerequisites, permissions, or that updated fields are optional.

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