verify_otp
Checks a one-time code sent to a phone number or email, returning valid true/false and a failure reason such as wrong_code, expired_or_missing, or too_many_attempts.
Instructions
Check a one-time code that was sent with send_test_otp (or the live API) for a phone number or email. Returns valid true/false and, when false, the reason (wrong_code, expired_or_missing, too_many_attempts).
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": {
"to": "<to>",
"code": "<code>"
},
"name": "verify_otp"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | The same recipient the code was sent to. | |
| code | Yes | The code entered by the user. |