# Frequent Flyer Miles Calculator AI Agent Connect

> Calculate precise airline mileage accrual, including base miles, bonus miles, and EQM.

## Overview
- **Category:** finance
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_AwrUzaZnnb7ZWxWA9jijjZq61F2A4bBf9EMqQ0Of/ai-agent-connect
- **Tags:** airline, miles, loyalty, travel-planning, aviation

## Description

This MCP server provides deterministic tools for calculating frequent flyer mileage accrual. It bridges AI agents to airline loyalty logic, allowing for precise calculations of base miles, bonus miles based on fare class multipliers, and Elite Qualification Miles (EQM). Use `calculate_flight_distance` to find the distance between IATA codes, `get_program_rules` to fetch airline-specific multipliers, and `calculate_mileage_accrual` to get the final breakdown of redeemable and status-qualifying miles.

## Tools

### calculate_flight_distance
Determines the physical distance of a flight between two IATA airport codes

### calculate_mileage_accrual
Calculates the specific breakdown of miles earned for a single flight segment

### get_program_rules
Retrieves the specific multipliers and constants for a given airline program

## Prompt Examples

**Prompt:** 
```
How many miles will I earn for a 1200 mile flight with a Y fare class on AAdvantage?
```

**Response:** 
```
You will earn 2,400 total redeemable miles (1,200 base miles and 1,200 bonus miles) and 1,200 EQM.
```

**Prompt:** 
```
What is the distance between JFK and LAX?
```

**Response:** 
```
The great-circle distance between JFK and LAX is approximately 2,475 miles.
```

**Prompt:** 
```
Calculate accrual for a 300 mile domestic flight with fare class Q on SkyMiles.
```

**Response:** 
```
You will earn 500 total redeemable miles (due to the domestic minimum guarantee) and 300 EQM.
```

## Frequently Asked Questions

**How are bonus miles calculated?**
Bonus miles are calculated by applying a specific multiplier to the base miles, which is determined by the airline program and the fare class used for booking.

**Does this tool handle domestic flight guarantees?**
Yes, the `calculate_mileage_accrual` tool applies a minimum mile guarantee of 500 miles for domestic flights to ensure a baseline accrual.

**What is the difference between redeemable miles and EQM?**
Redeemable miles are the total miles you can spend on rewards, including bonuses. EQM (Elite Qualification Miles) are the miles used to determine your tier status within a loyalty program.
