Skip to main content
Glama
Keycloak MCP Server

Keycloak MCP Server

by Cayetano97

list_organization_member_groups

List the organization groups a specified member belongs to in Keycloak, with pagination, search filtering, and optional brief results. Requires Keycloak 26.6+.

Instructions

Returns the organization group memberships for a member with the specified id. 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>",
      "member_id": "<member_id>"
    },
    "name": "list_organization_member_groups"
  }
}

Input Schema

NameRequiredDescriptionDefault
maxNoMaximum results to return
firstNoPagination offset
realmYesRealm name
org_idYesOrganization ID
searchNoSearch string filter
member_idYesMember (user) ID
briefRepresentationNoReturn a brief representation

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; 'Returns' implies a read-only operation and the Keycloak 26.6+ gate is genuinely useful context. However, it does not disclose pagination behavior, permission requirements, or what an unsupported server version does.

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?

Two sentences, no filler, with the core behavior front-loaded and the version prerequisite trailing. The version requirement is stated but not elaborated (e.g., what fails on older Keycloak), which keeps it just short of ideal.

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 seven-parameter list tool with no annotations and no output schema, the description covers purpose and a version gate but says nothing about the return shape or how max/first/search interact. The fully covered input schema offsets much of this, making it adequate but thin.

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 seven parameters (realm, org_id, member_id, max, first, search, briefRepresentation) are already documented. The phrase 'member with the specified id' reinforces member_id but adds no syntax or format detail beyond the schema, 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: returns organization group memberships for a given member id. This is distinguishable from siblings like list_organization_group_members (members of a group) or list_user_groups, though the description never names those alternatives to make the distinction explicit.

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 exclusion of adjacent tools, and no stated prerequisites beyond a version requirement. An agent must infer from the name alone whether this or list_user_groups / list_member_organizations is the right call.

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