Singapore Airlines KrisFlyer Miles Calculator
calculate_singapore_airlines_milesEstimate the KrisFlyer miles and Elite miles a Singapore Airlines flight earns. Miles = great-circle miles x booking class % (F/A 200; Z/C/J 150; U, D 125; S/T 125; L/P, R 100; Y/B/E 100; M/H/W 75; Q/N, V/K, G 50). Elite miles use the same %. Elite Silver and PPS Club add 25% of miles flown (not on Q, N, V, K, G); Elite Gold gets none here, as Singapore Airlines publishes no figure for it; tier bonuses are not Elite miles. Give segs: one entry per one-way flight, in order, with its great-circle miles (calculate_flight_distance gives them) and the ISO country codes of its two airports. 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_singapore_airlines_miles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| em | No | Elite miles you have so far (optional). Used only for the progress toward Elite Silver and Elite Gold. | |
| cls | No | Booking class. FA = F, A (Suites / First, 200%); ZCJ = Z, C, J (Business Flexi, 150%); U = U (Business Standard, 125%); D = D (Business Lite, 125%); ST = S, T (Premium Economy Flexi, 125%); LP = L, P (Premium Economy Standard, 100%); R = R (Premium Economy Lite, 100%); YBE = Y, B, E (Economy Flexi, 100%); MHW = M, H, W (Economy Standard, 75%); QN = Q, N (Economy Value, 50%); VK = V, K (Economy Lite, 50%); G = G (Economy (group fares), 50%). The letter on your ticket. The percentage is of the miles flown. | YBE |
| 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 from and to, the IATA codes of its two airports, which label the breakdown; some airlines also use them (Vladivostok, VVO, on JAL and ANA; the Madrid-Barcelona Air Shuttle, MAD-BCN, on Iberia; the long-haul tables named by city on SAS). | |
| trip | No | Trip. ow = One way; rt = Round trip. Round trip counts the same flights back the other way. | ow |
| status | No | Your KrisFlyer tier. KF = KrisFlyer; ES = Elite Silver (+25% flown); EG = Elite Gold; PPS = PPS Club (+25% flown); SOL = Solitaire PPS (+25% flown). | KF |
| creditTo | No | Credit the flights to a partner program instead of Singapore Airlines's own: united = United MileagePlus (creditStatus one of: General member, Premier Silver, Premier Gold, Premier Platinum, Premier 1K); aeroplan = Aeroplan (creditStatus one of: Aeroplan Member, 25K, 35K, 50K, 75K, Super Elite). 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. The booking class is cls (or creditClass). The flights are segs (their miles), or creditFlights. | |
| creditClass | No | The booking class letter for creditTo, when it differs from the class question. 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 |