Skip to main content
Glama

cwsi.net Fare Classes & Mileage Calculators

Air New Zealand Airpoints and Status Points Calculator

calculate_air_new_zealand_airpoints
Read-onlyIdempotent

Air New Zealand Koru Airpoints and Status Points for Air New Zealand flights: a fixed number per flight from Air New Zealand's own earn tables, by the directed airport pair (route group), booking class (cls) and, for Economy on domestic, Tasman and Pacific Islands flights, the fare (Seat, Seat+Bag, Flexi Change, Flexi Refund, The Works, Works Flexi). Airpoints can be decimals (for example 10.8). Classes N, I, R and X earn nothing; F earns Status Points only; a pair Air New Zealand does not list is not counted. Partner-airline flights are not calculated. The tier does not change the earning. Progress toward Silver (450), Gold (900), Platinum (1,500) and Black (3,200) Status Points in 12 months; sp is the Status Points so far. Give segs: one entry per one-way flight, in order, with from and to, the IATA codes of its two airports (required; distance and countries do not matter). Takes no price. Uses 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_air_new_zealand_airpoints"
  }
}

Input Schema

NameRequiredDescriptionDefault
spNoStatus Points you have in the last 12 months (optional). Used only for the progress toward Silver, Gold, Platinum and Black.
clsNoBooking class. C = C (Business); D = D (Business); Z = Z (Business); J = J (Business); U = U (Premium); E = E (Premium); O = O (Premium); A = A (Premium); Y = Y; B = B; M = M; H = H; Q = Q; V = V; W = W; T = T; L = L; S = S; G = G; K = K; P = P; F = F; X = X (earns nothing); N = N (earns nothing); I = I (earns nothing); R = R (earns nothing). The letter on your ticket. J, Z, D and C are Business Premier; A, O, E and U Premium Economy; the rest Economy.M
fareNoEconomy fare. S = Seat; SB = Seat+Bag; FC = Flexi Change; FR = Flexi Refund; WK = The Works or Works Flexi. Domestic flights: Seat, Seat+Bag, Flexi Change or Flexi Refund. Flights to Australia and the Pacific Islands: Seat, Seat+Bag, The Works or Works Flexi. Long-haul Economy earns the same on every fare. Only applies to some choices of the other fields; ignored otherwise.S
segsNoThe flights, one way and in order, one entry per flight (1 to 8): from and to, the IATA codes of its two airports (required: the earn table is keyed by the airport pair); optional fromCountry and toCountry, the ISO 3166 two-letter country codes of its two airports.
tripNoTrip. ow = One way; rt = Round trip. Round trip counts the same flights back the other way.ow
statusNoYour Koru tier. B = Bronze; S = Silver; G = Gold; P = Platinum; BK = Black. Your tier does not change what a flight earns; it is used for the progress below.B
creditToNoCredit the flights to a partner program instead of Air New Zealand'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). Give the flights as creditFlights (one entry per flight with its great-circle miles).
creditClassNoThe booking class letter for creditTo, when it differs from the class question. Ignored without creditTo.
creditStatusNoYour status in the creditTo program, by its name as listed under creditTo. Defaults to the base level. Ignored without creditTo.
creditFlightsNoThe 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

NameRequiredDescriptionDefault
linkYes
notesYes
inputsYes
airlineYes
headlineYes
progressNo
breakdownYes
calculatorYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / properties / creditClass
      Added value: +{
      +  "description": "The booking class letter for creditTo, when it differs from the class question. Ignored without creditTo.",
      +  "pattern": "^[A-Za-z]$",
      +  "type": "string"
      +}
    • addedInput schema / properties / creditFlights
      Added value: +{
      +  "description": "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.",
      +  "items": {
      +    "properties": {
      +      "from": {
      +        "description": "The departure airport's code; labels the breakdown.",
      +        "pattern": "^[A-Za-z0-9]{3,4}$",
      +        "type": "string"
      +      },
      +      "miles": {
      +        "description": "Great-circle distance of this flight in miles.",
      +        "maximum": 12500,
      +        "minimum": 1,
      +        "type": "integer"
      +      },
      +      "to": {
      +        "description": "The arrival airport's code; labels the breakdown.",
      +        "pattern": "^[A-Za-z0-9]{3,4}$",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "miles"
      +    ],
      +    "type": "object"
      +  },
      +  "maxItems": 8,
      +  "minItems": 1,
      +  "type": "array"
      +}
    • addedInput schema / properties / creditStatus
      Added value: +{
      +  "description": "Your status in the creditTo program, by its name as listed under creditTo. Defaults to the base level. Ignored without creditTo.",
      +  "maxLength": 64,
      +  "type": "string"
      +}
    • addedInput schema / properties / creditTo
      Added value: +{
      +  "description": "Credit the flights to a partner program instead of Air New Zealand'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). Give the flights as creditFlights (one entry per flight with its great-circle miles).",
      +  "enum": [
      +    "united",
      +    "aeroplan",
      +    "flying-club"
      +  ],
      +  "type": "string"
      +}
    • removedInput schema / required
      Removed value: -[
      -  "segs"
      -]
  2. Added

TDQS

A4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnly/idempotent/non-destructive, so the bar is low, and the description adds substantial domain behavior: zero-earn classes, F earning only Status Points, decimals, unlisted pairs being skipped, tier irrelevance, and the 'uses cwsi.net, unofficial' caveat. It does not cover error behavior or output interpretation, but for a read-only calculator this is well beyond the structured fields.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The earn logic, exclusions and segs format are front-loaded and information-dense. It is a single semicolon-chained paragraph of roughly 180 words with some repetition of the fare list and airline name, so a couple of sentences could be trimmed.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 10-parameter tool with two distinct modes, the description covers only the airline's own program and never mentions creditTo/creditClass/creditStatus/creditFlights or that an alternative crediting path exists. Output schema and schema descriptions compensate for return values and per-param detail, but the mode split is a real omission.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3, but the description adds real meaning: it expands the fare enum names (Seat, Seat+Bag, Flexi Change, Flexi Refund, The Works), explains 'sp' as Status Points so far, describes segs as one entry per one-way flight with required from/to, and notes distance/countries don't matter. It goes beyond the enum labels rather than restating them.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Air New Zealand Koru Airpoints and Status Points for Air New Zealand flights') and immediately scopes it: fixed earn per flight from ANZ's own tables, keyed by airport pair, booking class and fare. It also explicitly distinguishes itself from the ~50 sibling calculators by declaring partner-airline flights and unlisted pairs are not counted.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives domain conditions (N/I/R/X earn nothing, F earns Status Points only, tier does not change earning) and notes partner-airline flights are not calculated. But there is no routing to alternatives — e.g. calculate_flight_distance is only named in the schema, not the description — and the entire creditTo/partner-crediting mode, which is a major alternative path this tool supports, is never mentioned in the description.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources