verify_otp
Checks an OTP code a customer received against their phone number and returns whether the code is valid.
Instructions
Check an OTP code the customer received. Returns whether the code is valid.
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": {
"phone": "<phone>",
"otp_code": "<otp_code>"
},
"name": "verify_otp"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| phone | Yes | Phone number in international format without + (e.g. 6281234567890) — the number the OTP was sent to | |
| otp_code | Yes | The 6 digit code the customer entered |