# Longevity Swap Cashflow Calculator AI Agent Connect

> Longevity Swap Cashflow Calculator handles the heavy lifting for actuarial cash flow modeling. Your AI client uses this MCP to determine survival differentials, compute fixed and floating leg payments, and calculate present values. It turns raw survival data into clear settlement summaries for longevity swap contracts.

## Overview
- **Category:** finance
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_9M8NhWTPH3SEdLkgfIOPqQBizomPRDZfSerg79y6/ai-agent-connect
- **Tags:** longevity, swap, cashflow, actuarial, survival-rates

## Description

You can now run complex longevity swap calculations directly through your AI client. Instead of manually building spreadsheets to track survival rates and notional benefits, you give your agent the tools to compute the exact financial impact of population longevity shifts. This MCP handles the math for both fixed and floating sides of a swap, allowing you to model how changes in survival rates affect specific cash flows. You can determine the current worth of future flows using discount curves or pull a full settlement summary to see the net position and population status. It's built to turn survival data into actionable financial figures without the manual entry errors common in traditional modeling.

## Tools

### calculate_leg_payments
This tool computes the specific cash flow amounts for both the fixed and floating sides of the swap.

### calculate_present_value
It determines the current worth of expected future cash flows by applying a discount curve.

### get_settlement_summary
This tool consolidates the final financial position, including the net settlement amount and the status of the population.

### get_survival_differential
It calculates the percentage gap between the actual population performance and the baseline expectation.

## Prompt Examples

**Prompt:** 
```
What is the survival differential if the population survival rate is 0.95 and the base survival rate is 0.90?
```

**Response:** 
```
The survival differential is 0.05.
```

**Prompt:** 
```
Calculate the leg payments for a notional benefit of 1,000,000, a fixed rate of 0.02, a survival differential of 0.05, and an indexation factor of 1.05 for the date 2025-12-31.
```

**Response:** 
```
The fixed leg payment is 21,000 and the floating leg payment is 52,500.
```

**Prompt:** 
```
What is the settlement summary if the fixed leg total is 50,000, the floating leg total is 75,000, the present value is 60,000, and the population is complete?
```

**Response:** 
```
The settlement amount is 25,000, the present value is 60,000, and the incomplete survival status is false.
```

## Capabilities

### Survival Gap Analysis
Your agent uses this to find the difference between actual and expected survival rates.

### Leg Payment Computation
Your agent calculates both fixed and floating cash flows for the swap legs.

### Present Value Modeling
Your client applies discount curves to find the current value of future flows.

### Settlement Reporting
Your agent generates a final summary of the net settlement and population status.

## Use Cases

### Swap Leg Modeling
Calculate the exact cash flows for both sides of a longevity swap based on current survival data.

### Risk Assessment
Determine the survival differential to see how much a population has deviated from the baseline.

### Valuation
Find the present value of future longevity swap flows to understand current exposure.

### Settlement Preparation
Generate a final summary of net settlement amounts and population status for contract closing.

## Benefits

- Automates the calculation of fixed and floating leg payments.
- Reduces manual errors in survival differential math.
- Provides immediate present value calculations using discount curves.
- Consolidates complex swap data into a single settlement summary.

## How It Works

You connect the MCP to your AI client and start running calculations through natural language.

1. Connect your AI client to the Vinkius-hosted MCP.
2. Provide survival rates or notional benefit data to your agent.
3. Your agent calls the specific math tools to compute differentials or payments.
4. Your agent returns the calculated cash flows or settlement summaries to you.

## Frequently Asked Questions

**What can this MCP calculate?**
It calculates survival differentials, fixed and floating leg payments, present values, and settlement summaries for longevity swaps.

**How do I use this with my AI client?**
You connect once via Vinkius to your preferred MCP-compatible client like Claude or Cursor. Once connected, you ask your agent to perform the calculations.

**Does this handle discount curves?**
Yes, the calculate_present_value tool uses a discount curve to determine the current worth of future cash flows.

**Can I get a summary of the final position?**
Yes, the get_settlement_summary tool provides the net settlement amount and the status of the population.

**Is there any setup required?**
No, Vinkius hosts and manages the MCP, so it is ready to use as soon as you connect your client.

**What is a longevity swap?**
A longevity swap is a derivative contract where one party pays a fixed amount and receives a floating amount based on the actual survival rates of a specific population versus a baseline.

**How do I calculate the settlement amount?**
You can use the `get_settlement_summary` tool to consolidate the fixed leg total, floating leg total, and present value into a final settlement amount.

**Can I calculate the present value of future payments?**
Yes, the `calculate_present_value` tool allows you to determine the current worth of expected future cash flows using a provided discount curve.
