# Color Index Calculator AI Agent Connect

> Color Index Calculator MCP handles the heavy lifting for astronomical data analysis. It gives your AI client the ability to compute pairwise color indices, manage uncertainty via covariance matrices, and calculate flux ratios. You can also use it to determine intrinsic colors by stripping away interstellar extinction effects.

## Overview
- **Category:** science
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_ZPDEjZmAJn8Kc3iLrk2KjS9LDPNIdPet8uUgJaNf/ai-agent-connect
- **Tags:** astronomy, photometry, physics, data-analysis, science

## Description

If you work with photometric data, you know that calculating color indices and managing error propagation is tedious. This MCP gives your AI client the specific math tools needed to process magnitude sets and flux ratios without you having to manually run scripts. You can feed a set of magnitudes to your agent and have it immediately generate all possible pairwise color indices. When you need to account for measurement uncertainty, the MCP uses covariance matrices to provide accurate propagated errors for those indices. It also handles intensity comparisons through flux ratio calculations. For researchers dealing with interstellar dust, the tool can calculate reddening-corrected colors to find the true intrinsic colors of an object. It turns your AI agent into a specialized photometry assistant that understands the relationship between passbands and extinction.

## Tools

### get_reddening_corrected_colors
This tool calculates an object's intrinsic colors by removing interstellar extinction effects.

### get_color_indices
This tool finds all possible pairwise color indices from a provided set of magnitudes.

### get_flux_ratios
This tool computes the ratio of light intensities between all pairs of passbands.

### get_propagated_errors
This tool calculates uncertainty for each pairwise color index using a provided covariance matrix.

## Prompt Examples

**Prompt:** 
```
Calculate the color indices for magnitudes [15.2, 14.8] with passbands ['B', 'V'].
```

**Response:** 
```
The color index B-V is 0.4.
```

**Prompt:** 
```
What is the flux ratio for magnitudes [12.0, 13.0] in passbands ['g', 'r']?
```

**Response:** 
```
The flux ratio g/r is 2.512.
```

**Prompt:** 
```
Calculate the corrected color if the observed B-V is 0.8 and the color excess E(B-V) is 0.1.
```

**Response:** 
```
The reddening-corrected B-V color is 0.7.
```

## Capabilities

### Color Index Computation
Your agent uses this to find magnitude differences across multiple passbands.

### Error Propagation
Your agent uses covariance matrices to determine uncertainty for color indices.

### Intensity Comparison
Your agent calculates flux ratios to compare light intensities between passbands.

### Extinction Correction
The tool removes interstellar extinction to find intrinsic object colors.

## Use Cases

### Photometric Analysis
Use the MCP to quickly generate color indices for a new set of observed magnitudes.

### Uncertainty Management
Apply covariance matrices to your data to get accurate error propagation for color indices.

### Reddening Correction
Correct observed colors for interstellar extinction to find true intrinsic properties.

### Flux Comparisons
Compare the intensity of light across different passbands using flux ratios.

## Benefits

- Automates the math for pairwise color indices from magnitude lists.
- Handles complex error propagation using covariance matrices.
- Removes interstellar extinction to reveal intrinsic color values.
- Provides quick flux ratio comparisons between different passbands.

## How It Works

Connecting this MCP to your AI client gives it immediate access to specialized photometry math.

1. Connect your preferred MCP-compatible client to Vinkius.
2. Provide your magnitude or flux data to your AI agent.
3. Your agent calls the specific tool needed for your calculation.
4. The MCP executes the math and returns the result to your agent.
5. Your agent presents the final value or data set to you.

## Frequently Asked Questions

**How do I use this MCP in Claude?**
You connect to the Vinkius catalog once, and the tools become available to your AI client automatically.

**Can this MCP handle error propagation?**
Yes, it uses a covariance matrix to calculate the uncertainty for each pairwise color index.

**What is the purpose of the reddening correction tool?**
It calculates the intrinsic colors of an object by removing the effects of interstellar extinction.

**Does this work with different passbands?**
Yes, you can specify passbands like B, V, g, or r to calculate indices and flux ratios.

**Do I need to host the MCP myself?**
No, Vinkius hosts and manages the MCP for you so it is ready to use immediately.

**What can I calculate with this tool?**
You can calculate color indices, propagate errors using a covariance matrix, find flux ratios, and determine reddening-corrected colors.

**How do I handle error propagation?**
Use the `get_propagated_errors` tool by providing the magnitudes, the passband labels, and a JSON string representing the square covariance matrix.

**Does this tool support reddening correction?**
Yes, the `getReddeningCorrectedColorsTool` allows you to calculate intrinsic colors by subtracting color excesses from observed indices.
