search_flights
Search live live flight inventory by route, date, cabin, and passenger count.
Category: External API Price: $0.002 Backed by: supplier inventory layer
Input
Output
The tool returns the top three flight offers:
When called through direct HTTP, Sendero wraps the result in the paid tool envelope:
HTTP example
MCP example
Payment flow
- POST to
/tools/search_flightswithoutPayment-Signature. - Sendero returns
402 Payment Requiredwith aPAYMENT-REQUIREDheader. - Sign the EIP-3009 authorization for 2,000 atomic USDC.
- Retry with
Payment-Signature. - Sendero executes the flight search and returns offers plus the payment receipt.
Most production clients hide this flow behind a small payment helper. See x402 nanopayments for the raw protocol.
Errors
| Code | Meaning |
|---|---|
payment_required | The direct HTTP endpoint needs an x402 signature. |
invalid_input | Origin, destination, date, passenger count, or cabin class failed validation. |
no_offers | the supplier returned no flights for the route. |
provider_timeout | the supplier did not respond within the configured timeout. |