Set a route alert
set_alertStore a free email alert for new empty legs on a route. Set an origin, a destination, or both. Each end is an airport (city, name, or IATA or ICAO code) or a country (ISO code or English name, for example GB or France). originCountry and destinationCountry name the country for that end when you want it on its own. dateFrom and dateTo are an optional inclusive window, YYYY-MM-DD. maxPrice is an optional highest published amount, in the leg's own currency unless currency is also set. email is the address that receives the alert. consent must be the boolean true, and only after the person has asked to be emailed. The watch is stored as pending and a confirmation link is emailed. No alert is sent until that link is opened. Each alert email includes an unsubscribe link, and a delete-my-data link removes every watch stored for that address. This does not book a seat and it does not take payment. A leg is included only when every source on it is enabled. Villiers is never included.
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": {
"email": "<email>",
"consent": "<consent>"
},
"name": "set_alert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| Yes | Email address that receives the confirmation and, after that, the alerts. One address, no spaces. | ||
| dateTo | No | Optional inclusive last departure date, YYYY-MM-DD. Omit it for no end. | |
| origin | No | Departure airport or country. An airport is a city, a name, or an IATA or ICAO code, for example LTN or London Luton. A country is an ISO code or an English name, for example GB or France. Two letters are always a country. Omit this when originCountry carries the country, or when only the destination is set. | |
| consent | Yes | Must be the boolean true. That means the person asked to be emailed about this route. Any other value is rejected, and the watch is not stored. | |
| currency | No | Three-letter currency code such as EUR or GBP. Applied only together with maxPrice. Omit it when maxPrice is omitted. | |
| dateFrom | No | Optional inclusive first departure date, YYYY-MM-DD. Omit it for no start. | |
| maxPrice | No | Optional highest published amount to include. Non-negative number, in the leg's own currency unless currency is also set. Legs with no numeric price are left out when this is set. | |
| destination | No | Arrival airport or country, in the same form as origin. Omit this when destinationCountry carries the country, or when only the origin is set. | |
| originCountry | No | Country of departure on its own, as an ISO code or an English name, for example FR or France. A leg matches when the departure airport is in that country. Use this when origin is an airport and you also want to name the country, or instead of origin. | |
| destinationCountry | No | Country of arrival on its own, as an ISO code or an English name. A leg matches when the arrival airport is in that country. |