search_flights
Search real flight options including prices, carriers, durations, stops, and booking links. Specify origin, destination, dates, passengers, and filters to get accurate flight inventory.
Instructions
Search real flight options from Google Flights (via SerpApi). Use this for flight inventory, prices, carriers, durations, stops, and booking links. Only recommend flights returned by this tool; do not invent flights.
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": {
"origin": "<origin>",
"destination": "<destination>",
"departure_date": "<departure_date>"
},
"name": "search_flights"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| origin | Yes | Origin IATA airport/city code, e.g. GRU, SAO, JFK | |
| destination | Yes | Destination IATA airport/city code, e.g. GIG, RIO, LIS | |
| departure_date | Yes | YYYY-MM-DD | |
| return_date | No | YYYY-MM-DD for round trips; omit for one-way | |
| passengers | No | ||
| cabin | No | economy | |
| constraints | No | ||
| currency | No | BRL | |
| market | No | Country code (Google `gl`), e.g. BR, US | BR |
| locale | No | Language code (Google `hl`), e.g. pt-BR, en | pt-BR |
| result_limit | No |