# Magnitude Flux Converter AI Agent Connect

> Magnitude Flux Converter is a specialized toolset for astronomical data processing. It lets your AI client handle the math behind logarithmic magnitudes, flux density, and integrated flux calculations. You can move from raw detector measurements to standardized scales or check if your magnitude and flux values are physically consistent with a specific zero point.

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

## Description

You can use this MCP to bridge the gap between raw observational data and physical units. Instead of manually calculating conversions, you let your agent handle the heavy lifting of astronomical photometry. You can take raw detector measurements and use the tools to translate them into standardized magnitude scales. If you have a specific magnitude and zero point, you can derive the physical flux density or calculate the total energy collected over a set exposure time. It also acts as a sanity check for your data. You can verify that your magnitude and flux values actually make sense together given a specific zero point, preventing errors in your physical models. It's built for researchers and students who need to move quickly between logarithmic and linear scales without manual math errors.

## Tools

### convert_instrumental_to_standard
This tool translates raw detector measurements into a standardized magnitude scale.

### get_flux_density
This tool calculates the physical flux density from a given magnitude.

### get_integrated_flux
This tool calculates the total energy collected over a specific time period.

### validate_conversion_consistency
This tool checks if a provided set of magnitude and flux values are physically compatible given a zero point.

## Prompt Examples

**Prompt:** 
```
Calculate the flux density for a magnitude of 15.0 using an AB system with a zero point of 3631.0.
```

**Response:** 
```
The calculated flux density is 1.0e-26 W/m²/Hz.
```

**Prompt:** 
```
What is the integrated flux for a flux density of 2.5e-12, an exposure of 30 seconds, and a passband width of 100 nm?
```

**Response:** 
```
The total integrated flux is 7.5e-9 units.
```

**Prompt:** 
```
Convert an instrumental magnitude of 12.5 to a standard magnitude with a zero point of 25.0.
```

**Response:** 
```
The standard magnitude is 12.5.
```

## Capabilities

### Magnitude to Flux Conversion
Your agent uses this to turn logarithmic magnitude values into physical flux density.

### Energy Collection Math
Your agent calculates total energy collected over specific exposure durations.

### Instrumental Standardization
Your agent converts raw detector data into standardized scales.

### Data Consistency Checks
The tool verifies that magnitude and flux values match a specific zero point.

## Use Cases

### Photometric Calibration
Convert raw instrumental magnitudes into standard scales using a known zero point.

### Flux Density Derivation
Calculate the physical flux density of a source based on its measured magnitude.

### Exposure Analysis
Determine the total integrated flux collected during a specific observation window.

### Data Validation
Ensure that magnitude and flux values are physically compatible with your chosen zero point.

## Benefits

- Eliminates manual calculation errors in magnitude to flux conversions.
- Speeds up the transition from raw detector data to standardized scales.
- Provides a built-in way to check the physical validity of flux and magnitude pairs.
- Automates energy collection math for specific exposure times.

## How It Works

You connect the MCP to your AI client and start asking for conversions or validations.

1. Connect your AI client to the Vinkius-hosted MCP.
2. Provide your magnitude, flux, or instrumental data to your agent.
3. Your agent calls the specific tool needed for the calculation.
4. The tool returns the physical value or validation result.
5. Your agent presents the final result in your chat interface.

## Frequently Asked Questions

**What can this MCP do with astronomical data?**
It converts magnitudes to flux density, calculates integrated flux, standardizes instrumental measurements, and validates data consistency.

**How do I use this with Claude or Cursor?**
You connect to the Vinkius-hosted MCP once, and the tools become available as functions for your AI client to call.

**Can I check if my flux and magnitude values are correct?**
Yes, you can use the validate_conversion_consistency tool to check if they are physically compatible with a given zero point.

**Does this handle instrumental magnitude conversions?**
Yes, the convert_instrumental_to_standard tool translates raw detector measurements into a standard magnitude scale.

**Can I calculate energy collected during an exposure?**
Yes, the get_integrated_flux tool calculates the total energy collected over a specific time period.

**How do I convert a magnitude to flux density?**
You can use the `get_flux_density` tool by providing the measured magnitude, the specific zero point for your passband, and the system type (such as AB or Vega).

**Can I check if my magnitude and flux values are consistent?**
Yes, the `validate_conversion_consistency` tool checks if a magnitude and flux are physically compatible given a specific zero point and system type.

**How do I calculate the total energy collected during an observation?**
Use the `get_integrated_flux` tool. You will need to provide the flux density, the exposure duration in seconds, and the effective passband width.
