Skip to main content
Glama

cwsi.net Fare Classes & Mileage Calculators

South African Airways Voyager Miles Calculator

calculate_south_african_airways_miles
Read-onlyIdempotent

South African Airways Voyager miles for a flight South African Airways operates, from the published base fare plus carrier-imposed fees in South African rand (ZAR, no taxes): 1 Voyager mile per R1.60, rounded down. Give the ZAR amount for the flight (Voyager pro-rates a ticket over its sectors). The class-of-service bonus and the Silver 25%, Gold 50% and Platinum 75% tier bonus are not calculated (not published as a rate on these miles); Silver, Gold and Platinum need 20,000, 45,000 and 95,000 tier miles in a calendar year. Uses cwsi.net's calculator and the airline's published rules. Give the price in ZAR, 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_south_african_airways_miles"
  }
}

Input Schema

NameRequiredDescriptionDefault
priceNoBase fare and carrier fees (ZAR) in ZAR. In rand: the published base fare plus carrier-imposed fees, without taxes. Type the amount, with R or ZAR before it if you like (R1,500). Required unless creditTo is given.
creditToNoCredit the flights to a partner program instead of South African Airways'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. 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.
creditClassNoThe booking class letter on the ticket, for creditTo (required with creditTo). 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. Added

TDQS

A4/5.0
Behavior5/5

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

Annotations already cover the read-only, idempotent, non-destructive, non-open-world profile, so the description correctly focuses on calculation behavior. It discloses the earning rate, rounding, excluded class-of-service and tier bonuses, tier-mile thresholds, data source (cwsi.net plus published airline rules), and its unofficial status. That is rich context beyond what the annotations provide.

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 description is front-loaded with the core calculation rule and stays reasonably compact. Some detail, such as the calendar-year tier-mile thresholds, is tangential to the actual calculation and could be trimmed, but the overall structure is efficient and informative.

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?

The description adequately covers the primary SAA Voyager calculation, exclusions, and input currency. However, it entirely omits the partner-credit mode exposed by creditTo, creditClass, creditStatus, and creditFlights, which is a major second usage path in the schema. With an output schema present, return values need no explanation, but the dual-mode input behavior is a notable gap.

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

Parameters3/5

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

Schema description coverage is 100%, so the baseline is 3. The description adds modest meaning for price by saying it must be in ZAR and that Voyager pro-rates a ticket over sectors, but it adds nothing about the creditTo, creditClass, creditStatus, or creditFlights parameters, which the schema documents extensively. It also omits the conditional requirement that price is needed only without creditTo.

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?

The description names the specific airline program (South African Airways Voyager miles), the qualifying flight type (SAA-operated), and the exact earning basis (published base fare plus carrier-imposed fees in ZAR, 1 mile per R1.60 rounded down). This distinguishes it from the many sibling airline mileage calculators without needing to open the schema.

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?

It implies the tool is for SAA-operated flights and gives input instructions such as 'Give the ZAR amount' and 'Give the price in ZAR, not US dollars.' However, it never explicitly says when to use this tool versus other airline calculators or versus calculate_flight_distance, nor does it state when not to use it. No alternatives are named.

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