Join the waiting list
join_waitlistPut a person on the clinic's waiting list for one option when no free time suits: dates, parts of the day and a practitioner if wanted. A code goes to their phone, then confirm_with_code. The clinic sends an SMS when a time frees up; nothing is held.
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": {
"option_id": "<option_id>",
"name": "<name>",
"phone": "<phone>"
},
"name": "join_waitlist"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The person's full name, as they say it. | |
| note | No | A short note to the clinic in the person's words. Never health details. | |
| No | The person's email address. Optional. | ||
| phone | Yes | The person's mobile number. The code goes there by SMS. | |
| locale | No | Answer language: nb (Norwegian) or en. | nb |
| to_date | No | Last wanted day (YYYY-MM-DD); default two weeks on. | |
| clinic_id | No | The clinic_id find_clinics returns. Never build it from a name. A clinic site needs none. | |
| from_date | No | First wanted day (YYYY-MM-DD); default today. | |
| option_id | Yes | The option_id get_treatment returns. | |
| parts_of_day | No | morning (07-12), afternoon (12-17) or evening (17-22); omit for any time. | |
| practitioner_id | No | One practitioner; omit for anyone. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | code_sent: ask the person for the code, then call confirm_with_code. | |
| channel | Yes | sms or email. | |
| waitlist | Yes | ||
| expires_at | Yes | When the code stops working. | |
| code_sent_to | Yes | The masked phone or email the code went to. | |
| confirmation_id | Yes | Pass it to confirm_with_code with the code. |