Points or Cash Calculator
calculate_points_or_cashShould this flight be booked with points or cash? Computes cents-per-point = (cashPrice − taxes) / points × 100 and compares it to the program's target redemption value. Returns a clear verdict with the margin. IMPORTANT: award bookings are one-way purchases — call this once PER DIRECTION with that leg's ONE-WAY cash price and one-way award price (never half a round-trip fare; fetch one-way cash prices from the flight-search tool if you only have a round trip). Round trips often split points-one-way/cash-the-other.
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": {
"program": "<program>",
"pointsCost": "<pointsCost>",
"taxesUsd": "<taxesUsd>",
"cashPriceUsd": "<cashPriceUsd>"
},
"name": "calculate_points_or_cash"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| route | No | ORIGIN-DEST being priced, e.g. 'BOS-SFO' (optional; anonymous aggregate stats only — include when known) | |
| program | Yes | ||
| taxesUsd | Yes | ||
| pointsCost | Yes | ||
| cashPriceUsd | Yes |