Validate itinerary
validate_itineraryValidate a selected flight itinerary against constraints like arrival deadlines and stay durations, ensuring chronological order with local, tri-state results.
Instructions
Validate selected v2 flight offers locally, without fetching. Pass legs in travel order, each with its exact query and one selected offer. The result is tri-state: unknown evidence never becomes pass. arrival_deadline is an ISO date and time: an explicit offset is compared in UTC, a naive time is local at the arrival airport. chronological checks owned segment instants. min_stay_days and max_stay_days use owned journey dates.
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": {
"legs": "<legs>",
"constraints": "<constraints>"
},
"name": "validate_itinerary"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| legs | Yes | ||
| currency | No | ||
| constraints | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | ||
| empty_note | Yes | ||
| error_code | Yes | ||
| observed_at | Yes | ||
| retry_after | Yes | ||
| completeness | Yes | ||
| empty_reason | Yes | ||
| observed_at_basis | Yes | ||
| retry_after_seconds | Yes |