Skip to main content
Glama
Keycloak MCP Server

Keycloak MCP Server

by Cayetano97

remove_organization_member

Remove a user from a Keycloak organization by specifying the realm, organization ID, and user ID; requires Keycloak 25 or later.

Instructions

Remove a member from an organization. Requires Keycloak 25+.

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>",
      "user_id": "<user_id>"
    },
    "name": "remove_organization_member"
  }
}

Input Schema

NameRequiredDescriptionDefault
realmYesRealm name
org_idYesOrganization ID
user_idYesUser 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 supplied, so the description carries the full burden for a destructive mutation and largely does not meet it. 'Requires Keycloak 25+' is a useful environment prerequisite, but nothing is said about whether the removal is idempotent, what error occurs if the user is not a member, what permissions are needed, or whether related memberships or role mappings are affected.

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 waste; the action is front-loaded and the prerequisite is secondary. Nothing is padded or restated from the name.

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 destructive, unannotated, output-schema-less mutation, the description omits consequences, failure modes, and authorization requirements. The schema covers parameters, but the behavioral side of the call is essentially undocumented.

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?

All three parameters (realm, org_id, user_id) have 100% schema description coverage, so the schema already carries their meaning. The description adds nothing about identifier formats or ambiguity between realm-level and organization-level identifiers, so the baseline 3 applies.

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 member from an organization,' so an agent can distinguish it from add_organization_member or remove_organization_group_member by the verb plus the org-level scope. It stops short of explicitly naming the group-membership sibling it must not be confused with, which keeps it from a 5.

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 guidance on when to use this versus the group-level and add- variants in the sibling list, and no prerequisites beyond a version note. The agent must infer that it targets organization membership rather than group membership.

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