United MileagePlus Calculator
calculate_united_milesEstimate what a United Airlines ticket earns (miles or points, and status credit where it applies), using cwsi.net's calculator and the airline's published rules. 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_united_miles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| card | No | Paying with a United card. none = No; CM = Cardmember (+3 per $1); EX = Explorer (+6 per $1); QU = Quest (+7 per $1); CL = Club (+8 per $1); GW = Gateway (+5 per $1); DB = Gateway Debit (+4 per $1). Cardmember is a United card that you are not paying with. | none |
| fare | No | Fare type. ST = Standard (Economy and above); BE = Basic Economy. | ST |
| price | No | Ticket price (fare plus carrier-imposed charges, without government taxes) in US dollars. Shown on your receipt as the fare plus carrier-imposed charges. Required unless creditTo is given. | |
| status | No | Your MileagePlus status. none = General (No status); PS = Silver; PG = Gold; PP = Platinum; 1K = 1K. | none |
| flights | No | Flights on this ticket. Each flight (segment) earns 1 PQF. Basic Economy earns none. | |
| creditTo | No | Credit the flights to a partner program instead of United Airlines's own: 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. 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 |