Free appointment slots
pz_free_slotsFinds free appointment start times (Tehran HH:MM) for one service at a center across a date range and returns the next available day when none exist.
Instructions
Free appointment start times (Tehran HH:MM) per day for one service at one center, for a date range.
With no free slot in the range, next_free_day gives the next one.
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": {
"center_id": "<center_id>",
"user_center_id": "<user_center_id>",
"service_id": "<service_id>"
},
"name": "pz_free_slots"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date_to | No | Inclusive, default date_from; max 14 days after it. | |
| center_id | Yes | center_id from pz_doctor or a search card; '5532' = online visit. | |
| date_from | No | Gregorian YYYY-MM-DD, default today. | |
| service_id | Yes | service_id at that center. | |
| user_center_id | Yes | user_center_id of the same center. |