Skip to main content
Glama
mcp-keycloak

mcp-keycloak

by idoyudha

update_group

Modify an existing Keycloak group by updating its name, path, or attributes within a specified or default realm. Use it to keep group details accurate without creating a new group.

Instructions

Update a group.

Args:
    group_id: Group ID
    name: New group name
    path: New group path
    attributes: New group 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": {
      "group_id": "<group_id>"
    },
    "name": "update_group"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
pathNo
realmNo
group_idYes
attributesNo

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

TDQS

C2.4/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden: it does not state whether this is a partial or full replacement update, what happens when optional fields are null, whether renaming or repathing breaks memberships, or what permissions are required. It adds only that the call returns a 'Status message,' which is minimal for a mutation tool with zero annotation coverage.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The text is short and front-loaded with the purpose statement, but the Args block is a docstring dump that duplicates parameter names without adding substance, so much of its length does not earn its place.

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 5-parameter mutation tool with no annotations, the definition is thin: null-vs-set semantics, permission requirements, and the effect of renames on existing memberships are all unaddressed. An output schema exists, so return-value detail is not required, but the input-side gaps are significant.

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% across 5 parameters, and the Args glosses mostly restate the parameter names ('name: New group name', 'path: New group path', 'attributes: New group attributes'). The realm gloss ('uses default if not specified') and the word 'New' implying replacement values are the only real additions; the attributes dictionary structure and expected keys remain unexplained.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description says only 'Update a group,' a verb+resource pair that essentially restates the tool name. It does not say what kinds of modifications are supported or how it differs from siblings such as create_group, delete_group, or add_user_to_group; the field hints appear only later in the Args block.

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 when-to-use guidance, no mention of prerequisites such as group existence or permissions, and no routing to alternatives (e.g., create_group vs. update_group vs. add_user_to_group). The only contextual hint is the parenthetical that realm falls back to a default.

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