MCP ServerTool Reference
Bulk User Operation
Bulk User Operation MCP tool.
Bulk User Operation
Create or update up to 100 users, each like save_user (create: email, first_name, last_name, no id; update: id, no email). No rollback: a failing record does not stop the rest. Returns results [{index, success, user or error {code, message, field}}] and summary {total, successful, failed}.
Contract
| Field | Value |
|---|---|
| Tool name | bulk_user_operation |
| Domain | users |
| Required scopes | people:write |
| Title | Bulk create or update users |
| Read only hint | false |
| Destructive hint | false |
| Idempotent hint | true |
| Open world hint | false |
| Bulk limit | 100 |
| Timeout | 30000ms |
| Kill switch key | users.bulk |
| REST sibling | POST /api/public/v1/users/bulk |
Input Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"operation": {
"type": "string",
"enum": [
"create",
"update"
]
},
"users": {
"minItems": 1,
"maxItems": 100,
"type": "array",
"items": {
"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)$"
},
"email": {
"type": "string",
"format": "email",
"pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
},
"first_name": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"last_name": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"role_id": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"display_name": {
"type": "string",
"maxLength": 255
},
"manager_id": {
"anyOf": [
{
"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)$"
},
{
"type": "null"
}
]
},
"timezone": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"custom_fields": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
}
},
"additionalProperties": false
}
},
"idempotency_key": {
"type": "string",
"minLength": 8,
"maxLength": 200,
"pattern": "^[A-Za-z0-9._:-]+$"
}
},
"required": [
"operation",
"users",
"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
}