Skip to main content
Glama
Keycloak MCP Server

Keycloak MCP Server

by Cayetano97

remove_organization_group_member

Removes a specified user from an organization group in a Keycloak realm using realm, organization, group, and user IDs. Use for access cleanup; requires Keycloak 26.6+.

Instructions

Remove a user from this organization group. Requires Keycloak 26.6+.

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>",
      "org_id": "<org_id>",
      "group_id": "<group_id>",
      "user_id": "<user_id>"
    },
    "name": "remove_organization_group_member"
  }
}

Input Schema

NameRequiredDescriptionDefault
realmYesRealm name
org_idYesOrganization ID
user_idYesUser ID
group_idYesOrganization group ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.3/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. It usefully reveals a version prerequisite ('Requires Keycloak 26.6+'), which is genuine context an agent cannot get from the schema, but it says nothing about idempotency, behavior when the user is not a member, or required permissions.

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?

Two short sentences with zero filler, and the operation is front-loaded before the version caveat. Every sentence carries information.

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 with no annotations and no output schema, the description covers the what and a version constraint but omits error semantics, permission requirements, and reversibility. It is adequate to call correctly but not complete for a destructive 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 all four parameters (realm, org_id, group_id, user_id) are already documented in the schema, which sets the baseline at 3. The description reinforces that removal targets a user within a specific group but adds no format, syntax, or constraint detail beyond the schema.

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 states a specific verb and resource: 'Remove a user from this organization group.' The prepositional phrase 'from this organization group' distinguishes it from the sibling remove_organization_member, which operates at organization scope, though it never names that sibling directly.

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 explicit guidance on when to use this versus remove_organization_member or remove_user_from_group, nor any statement of prerequisites or exclusions. The only hint is the phrase 'organization group', which the agent must infer maps to the group_id parameter over the org_id one.

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