upsert_user
Create a new user or update an existing one by providing a user_id; changes are staged as a preview until you apply them.
Instructions
Create or update a user. Provide user_id to update an existing user. Returns a change_id; nothing changes until apply_change.
Args: name: The user's display name. email: Email address (used for login with password auth). role: One of Owner, FullAdministrator, LimitedAdministrator, User. status: One of Active, Disabled. user_id: UUID to update an existing user; omit to create a new one. username: Optional login username.
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": {
"name": "<name>"
},
"name": "upsert_user"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| role | No | ||
| No | |||
| status | No | ||
| user_id | No | ||
| username | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |