Book an appointment
book_appointmentBook one free time for a person, paid at the clinic. Give option_id, clinic_id, date and time from find_free_times, and the person's name and mobile number (practitioner_id and add_on_ids if chosen). Nothing is booked yet: a code goes to the person by SMS, and the answer has the price, the place and the cancellation notice. Tell the person these and that the clinic's terms apply, ask for the code, then call confirm_with_code.
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>",
"date": "<date>",
"time": "<time>",
"name": "<name>",
"phone": "<phone>"
},
"name": "book_appointment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | The day (YYYY-MM-DD) of a free time find_free_times returned. | |
| 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. | |
| time | Yes | The start (HH:MM) of a free time find_free_times returned. | |
| 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 |
| clinic_id | No | The clinic_id find_clinics returns. Never build it from a name. A clinic site needs none. | |
| option_id | Yes | The option_id get_treatment returns. | |
| add_on_ids | No | Add-on ids from get_booking_choices. Their minutes lengthen each time. | |
| package_id | No | A package_id from get_booking_choices: the visit is the first session of the package. | |
| guest_names | No | The other guests, for a treatment booked for several guests at once (party_size above 1). | |
| practitioner_id | No | A practitioner free at that time; omit for the first one free. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | code_sent: ask the person for the code, then call confirm_with_code. | |
| booking | Yes | Tell the person this before asking for the code. | |
| channel | Yes | sms or email. | |
| 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. |