Skip to main content
Glama
mrz1880

mcp-keycloak-admin

Regenerate client secret

keycloak_client_regenerate_secret
Destructive

Regenerate a confidential client's secret, invalidating the previous one. Requires explicit confirmation to prevent accidental changes.

Instructions

Regenerate (rotate) a confidential client's secret. This is a destructive, non-idempotent write: it invalidates the previous secret, which immediately stops working, so any system using the old value must be updated. Requires explicit confirmation via confirm=true (otherwise it aborts without changing anything). Use keycloak_client_get_secret to read the current secret without rotating. Returns the new plaintext secret, or a reason string when not regenerated.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
confirmNoMust be true to actually rotate the secret. When false or omitted (default), the operation is aborted and nothing is changed; this is a safeguard against accidental rotation.
clientIdYesThe client's clientId (the human-readable OAuth/OIDC client identifier), not the internal UUID. Required. The client must be confidential (publicClient=false).
Behavior5/5

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

Beyond annotations (destructiveHint=true, idempotentHint=false), the description adds critical behavioral details: the write is non-idempotent, invalidates the previous secret immediately, and requires confirmation. No contradiction with 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?

The description is concise (two sentences in a short paragraph) with no redundancy. It front-loads the action, then covers consequences, alternatives, and return value efficiently. Every sentence earns its place.

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?

Despite no output schema, the description clarifies the return value (new plaintext secret or reason string). It fully covers purpose, usage, behavior, parameters, and consequences. No gaps remain for an agent to select and invoke correctly.

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

Parameters5/5

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

Schema coverage is 100%, but the description adds significant value: for clientId, it clarifies it's the human-readable identifier (not UUID) and the confidentiality requirement; for confirm, it explains the safeguard role and default behavior. This goes well beyond the 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?

The description clearly states 'Regenerate (rotate) a confidential client's secret,' using a specific verb and resource. It distinguishes from sibling tools like keycloak_client_get_secret (read-only) and keycloak_client_update (non-secret updates).

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

Usage Guidelines5/5

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

Explicitly mentions the alternative keycloak_client_get_secret for reading without rotating. Specifies the safeguard mechanism (confirm=true) and the consequence of invalidating the old secret. Provides clear when-to-use and when-not-to-use guidance.

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