# Actuarial Joint-Life & Last-Survivor Calculator AI Agent Connect

> Actuarial Joint-Life & Last-Survivor Calculator provides your agent with the math needed for complex annuity modeling. It uses marginal mortality tables and dependence factors to calculate present values for both joint-life and last-survivor scenarios. Your AI client can pull mortality data and validate all parameters to ensure each calculation is mathematically sound.

## Overview
- **Category:** finance
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_cYYp9Ru6tX9HllUbWyKIuijaggoSkWGeq1O2Pffa/ai-agent-connect
- **Tags:** actuarial, annuity, mortality, finance, probability

## Description

You can now hand off complex actuarial math to your AI client. This MCP handles the heavy lifting for joint-life and last-survivor annuity computations. Instead of manually checking mortality tables or calculating dependence factors, you give your agent the ages, interest rates, and table names. The engine applies specific mortality assumptions to determine the present value of payments that stop after the first death or continue until the second. It also includes a validation step to catch logical errors in your inputs before it runs the math. This makes it a reliable tool for modeling life contingencies and annuity payouts without leaving your coding or chat environment.

## Tools

### calculate_joint_life_annuity
This tool calculates the present value for annuities that pay out only while both individuals are still alive.

### calculate_last_survivor_annuity
Use this to find the present value for payments that continue until the second person in a pair passes away.

### get_mortality_data
This tool lets your agent look up available mortality table metadata and specific age ranges.

### validate_calculation_parameters
This tool checks your ages, mortality tables, and financial terms to ensure they are logically consistent.

## Prompt Examples

**Prompt:** 
```
Calculate a joint-life annuity for two 65-year-olds using table 'std_pop_01', 3% interest, $1000 annual benefit, beginning of period, and 0 deferment with 0.05 dependence.
```

**Response:** 
```
The present value for the joint-life annuity is $14,250.45 with a joint survival probability of 0.82.
```

**Prompt:** 
```
What are the available mortality tables?
```

**Response:** 
```
The available tables are 'std_pop_01' (Standard Population), 'high_prec_02' (High-Precision Demographic), and 'spec_cohort_03' (Specialized Cohort).
```

**Prompt:** 
```
Calculate a last-survivor annuity for ages 70 and 68 using table 'high_prec_02', 4% interest, $500 semi-annual benefit, end of period, and 5 years deferment with 0.1 dependence.
```

**Response:** 
```
The last-survivor annuity value is $22,180.12 with a last-survivor survival probability of 0.91.
```

## Capabilities

### Joint-Life Modeling
Your agent calculates values for payments that cease upon the first death.

### Last-Survivor Modeling
Your agent calculates values for payments that continue until the second death.

### Mortality Table Access
Your agent retrieves metadata and age ranges from specific mortality tables.

### Parameter Validation
Your agent checks if ages and financial terms are mathematically consistent.

### Dependence Factor Application
Your agent applies specific dependence assumptions to the annuity calculations.

## Use Cases

### Annuity Pricing
Calculate the present value of payments for a couple based on specific mortality tables.

### Risk Assessment
Model how different dependence factors change the value of a last-survivor annuity.

### Data Verification
Use the validation tool to check if a set of ages and interest rates is valid for a specific table.

### Scenario Comparison
Compare joint-life vs last-survivor annuity values for the same pair of individuals.

## Benefits

- Calculates present values using marginal mortality tables.
- Validates inputs to prevent logical errors in financial modeling.
- Supports both joint-life and last-survivor annuity structures.
- Provides direct access to mortality table metadata.

## How It Works

Connect your AI client to Vinkius to start running actuarial math immediately.

1. Connect your MCP-compatible client to Vinkius.
2. Ask your agent to retrieve available mortality data using the get_mortality_data tool.
3. Provide the ages, interest rates, and table names to your agent.
4. Your agent uses the calculation tools to find the present value.
5. Your agent returns the final value and survival probabilities.

## Frequently Asked Questions

**What kind of annuities can this MCP calculate?**
It calculates both joint-life annuities, which pay while both people are alive, and last-survivor annuities, which pay until the second person dies.

**How does the MCP handle mortality data?**
The MCP includes a tool to retrieve metadata and age ranges from available mortality tables.

**Can your agent check my math before running a calculation?**
Yes, the validate_calculation_parameters tool checks if your ages, tables, and financial terms are logically consistent.

**Does this work with any AI client?**
It works with any MCP-compatible client like Claude, Cursor, or Windsurf.

**What is a dependence factor in these calculations?**
The dependence factor is a specific assumption used during the calculation to account for how the lives of the two individuals are related.

**What is the difference between joint-life and last-survivor annuities?**
A joint-life annuity pays only while both individuals are alive, whereas a last-survivor annuity continues until the second person dies.

**How does the dependence factor affect the calculation?**
The dependence factor adjusts the joint survival probability to account for mortality correlation between the two individuals.

**Can I validate my inputs before running a full calculation?**
Yes, you can use `validate_calculation_parameters` to check if ages, tables, and deferment periods are logically consistent.
