Skip to main content
Glama

cwsi.net Fare Classes & Mileage Calculators

Royal Jordanian Royal Club Calculator

calculate_royal_jordanian_miles
Read-onlyIdempotent

Royal Jordanian Royal Club Award Miles and segments for Royal Jordanian flights. Award Miles = distance x a % set by the fare family (fam: Economy Saver, Economy Plus, Economy Flexi, Business Saver, Business Plus, Business Flexi) and the tier (Bronze Sunbird 50% to 200%, up to Platinum Hawk 125% to 275%), rounded down, no minimum. Each flight counts 1 segment (0.5 between Amman and Aqaba or Tel Aviv, which needs from and to). Set noearn to Y for an award ticket or one at a 50% discount or more (earns nothing). Tier Miles are not calculated. Progress toward Silver Jay (14 segments), Gold Sparrow (30) and Platinum Hawk (46) in 12 months; qs is the segments 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.

Input Schema

NameRequiredDescriptionDefault
qsNoSegments you have in the last 12 months (optional). Used only for the progress toward the next Royal Club tier. Amman-Aqaba and Amman-Tel Aviv count half.
famNoFare family. ES = Economy Saver (Economy, classes O, P, W); EP = Economy Plus (Economy, classes L, V, S, N, Q); EF = Economy Flexi (Economy, classes Y, B, H, K, M); BS = Business Saver (Business, classes I, Z); BP = Business Plus (Business, classes C, D); BF = Business Flexi (Business, classes J). The fare family on your Royal Jordanian ticket. The booking classes shown are as listed in Royal Jordanian's Tier Miles table; its Award Miles table names the families without letters, so the match is by family name (our reading).EP
segsYesThe 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).
tripNoTrip. ow = One way; rt = Round trip. Round trip counts the same flights back the other way.ow
noearnNoIs it an award ticket or a ticket at a 50% discount or more?. N = No; Y = Yes (earns nothing). Royal Jordanian says these tickets earn no Award Miles or Tier Miles. Choose No if you do not know.N
statusNoYour Royal Club tier. BR = Bronze Sunbird; SI = Silver Jay (+25 points); GO = Gold Sparrow (+50 points); PL = Platinum Hawk (+75 points). The tier is built into the percentage: each step up adds 25 points to the fare family's percentage.BR
creditToNoCredit the flights to a partner program instead of Royal Jordanian's own: american = American AAdvantage (creditStatus one of: AAdvantage member, AAdvantage Gold, AAdvantage Platinum, AAdvantage Platinum Pro, AAdvantage Executive Platinum); alaska = Atmos Rewards (creditStatus one of: Atmos Rewards member, Atmos Silver, Atmos Gold, Atmos Platinum, Atmos Titanium); ba-club = British Airways Club (creditStatus one of: Blue, Bronze, 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. The flights are segs (their miles), or creditFlights.
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.4/5.0
Behavior4/5

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

Annotations already mark this as read-only/idempotent/non-destructive, and the description adds valuable context beyond them: the source ('cwsi.net's calculator and the airline's published rules') and its unofficial status, the rounding-down-with-no-minimum rule, the 0.5-segment exception for Amman–Aqaba/Tel Aviv, and the fact that Tier Miles are not returned. It does not discuss confidence/precision caveats for the fare-family-to-booking-class mapping, which it admits is 'our reading.'

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 earning formula is front-loaded and each subsequent sentence carries a distinct rule (segments, noearn, tier progress, segs format). It is dense with minor redundancy — the segs entry rules and the Amman–Aqaba/Tel Aviv exception are stated in several places — but almost every sentence earns its place for a rule-heavy calculator.

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

Completeness5/5

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

With an output schema present, the description need not explain return values, and it fully covers the input complexity: the fare-family/tier rate model, segment counting, the eligibility flag, tier-progress semantics, and the partner-crediting path. Nothing an agent needs to invoke this 10-parameter, rule-heavy tool correctly is missing.

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 description coverage is 100%, so the baseline is 3; the description earns an extra point by adding meaning the schema lacks, such as the percentage ranges per fare family and tier (50%–200% Bronze to 125%–275% Platinum Hawk), the half-segment rule, and that noearn Y means 'earns nothing.' It does not, however, explain how the creditTo/creditStatus/creditClass trio interacts beyond what the schema already states.

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 opens with a specific verb+resource: 'Royal Jordanian Royal Club Award Miles and segments for Royal Jordanian flights,' which immediately distinguishes it from the ~50 sibling calculate_*_miles tools. It also names what it explicitly does not compute ('Tier Miles are not calculated') and defers segment-distance computation to calculate_flight_distance, further sharpening its scope.

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

Usage Guidelines4/5

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

It gives clear operating conditions: use fare family + tier to derive the earn rate, set noearn=Y for award or ≥50% discount tickets, and use qs only for tier progress. It also routes to creditTo for partner programs versus leaving it out for Royal Jordanian's own program. It stops short of naming alternatives (e.g., compare_fare_classes) when a user is deciding which fare family to credit.

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