Skip to main content
Glama
Keycloak MCP Server

Keycloak MCP Server

by Cayetano97

list_member_organizations

Retrieves the organizations linked to a specified user in a Keycloak realm, enabling membership checks and organization-aware user administration. Requires Keycloak 26.0+.

Instructions

Returns the organizations associated with the user that has the specified id. Requires Keycloak 26.0+.

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_member_organizations"
  }
}

Input Schema

NameRequiredDescriptionDefault
realmYesRealm name
org_idYesOrganization ID
member_idYesMember (user) ID
briefRepresentationNoif false, return the full representation. Otherwise, only the basic fields are returned

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 behavioral burden. It usefully discloses the Keycloak 26.0+ version requirement, which is not in the schema, and 'Returns' implies a non-mutating read. However, it says nothing about permissions needed, pagination, or whether results are bounded, which matters for a list tool with no annotations.

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 no padding: the core operation is front-loaded and the version constraint follows as a qualifying note. Nothing is wasted and nothing needs re-reading.

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?

With four parameters fully documented in the schema and no output schema, the description covers the essentials of what to call. It falls short on sibling differentiation and on any hint about result shape or volume, which are the main open questions for an agent invoking a list endpoint.

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 including briefRepresentation are already documented in the input schema. The phrase 'the user that has the specified id' loosely reinforces that member_id is a user identifier, but this duplicates the schema's 'Member (user) ID' and adds no new syntax or constraint detail.

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: it returns the organizations associated with a user identified by id. The operation is unambiguous on its own, but it never distinguishes itself from the sibling list_user_organizations_by_member, which reads as an equivalent capability, so an agent cannot route between them from the description 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-relevant content is the compatibility gate 'Requires Keycloak 26.0+', which is a genuine prerequisite. There is no statement of when to choose this over list_user_organizations_by_member or list_organizations, and no when-not guidance, leaving the agent to guess between near-identical siblings.

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