Create price alert
create_price_alertWatch a cached price and POST a signed webhook at or below threshold. Needs an API key. signingSecret is shown once. Max 20 alerts, 60 days each. Example: {"origin":"ABJ","destination":"CDG","month":"2027-02","threshold":400,"webhookUrl":"https://example.com/hooks/fares"}.
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": {
"threshold": "<threshold>",
"webhookUrl": "<webhookUrl>"
},
"name": "create_price_alert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| month | No | Watch the cheapest day of a month, YYYY-MM. Send this or departureDate. | |
| route | No | Alias for origin and destination together, e.g. "ABJ-CDG". | |
| adults | No | Adults, 1 to 9. Default 1. Threshold is the total for all of them. | |
| origin | No | 3-letter IATA airport or city code, e.g. ABJ. Or send route. | |
| currency | No | Currency of threshold and of webhook prices, e.g. EUR, USD, XOF. Default EUR. | |
| expiresAt | No | Optional ISO date or time, at most 60 days away. Default: 60 days. | |
| threshold | Yes | Fire when the cached total price is at or below this amount. Must be above 0. | |
| cabinClass | No | economy (the only cabin cached fares cover). Default economy. | |
| returnDate | No | Optional return day, YYYY-MM-DD, with departureDate only. | |
| webhookUrl | Yes | Public https URL we POST the signed alert to. No private, loopback or link-local hosts. | |
| destination | No | 3-letter IATA airport or city code, e.g. CDG. | |
| departureDate | No | Watch one day, YYYY-MM-DD. Send this or month. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||