Skip to main content
Glama
Grouper MCP Server

Grouper MCP Server

by Unicon

grouper_get_subject_groups

Retrieve all group memberships for a specific subject/user, including group name, description, type, and membership type, with optional filters for enabled status and membership category.

Instructions

Get all group memberships for a specific subject/user. Returns a compact list with each group's name, description, type (if not a standard group), and membership type (immediate/effective). Use grouper_get_group_by_exact_name to get full details on a specific group. Returns "No group memberships found" if the subject is not a member of any groups.

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": {
      "subjectId": "<subjectId>"
    },
    "name": "grouper_get_subject_groups"
  }
}

Input Schema

NameRequiredDescriptionDefault
enabledNoFilter for enabled groups: "T" for enabled only, "F" for disabled only, or omit for all (default: all)
subjectIdYesThe subject ID of the user to retrieve group memberships for
memberFilterNoFilter for membership type: "All", "Effective", "Immediate", "Composite", "NonImmediate" (default: "All")
subjectSourceIdNoOptional subject source ID to limit search scope
subjectIdentifierNoOptional subject identifier (alternative to subjectId)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.1

TDQS

A3.9/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 behavioral burden. It usefully discloses the return shape (group name, description, type, membership type) and the empty-result message, but says nothing about permissions required, result size or pagination, or whether membership data is cached or live.

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?

Three sentences, front-loaded with the core action and followed by the alternative and the empty-result case. Slightly repetitive with two consecutive 'Returns' clauses, but nothing is wasted.

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 read-only lookup with no annotations and no output schema, the description covers the operation, the returned fields, and the no-membership edge case. The only meaningful gap is the absence of any note on result volume or permissions, which is minor for this tool type.

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 the schema already documents all five parameters including the enabled and memberFilter values. The description adds no filter syntax or default behavior beyond what the schema states, so baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/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 ('Get all group memberships for a specific subject/user') and immediately scopes the result set to group memberships rather than group definitions or members. An agent can distinguish this from grouper_get_group_by_exact_name and grouper_get_members without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It explicitly routes the agent to grouper_get_group_by_exact_name when full detail on a single group is needed, which is a clear alternative-selection rule. It gives no guidance on when to prefer subjectId over subjectIdentifier, or when to use this versus a subject search, so it falls short of full when/when-not coverage.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.