rift_update_user
Update a Rift Finance user profile: display name, email, phone, notification email, and auto-swap settings. Email or phone changes require an OTP sent to the new value first.
Instructions
Update user profile. Can change display name, email, phone, notification email, and auto-swap settings. Requires login. Changing email or phone needs an OTP for the NEW value: call rift_send_otp with the new email/phone first, then pass otpCode (changing one of them) or emailOtpCode + phoneOtpCode (changing both). Other fields need no OTP.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "rift_update_user"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| No | New email (needs otpCode sent to this new email) | ||
| otpCode | No | OTP sent to the NEW email or phone, when changing ONE of them | |
| displayName | No | New display name | |
| phoneNumber | No | New phone (needs otpCode sent to this new phone) | |
| emailOtpCode | No | OTP sent to the NEW email, when changing email AND phone together | |
| phoneOtpCode | No | OTP sent to the NEW phone, when changing email AND phone together | |
| autoSwapEnabled | No | Enable/disable auto-swap (auto-bridge incoming USDC/USDT to target chain) | |
| notificationEmail | No | Email for notifications (separate from login email) | |
| autoSwapTargetChain | No | Target chain for auto-swap: BASE, ARBITRUM, POLYGON, or ETHEREUM |