Skip to main content
Glama
Grouper MCP Server

Grouper MCP Server

by Unicon

grouper_assign_privilege

Grant or revoke privileges on groups or stems for users or groups, with batch operations for multiple subjects and privileges.

Instructions

Grant or revoke one or more privileges on a group or stem for one or more subjects. For groups, use groupName with access privileges (read, view, update, admin, optin, optout, groupAttrRead, groupAttrUpdate). For stems, use stemName with naming privileges (stem, create, stemAdmin, stemView, stemAttrRead, stemAttrUpdate). Supports batch operations for multiple subjects and multiple privileges. Subjects can be either users or groups. When assigning privileges to a group as a subject, use the group's UUID as the subjectId (the group name will not work). Grouper will automatically recognize the UUID as a group without needing to specify subjectSourceId. Returns formatted results showing success/failure for each privilege assignment.

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": {
      "privilegeNames": "<privilegeNames>"
    },
    "name": "grouper_assign_privilege"
  }
}

Input Schema

NameRequiredDescriptionDefault
allowedNoSet to "T" to grant privileges (default), "F" to revoke privileges
stemNameNoThe full name of the stem to assign privileges on (use this OR groupName, not both)
subjectsNoArray of subjects for batch operation (use this OR subjectId, not both). Each subject can be a user or a group. For groups, use the group UUID as subjectId.
groupNameNoThe full name of the group to assign privileges on (use this OR stemName, not both)
subjectIdNoSubject ID for single subject operation (use this OR subjects array, not both). For user subjects, use their Subject ID. For group subjects, use the group UUID.
privilegeNamesYesArray of privilege names to assign. For groups: read, view, update, admin, optin, optout, groupAttrRead, groupAttrUpdate. For stems: stem, create, stemAdmin, stemView, stemAttrRead, stemAttrUpdate
subjectSourceIdNoOptional subject source ID for single subject. Not needed when using a group UUID as subjectId.
subjectIdentifierNoOptional subject identifier for single subject

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.1

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations supplied, the description carries the behavioral load and does well: it discloses the grant-vs-revoke switch, that batch operations yield per-privilege success/failure results, and the non-obvious operational rule that group subjects must be addressed by UUID and that subjectSourceId becomes unnecessary. It stops short of stating required caller permissions for high-privilege grants (admin, stemAdmin) or whether partial failures roll back, which for a mutation tool is a meaningful remaining gap.

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?

The most important information, the grant/revoke action and the group-vs-stem branch, is front-loaded, and the later sentences build logically from batch support to subject typing to return format. It is somewhat long and repeats the privilege enumerations already present in the schema, which is wasted space, but no sentence is truly off-topic.

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 an 8-parameter mutation tool with no output schema and no annotations, the description covers the decision-critical surface: which fields pair with groups vs stems, that batch is supported, how group subjects are identified, and that results are reported per privilege. Missing are authorization requirements and failure/atomicity semantics, which an agent invoking privileged grants would benefit from knowing.

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 parameters are already documented, and the description largely restates the same privilege lists and the groupName/stemName exclusivity. The one piece of added meaning is the explanation of why the UUID works without subjectSourceId (Grouper recognizes it automatically), which is genuinely useful beyond the schema. Baseline 3 is appropriate given how much the schema already carries.

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 definition opens with a specific verb pair plus resource: 'Grant or revoke one or more privileges on a group or stem for one or more subjects.' That clearly separates it from siblings such as grouper_get_privileges (read) and grouper_assign_attribute (different resource). The group-vs-stem branching is stated up front, so an agent knows exactly what this tool mutates.

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 gives explicit conditional routing: groups use groupName with access privileges, stems use stemName with naming privileges, and it enumerates valid privilege names per branch. It also tells the agent that batch and single-subject modes exist. What it lacks is any explicit statement about when not to use it (e.g., use grouper_get_privileges to inspect current privileges first), so a 4 rather than 5.

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