Set up a flight alert
create_flight_alertSets up an email alert for new empty legs on a route or from a place, for when the user asks to be notified and gives their email. voidjet emails a confirmation link; the alert becomes active only after the user clicks it (double opt-in, valid 7 days). Needs origin or destination; dates, passengers and budget are optional.
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>"
},
"name": "create_flight_alert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| Yes | The user's email address. | ||
| locale | No | Language of texts and links in the result: en or de. | en |
| origin | No | Departure city, IATA/ICAO code, country, US state, region or area. | |
| date_to | No | Latest departure date to watch (YYYY-MM-DD). | |
| date_from | No | Earliest departure date to watch (YYYY-MM-DD). | |
| passengers | No | Number of passengers; only offers with at least this many seats. | |
| destination | No | Arrival city, IATA/ICAO code, country, US state, region or area. | |
| max_price_eur | No | Maximum price in EUR for the whole aircraft. | |
| aircraft_class | No | Only these aircraft classes. Offers without a known aircraft type are excluded. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | ||
| message | Yes |