Skip to main content
Glama
Keycloak MCP Server

Keycloak MCP Server

by Cayetano97

list_organization_group_members

Retrieve members of a specific organization group in Keycloak, with pagination and basic representation options.

Instructions

Get members of 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>"
    },
    "name": "list_organization_group_members"
  }
}

Input Schema

NameRequiredDescriptionDefault
maxNoMaximum results size (defaults to 100)
firstNoPagination offset
realmYesRealm name
org_idYesOrganization ID
group_idYesOrganization group ID
briefRepresentationNoOnly return basic information (only guaranteed to return id, username, created, first and last name, email, enabled state, email verification state, federation link, and access. Note that it means that namely user attributes, required actions, and not before are not returned.)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden; 'Get' implies a read-only listing, and the Keycloak 26.6+ requirement is genuinely useful availability context that the schema does not provide. However, it says nothing about required permissions, sort order, or the shape of returned members, so mutation safety and result behavior remain implicit.

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 core action front-loaded before the version caveat. Nothing could be removed without losing information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a six-parameter read-only listing tool with fully documented parameters and no output schema, the definition covers the essentials plus an environment prerequisite. The remaining gap is the relationship between organization-group members and organization members, which matters given how many similar listing siblings exist.

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%: realm, org_id, group_id, max, first, and briefRepresentation are all documented in the schema, including the tradeoffs of briefRepresentation. The description adds no parameter meaning beyond that, 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: 'Get members of this organization group', which maps precisely to the tool name and makes the returned entity clear. It does not differentiate from nearby siblings such as list_organization_members, list_group_members, or list_organization_member_groups, so an agent must infer the distinction from the names alone.

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?

The only usage constraint given is 'Requires Keycloak 26.6+', which is a version prerequisite rather than guidance on when to choose this tool. Nothing says when to use this versus list_organization_members (organization-level) or list_group_members (plain group-level), which is the main selection ambiguity an agent faces.

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