Skip to main content
Glama
mcp-keycloak

mcp-keycloak

by idoyudha

reset_user_password

Reset a user's password in a Keycloak realm and optionally require the user to change it at next login.

Instructions

Reset a user's password.

Args:
    user_id: The user's ID
    password: New password
    temporary: Whether the password is temporary (user must change on next login)
    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>",
      "password": "<password>"
    },
    "name": "reset_user_password"
  }
}

Input Schema

NameRequiredDescriptionDefault
realmNo
user_idYes
passwordYes
temporaryNo

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: -"reset_user_passwordOutput"New value: +"reset_user_passwordDictOutput"
  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 supplied, the description carries the full disclosure burden, and it omits the behavior that matters most for a password mutation: whether existing sessions are invalidated, whether the change is reversible, whether realm password policy is enforced, and how errors surface. It does clarify the semantics of temporary ("user must change on next login"), which is genuinely useful behavioral context, but that is the only real disclosure.

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 docstring structure is front-loaded and easy to scan: purpose first, then Args, then Returns. The Args list is somewhat redundant with the schema, but nothing is padded or rambling.

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

Completeness2/5

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

For a security-sensitive mutation with zero annotation coverage, the entry is thin: it says nothing about required permissions, side effects on active sessions, or failure modes. The "Returns: Status message" line is redundant given an output schema exists, so it does not compensate for the missing behavioral detail.

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 to its credit it documents all four parameters including the defaulted temporary and realm fields. However, most entries merely restate the field name ("user_id: The user's ID"), adding no format, constraint, or policy detail for password strength or realm resolution rules.

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 description opens with a specific verb+resource: "Reset a user's password." That is unambiguous about the operation. It doesn't differentiate itself from the plausible sibling update_user, so it falls short of a 5.

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 versus update_user or other account-modification siblings, and no stated prerequisites such as needing administrative privileges on the target realm. The reader is left to infer all usage context from the name alone.

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