MCP ServerTool Reference
Set Group Members
Set Group Members MCP tool.
Set Group Members
Add up to 100 users to a group, or remove one, by op. add returns {added, added_user_ids, duplicates, errors [{user_id, error}]}; users outside the organization or archived go to errors. remove returns {removed, user_id, group_id}; removed is false for non-members.
Contract
| Field | Value |
|---|---|
| Tool name | set_group_members |
| Domain | groups |
| Required scopes | people:write |
| Title | Set group members |
| Read only hint | false |
| Destructive hint | true |
| Idempotent hint | true |
| Open world hint | false |
| Bulk limit | 100 |
| Timeout | 10000ms |
| Kill switch key | groups.members.set |
| REST siblings | POST /api/public/v1/groups/{id}/members, DELETE /api/public/v1/groups/{id}/members/{user_id} |
Input Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"op": {
"type": "string",
"enum": [
"add",
"remove"
]
},
"user_ids": {
"minItems": 1,
"maxItems": 100,
"type": "array",
"items": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
}
},
"user_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"idempotency_key": {
"type": "string",
"minLength": 8,
"maxLength": 200,
"pattern": "^[A-Za-z0-9._:-]+$"
}
},
"required": [
"id",
"op",
"idempotency_key"
],
"additionalProperties": false
}Output Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"content": {
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "text"
},
"text": {
"type": "string"
}
},
"required": [
"type",
"text"
],
"additionalProperties": false
}
}
},
"required": [
"content"
],
"additionalProperties": false
}