# Radial Velocity Combiner AI Agent Connect

> Radial Velocity Combiner is a specialized statistical engine designed for astrophysics. It gives your AI client the ability to merge multiple RV observations, check for systematic errors, and decompose uncertainty components. You can use it to validate datasets and ensure physical validity before running complex models.

## Overview
- **Category:** science
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_HqSGqM0BNBql4pubVyqaav2TxSMpRd0uaqgSNW7Y/ai-agent-connect
- **Tags:** radial-velocity, astrophysics, statistics, data-analysis, precision-measurement

## Description

You can now give your AI agent the math required for high-precision radial-velocity work. This MCP handles the heavy lifting of merging disparate observations while accounting for instrument offsets and error correlations. Instead of manually calculating weighted means or checking for signal consistency, you can delegate these statistical tasks to your agent. 

It works by providing specific tools to manage the lifecycle of an RV dataset. You can start by using the validation tool to catch negative uncertainties or physical impossibilities. Once your data is clean, you can combine multiple measurements into a single representative value or break down the total uncertainty into measurement error and intrinsic scatter. If you suspect unmodeled signals or systematic errors are skewing your results, the consistency analysis tool identifies these discrepancies. This turns your AI client into a capable partner for processing complex astronomical datasets.

## Tools

### analyze_rv_consistency
This tool evaluates how consistent a set of measurements is. It looks for unmodeled signals or systematic errors in your data.

### calculate_error_budget
This tool decomposes total uncertainty. It separates measurement error from intrinsic scatter.

### combine_rv_measurements
This tool performs the primary statistical combination. It merges multiple RV measurements into one representative value.

### validate_rv_inputs
This tool verifies the mathematical and physical integrity of your RV datasets. It catches errors before you process them.

## Prompt Examples

**Prompt:** 
```
Combine these radial velocities: [10.5, 10.2, 10.8] with uncertainties [0.1, 0.15, 0.12].
```

**Response:** 
```
The weighted mean radial velocity is 10.48 m/s with a combined uncertainty of 0.07 m/s.
```

**Prompt:** 
```
Check if these velocities [50.1, 50.2, 49.9] with uncertainties [0.1, 0.1, 0.1] are consistent.
```

**Response:** 
```
The measurements are statistically consistent with a p-value of 0.85.
```

**Prompt:** 
```
Validate these RV inputs: velocities [10, 11], uncertainties [0.1, -0.1].
```

**Response:** 
```
The dataset is invalid due to a negative uncertainty at index 1.
```

## Capabilities

### Data Merging
Your agent combines multiple RV observations into a single value.

### Error Decomposition
Your agent separates measurement error from intrinsic scatter.

### Consistency Checking
Your agent identifies unmodeled signals or systematic errors.

### Dataset Validation
Your agent checks for mathematical and physical errors in your inputs.

## Use Cases

### Observation Merging
Combine multiple RV measurements from different instruments into one coherent value.

### Error Analysis
Decompose total uncertainty to understand the source of errors in a dataset.

### Signal Verification
Check if a set of measurements is statistically consistent or contains systematic errors.

### Data Cleaning
Run validation checks to ensure datasets are physically valid before analysis.

## Benefits

- Automates the combination of multiple RV measurements.
- Identifies systematic errors and unmodeled signals.
- Separates measurement error from intrinsic scatter.
- Prevents processing errors by validating input integrity.

## How It Works

Connect your AI client to Vinkius to access these statistical tools immediately.

1. Connect your AI client to the Vinkius hosted MCP.
2. Provide your radial-velocity data to your agent.
3. Instruct your agent to use specific tools like combine_rv_measurements or validate_rv_inputs.
4. Receive the processed statistical results directly in your chat interface.

## Frequently Asked Questions

**What can this MCP do with radial-velocity data?**
It provides tools to combine measurements, calculate error budgets, check for consistency, and validate dataset integrity.

**Which AI clients can use this MCP?**
You can use this MCP with any compatible client, including Claude, Cursor, Windsurf, and VS Code.

**How does it handle instrument offsets?**
The combine_rv_measurements tool accounts for instrument offsets and error correlations when merging observations.

**Can it detect errors in my dataset?**
Yes, the validate_rv_inputs tool checks for mathematical and physical validity, while analyze_rv_consistency looks for systematic errors.

**Do I need to host the MCP myself?**
No, Vinkius hosts and manages the MCP for you. You connect your client and start working.

**How does the tool handle different instruments?**
You can provide `instrumentOffsets` and `instrumentNames` to `combine_rv_measurements` to align measurements from different spectrographs to a common reference.

**Can I account for correlated errors?**
Yes, by providing a covariance matrix to the `combine_rv_measurements` tool, the engine will use the full covariance instead of treating errors as independent.

**How are outliers identified?**
Outliers are identified by comparing the distance of a measurement from the weighted mean against the product of its uncertainty and your specified `outlierThreshold`.
