Skip to main content
Glama
mcp-keycloak

mcp-keycloak

by idoyudha

remove_realm_default_group

Remove a group from a Keycloak realm's default groups to prevent it from being automatically assigned to new users.

Instructions

Remove a default group from the realm.

Args:
    group_id: Group ID to remove from defaults
    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": "remove_realm_default_group"
  }
}

Input Schema

NameRequiredDescriptionDefault
realmNo
group_idYes

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

TDQS

C2.9/5.0
Behavior2/5

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

No annotations exist, so the description carries the full burden for a mutating operation. It does not state whether removal is idempotent, what happens when the group is not a default, whether the change is reversible, or what permissions are required; only 'Returns: Status message' is offered.

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?

Short and front-loaded, with the action stated first. The Args block is slightly redundant with the schema but each line adds information not present there.

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?

An output schema exists so return values need not be described, and the parameter section covers both args. For an unannotated mutation tool with a missing-permission and idempotency story, the description leaves key behavioral questions unanswered.

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 coverage is 0%, so the description must compensate for two undocumented parameters. It does add useful meaning for both: group_id is the group to drop from defaults, and realm falls back to a default when omitted — the fallback behavior is not expressed in the schema. However, it gives no format or example for group_id.

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: 'Remove a default group from the realm.' This is clearly distinguishable from add_realm_default_group by the verb alone, but the description never names or contrasts the sibling explicitly.

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 or permissions, and no statement of what to do if the group is not currently a default. Usage must be inferred entirely from the verb.

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