Search and filter by policy in one step
find_compliant_flightsSearch Google Flights and retrieve only policy-compliant options sorted by price, with a summary of rejected flights and reasons.
Instructions
Searches Google Flights and evaluates every result against a policy file, returning only compliant options (plus a summary of how many were rejected and why), sorted by price.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cabin | No | economy | |
| adults | No | ||
| origin | Yes | Origin city or airport, e.g. 'New York' or 'JFK' | |
| departDate | Yes | Departure date, YYYY-MM-DD | |
| policyPath | No | ./policy.json | |
| returnDate | No | Return date, YYYY-MM-DD. Omit for one-way | |
| destination | Yes | Destination city or airport, e.g. 'Los Angeles' or 'LAX' |