Create or update password reset method
upsert_password_reset_methodCreate or update a user's password reset method by email or phone, choosing an existing target to modify; verify the target belongs to the user before assigning it.
Instructions
Creates a password reset method, or updates an existing one when existingTarget is given. A reset method can take over the account, so make sure the target belongs to the user.
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": {
"userName": "<userName>",
"type": "<type>",
"target": "<target>"
},
"name": "upsert_password_reset_method"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | ||
| target | Yes | Email address or phone number | |
| userName | Yes | Full username, e.g. "user@domain.com" | |
| description | No | Human-readable description | |
| allowMfaReset | No | Whether this method can reset the user's MFA as well. Defaults to true. | |
| existingTarget | No | Target from list_password_reset_methods. If provided, updates the method matching it instead of creating a new one. |