ANA Mileage Club Miles and Premium Points Calculator
calculate_ana_milesEstimate the ANA Mileage Club miles and Premium Points for flights operated by the ANA Group. Miles = distance x booking-class rate (F/A/J 150%, C/D/Z 125%, G/E/Y/B/M 100%, P/N/U/H/Q 70%, V/W/S/T 50%, L/K 30%, O/I/R/X 0). Premium Points = distance x the same rate x route ratio (Japan domestic x2; Japan to Asia, Oceania or Vladivostok x1.5; else x1) + 400 boarding points in F A J C D Z P G E N Y B M (none on Japan domestic legs). Give segs: one entry per one-way flight with its great-circle miles (calculate_flight_distance gives them), the ISO country codes of its two airports, and from/to IATA airport codes (set from or to to VVO for Vladivostok, which shares RU with the rest of Russia). 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_ana_miles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pp | No | Premium Points you have this year (optional). Used only for the progress toward the next tier. | |
| cls | No | Booking class. FA = F, A (First 150%); J = J (Business 150%); CDZ = C, D, Z (Business 125%); P = P (Business 70%); GE = G, E (Premium Economy 100%); N = N (Premium Economy 70%); YBM = Y, B, M (Economy 100%); UHQ = U, H, Q (Economy 70%); VWST = V, W, S, T (Economy 50%); LK = L, K (Economy 30%); ORIX = O, R, I, X (Not eligible). The letter on your ticket. ANA earns by booking class, not by fare brand name. | YBM |
| ppg | No | Of those, Premium Points on ANA Group flights (optional). Each tier needs half its Premium Points on ANA Group flights. The flights here are ANA Group flights. | |
| card | No | ANA Gold Card or ANA Card Premium?. N = No; G = Yes. Holders reach Bronze at 30,000 Premium Points without the 15,000 on ANA Group flights. | N |
| 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 ANA status. NO = None; BR = Bronze; PL = Platinum; DI = Diamond. | NO |
| creditTo | No | Credit the flights to a partner program instead of ANA'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); flying-club = Flying Club (creditStatus one of: Red, 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. 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 |