findNearestAvailability
Find the nearest available dates when requested dates are not available. Searches for alternative check-in dates within a specified window and can adjust length of stay.
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": {
"stayId": "<stayId>",
"preferredCheckIn": "<preferredCheckIn>",
"minLengthOfStay": "<minLengthOfStay>"
},
"name": "findNearestAvailability"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stayId | Yes | The unique identifier of the stay | |
| maxLengthOfStay | No | Maximum length of stay in days (optional) | |
| minLengthOfStay | Yes | Minimum length of stay in days | |
| preferredCheckIn | Yes | Preferred check-in date in ISO format (YYYY-MM-DD) | |
| searchWindowDays | No | Number of days before and after preferred date to search (default: 90) |