Skip to main content
Glama
Keycloak MCP Server

Keycloak MCP Server

by Cayetano97

update_user_credential_label

Update the label of a Keycloak user credential by specifying the realm, user ID, credential ID, and new label data.

Instructions

Update the label of a user credential.

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": {
      "realm": "<realm>",
      "user_id": "<user_id>",
      "credential_id": "<credential_id>",
      "label_data": "<label_data>"
    },
    "name": "update_user_credential_label"
  }
}

Input Schema

NameRequiredDescriptionDefault
realmYesRealm name
user_idYesUser ID
label_dataYesCredential label data
credential_idYesCredential ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden and fails to meet it. It says nothing about permissions required, whether the label must be unique or non-empty, how label_data is stored, or what the response looks like. For a mutation tool with zero annotation coverage this is a substantial gap.

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?

A single front-loaded sentence with zero wasted words. Its brevity is efficient rather than padded; the shortfall is in substance, which is captured under other dimensions.

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?

For a four-required-parameter mutation tool with no annotations and no output schema, the description is thin: it omits permissions, side effects, validation rules, and return behavior. The complete schema coverage keeps it from being inadequate, but it leaves the agent under-informed about a write operation.

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 100%, so realm, user_id, credential_id, and label_data are already documented in the schema, which sets the baseline at 3. The description adds no additional meaning about label_data format or constraints, but it does not need to.

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: 'Update the label of a user credential.' An agent can tell this modifies a credential's label rather than the credential itself, though the description does not explicitly contrast with siblings like delete_user_credential or move_user_credential_after.

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?

Contains no when-to-use guidance, no prerequisites, and no mention of alternatives (e.g., delete_user_credential, disable_user_credential_types, move_user_credential_to_first). The agent must infer entirely from the name when this tool is appropriate.

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

Deploy Server

Other Tools