Verify Returning Customer and Retrieve History
customer_lookupFor a returning customer: first call with phone and confirmed:true to request a code. Next call with the returned challenge_id and customer-supplied code. Saved details and recent service history are returned only after successful verification. If lookup fails, offer the new-customer form or office assistance. Never claim a match from the initial response.
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>",
"confirmed": "<confirmed>"
},
"name": "customer_lookup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | The 6-digit verification code the customer received by SMS; send it together with challenge_id. Keep it separate from booking codes. | |
| phone | Yes | Phone number on the customer account, any common US format; the verification code is texted to it. | |
| confirmed | Yes | True only after the customer agreed to receive a verification code at this number. | |
| challenge_id | No | The challenge_id returned by the first call; send it together with code on the second call. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | ||
| history | No | ||
| message | Yes | ||
| success | Yes | ||
| customer | No | ||
| next_step | Yes | ||
| record_id | No | Saved office lead reference, when applicable. | |
| request_id | Yes | Public operation receipt for support; never a provider customer ID. | |
| challenge_id | No | ||
| history_status | No | ||
| review_sandbox | No |