create_or_update_user
Creates a new user or updates an existing one by matching email or external ID, ensuring no duplicate users.
Instructions
WRITE: Create a user, or update it if one already exists with the same email or external_id (POST /api/v2/users/create_or_update). Idempotent: cannot create duplicates.
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>",
"email": "<email>"
},
"name": "create_or_update_user"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| role | No | ||
| Yes | |||
| phone | No | ||
| external_id | No | Unique ID from an external system, used for matching | |
| organization_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||