MCP ServerTool Reference
Save User
Save User MCP tool.
Save User
Create a user, or update one by id. Create needs email, first_name, last_name; role_id defaults to Learner, and setting it needs people:manage. email cannot change. manager_id is checked against non-deleted organization members (null clears it). custom_fields (by field_key, validated) merge into stored values; null clears one. Deleted users cannot be updated. Returns the get_user shape.
Contract
| Field | Value |
|---|---|
| Tool name | save_user |
| Domain | users |
| Required scopes | people:write |
| Title | Save user |
| Read only hint | false |
| Destructive hint | false |
| Idempotent hint | true |
| Open world hint | false |
| Bulk limit | none |
| Timeout | 10000ms |
| Kill switch key | users.save |
| REST siblings | PUT /api/public/v1/users/{id}, POST /api/public/v1/users |
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)$"
},
"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": {}
},
"idempotency_key": {
"type": "string",
"minLength": 8,
"maxLength": 200,
"pattern": "^[A-Za-z0-9._:-]+$"
}
},
"required": [
"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
}