Xiamen Airlines Egret Miles Calculator
calculate_xiamen_airlines_milesXiamen Airlines Egret Miles for a Xiamen Airlines, Hebei Airlines or Jiangxi Airlines flight ticketed on Xiamen stock (ticket numbers starting 731, 836 or 989), from the base fare plus fuel surcharge for that flight in yuan (CNY; other charges left out). Egret Miles = fare x (category multiplier + tier multiplier), rounded up, no minimum. Category (cat): 1.0 for First or Business (FB), Economy Y or W (YW) and Economy H on a China domestic route (HD); 0.7 for Economy H on an international, Hong Kong, Macao or Taiwan route (HI) and other Economy classes (EO). Tier: Egret Silver 0.2, Gold 0.3, Platinum 0.4, Diamond 0.5, none 0. Qualifying points for the flight are not calculated (the guide does not say whether its +1 counts per ticket or per segment); the tiers need 20, 40, 70 and 120 qualifying points in a calendar year. Give the CNY amount (Xiamen converts other currencies at the IATA rate on the issue date), one flight at a time. Uses cwsi.net's calculator and the airline's published rules. Give the price in CNY, not US dollars. Unofficial.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "calculate_xiamen_airlines_miles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cat | No | Cabin and booking class. FB = First or Business (category 1.0); YW = Economy Y or W (category 1.0); HD = Economy H, China domestic route (category 1.0); HI = Economy H, international, Hong Kong, Macao or Taiwan (category 0.7); EO = Other Economy classes (category 0.7). The category multiplier is 1.0 for First, Business and Economy Y, H, W and 0.7 for other Economy. H counts 1.0 on China domestic routes only. | YW |
| tier | No | Your Egret Miles tier when you fly. N = No tier (no bonus); SI = Egret Silver (+0.2); GO = Egret Gold (+0.3); PL = Egret Platinum (+0.4); DI = Egret Diamond (+0.5). The tier multiplier is added to the category multiplier. | N |
| price | No | Base fare plus fuel surcharge (CNY, the flight) in CNY. In yuan: the base fare plus the fuel surcharge for the flight, without airport fees and other charges. For another currency, enter the equivalent in yuan. Required unless creditTo is given. | |
| creditTo | No | Credit the flights to a partner program instead of Xiamen Airlines's own: delta = Delta SkyMiles (creditStatus one of: SkyMiles Member, Silver Medallion, Gold Medallion, Platinum Medallion, Diamond Medallion); flying-club = Flying Club (creditStatus one of: Red, Silver, Gold); flying-blue = Flying Blue (creditStatus one of: Explorer, Silver, Gold, Platinum, Ultimate). 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. Give the flights as creditFlights (one entry per flight with its great-circle miles). No price is needed with creditTo. | |
| 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 |