Qantas Points and Status Credits Calculator
calculate_qantas_pointsQantas Points and Status Credits for flights marketed by Qantas (QF), from Qantas's earning tables: a fixed amount per flight by route table (or distance band) and earn category (cat; get_fare_classes for QF shows which booking classes fall in each category), plus the Status Bonus (points only) and the Minimum Points Guarantee. Give segs: one entry per one-way flight, in order, with its great-circle miles (calculate_flight_distance gives them), the ISO country codes of its two airports, and from/to IATA airport codes: Qantas picks its route tables (Sydney to London, Perth to Singapore, Sydney to Dallas and so on) from the airports, so without from/to a flight such as Australia to Europe falls back to the distance band. For the USA and Canada, which Qantas splits into East and West Coast tables without listing cities, set table on that flight (for example EWC or EEC); table BND forces the distance band. Takes no price. Uses cwsi.net's calculator and the airline's published rules. Unofficial.
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": {
"segs": "<segs>"
},
"name": "calculate_qantas_points"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sc | No | Status Credits you have so far (optional). Used only for the progress toward the next tier. | |
| cat | No | Earn category. DE = Discount Economy (E N O Q; dom. E G L M N O Q S V); EC = Economy (G K L M S V); FE = Flexible Economy (B H Y; dom. B H K Y); DPE = Discount Premium Economy (T; dom. T); PE = Premium Economy (R; dom. R); FPE = Flexible Premium Economy (W; dom. W); DB = Discount Business (I); BU = Business (D; dom. D I); FB = Flexible Business (C J; dom. C J); FI = First (A F). The fare type on your ticket. Under each: the international booking classes, then the classes on flights within Australia (dom.). On domestic flights there is no Discount Business; class I is Business. | EC |
| segs | Yes | The flights, one way and in order, one entry per flight (1 to 8): fromCountry and toCountry, the ISO 3166 two-letter country codes of its two airports; miles, its great-circle distance in miles (1 to 12,500); optional table, the key of a route table for that flight (ENZ, EAS, EHI, EIN, EJB, ESC, EDF, EWC, EEC, WSE, WNE, WDX, WEU, WJB, NDF, NSC, NEC, DEC, DWC, CWC, XEU, UAS, THK, BND); optional from and to, the IATA codes of its two airports, which label the breakdown and pick the route tables named by airport. | |
| trip | No | Trip. ow = One way; rt = Round trip. Round trip counts the same flights back the other way. | ow |
| status | No | Your Qantas Frequent Flyer tier. BR = Bronze; SV = Silver (+50% points); GD = Gold (+75% points); PL = Platinum (+100% points); P1 = Platinum One (+100% points). The Status Bonus adds Qantas Points, never Status Credits. | BR |
| creditTo | No | Credit the flights to a partner program instead of Qantas's own: american = American AAdvantage (creditStatus one of: AAdvantage member, AAdvantage Gold, AAdvantage Platinum, AAdvantage Platinum Pro, AAdvantage Executive Platinum); alaska = Atmos Rewards (creditStatus one of: Atmos Rewards member, Atmos Silver, Atmos Gold, Atmos Platinum, Atmos Titanium); flying-blue = Flying Blue (creditStatus one of: Explorer, Silver, Gold, Platinum, Ultimate); ba-club = British Airways Club (creditStatus one of: Blue, Bronze, Silver, Gold). Earns by each flight's distance and the booking class at the program's published partner rates; leave creditTo out for the airline's own program. Give the booking class letter as creditClass. The flights are segs (their miles), or creditFlights. | |
| creditClass | No | The booking class letter on the ticket, for creditTo (required with creditTo). Ignored without creditTo. | |
| creditStatus | No | Your status in the creditTo program, by its name as listed under creditTo. Defaults to the base level. Ignored without creditTo. | |
| creditFlights | No | The flights for creditTo: one entry per one-way flight, in order, with its great-circle miles (calculate_flight_distance gives them) and optionally from/to airport codes. Defaults to segs when they carry miles. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| link | Yes | ||
| notes | Yes | ||
| inputs | Yes | ||
| airline | Yes | ||
| headline | Yes | ||
| progress | No | ||
| breakdown | Yes | ||
| calculator | Yes |