search_flights
Search flights between two airports on a date and get priced offers with airline, times, stops and fare basis, paying per call in USDC over x402.
Instructions
Search flights between two airports on a date. Returns priced offers with airline, times, stops and fare basis. Costs $0.005 per call, paid in USDC over x402 to x402-flight-search. Returns the merchant's artifact and the payment receipt.
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>",
"departureDate": "<departureDate>"
},
"name": "search_flights"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rail | No | Payment rail for this call. Overrides the configured default (auto). auto = whichever rail this agent holds a key for. | |
| adults | No | Passenger count, default 1 | |
| origin | Yes | IATA origin airport code, e.g. SFO | |
| maxPrice | No | Cap on total fare | |
| returnDate | No | YYYY-MM-DD for a round trip | |
| destination | Yes | IATA destination airport code, e.g. JFK | |
| departureDate | Yes | YYYY-MM-DD |