Copa Airlines ConnectMiles Calculator
calculate_copa_airlines_milesCopa Airlines ConnectMiles miles, qualifying miles and qualifying segments for Copa Airlines flights. Miles = distance x fare family % (Economy Basic 50, Economy Classic 100, Economy Full and Business Promo 175, Business Full 300), at least 500 per flight; qualifying miles are the same; booking classes G, I, N, P, X and Z earn nothing (noearn Y). PreferMember bonus on miles only (Silver 25%, Gold 50%, Platinum 75%, Presidential 100%). Progress toward Silver, Gold, Platinum and Presidential by qualifying miles (20,000 / 40,000 / 70,000 / 90,000) or segments in a calendar year; qm and qs are the totals so far. 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_copa_airlines_miles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| qm | No | Qualifying miles you have this calendar year (optional). Used only for the progress toward the next PreferMember status. | |
| qs | No | Qualifying segments you have this calendar year (optional). Economy Basic counts half a segment. | |
| fam | No | Fare family. EB = Economy Basic (Economy, 50%); EC = Economy Classic or Classic Flex (Economy, 100%); EF = Economy Full (Economy, 175%); BP = Business Promo (Business, 175%); BF = Business Full (Business, 300%). The fare family on your Copa Airlines ticket. Economy Basic earns half the distance; Business Full earns triple. | 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 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 |
| noearn | No | Is your booking class G, I, N, P, X or Z?. N = No; Y = Yes (earns nothing). Copa Airlines says these classes earn no miles or segments. Choose No if you do not know. | N |
| status | No | Your PreferProgram status. NO = Not a PreferMember; SI = Silver (+25%); GO = Gold (+50%); PL = Platinum (+75%); PR = Presidential (+100%). The PreferMember bonus is paid on award miles for Copa Airlines flights; it does not count toward status. | NO |
| creditTo | No | Credit the flights to a partner program instead of Copa 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); 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. 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 |