# Tumor Marker Kinetics Calculator AI Agent Connect

> Tumor Marker Kinetics Calculator MCP provides specialized math for analyzing tumor marker concentration trends. Your AI client uses this to determine doubling or halving times and regression statistics from longitudinal patient data, handling both linear and log-linear models while accounting for assay detection limits.

## Overview
- **Category:** healthcare
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_PJsJnMIoqeBfSe6BXRIfJWr9d0CUzoucVuBE6qGz/ai-agent-connect
- **Tags:** oncology, kinetics, biomarkers, regression, medical-data

## Description

You can use this MCP to turn raw serial measurements into actionable kinetic data. Instead of manually calculating rates of change, you provide your agent with a series of marker concentrations and dates. The MCP handles the heavy lifting of regression analysis, including the complexities of censored values and assay detection limits. You can model disease progression using linear or log-linear approaches to see how quickly a marker is doubling or halving. This is useful for tracking how a patient responds to treatment or how quickly a tumor is growing. Your AI client can check if your specific dataset is mathematically sound for the model you want to run, or it can pull high-level summaries of a patient's entire marker history. It's a precise way to quantify biological trends from messy clinical data.

## Tools

### compare_intervals
Use this to find the specific rate of change between two adjacent measurements. It's useful for seeing how a marker's behavior shifts between visits.

### get_measurement_summary
This tool provides a high-level descriptive overview of a marker's history. It summarizes counts, means, and extremes from your data.

### validate_kinetic_parameters
This tool checks if your dataset is mathematically suitable for the kinetic model you intend to use. It prevents errors by verifying data readiness.

### calculate_marker_kinetics
This tool calculates doubling or halving times and regression statistics for tumor markers. It supports linear and log-linear modeling for your datasets.

## Prompt Examples

**Prompt:** 
```
Calculate the doubling time for these PSA measurements: [{"date": "2023-01-01", "value": 10}, {"date": "2023-03-01", "value": 20}, {"date": "2023-05-01", "value": 40}] with an assay unit of 'ng/mL', detection limit of 0.1, and a log-linear model.
```

**Response:** 
```
The doubling time for the PSA measurements is 60 days.
```

**Prompt:** 
```
Give me a summary of these CEA levels: [{"date": "2023-01-01", "value": 5.5}, {"date": "2023-02-01", "value": 0.05}] with a detection limit of 0.1.
```

**Response:** 
```
The summary for the CEA levels shows 2 measurements, a minimum value of 0.05, a maximum value of 5.5, a mean value of 2.775, and 1 censored measurement.
```

**Prompt:** 
```
Check if these measurements are suitable for a log-linear model: [{"date": "2023-01-01", "value": 10}, {"date": "2023-02-01", "value": 15}] with a detection limit of 0.1.
```

**Response:** 
```
The dataset is mathematically suitable for the requested log-linear model.
```

## Capabilities

### Kinetic Modeling
Your agent uses this to calculate doubling and halving times via linear or log-linear models.

### Data Validation
The MCP checks if your marker data meets the mathematical requirements for specific kinetic models.

### Statistical Summarization
Your AI client generates descriptive overviews of marker histories, including means and censored values.

### Interval Analysis
The tool calculates the rate of change between specific pairs of measurements.

## Use Cases

### Monitoring Disease Progression
Calculate how fast a PSA level is doubling to assess tumor growth.

### Evaluating Treatment Response
Determine the halving time of a tumor marker to see how effectively a therapy is working.

### Data Quality Checks
Verify if a set of clinical measurements is appropriate for log-linear regression.

### Trend Summarization
Get a quick statistical overview of a patient's CEA levels over several months.

## Benefits

- Automates the math for doubling and halving time calculations.
- Accounts for assay detection limits and censored data points.
- Provides instant statistical summaries of marker histories.
- Validates data suitability before running complex models.

## How It Works

You connect your AI client to the Vinkius-hosted MCP and start providing data.

1. Connect your AI client to the Vinkius catalog.
2. Provide a list of marker measurements and dates to your agent.
3. Specify the model type and assay detection limits.
4. The MCP runs the requested kinetic or statistical calculation.
5. Your agent receives the results directly in your chat interface.

## Frequently Asked Questions

**What kind of models does this MCP support?**
The MCP supports both linear and log-linear models for calculating marker kinetics.

**How does it handle assay detection limits?**
The tools account for assay detection limits and censored values during the calculation of doubling and halving times.

**Can I use this with Claude or Cursor?**
Yes, this MCP works with any MCP-compatible client, including Claude, Cursor, and Windsurf.

**Does it calculate doubling times?**
Yes, the calculate_marker_kinetics tool is specifically designed to find doubling and halving times.

**How do I know if my data is good enough for a model?**
You can use the validate_kinetic_parameters tool to check if your dataset is mathematically suitable for your chosen model.

**What is the difference between linear and log-linear models?**
A linear model assumes a fixed amount of change per unit of time, while a log-linear model assumes the rate of change is proportional to the current concentration, which is standard for biological growth.

**How does the tool handle values below the detection limit?**
Values less than or equal to the specified detection limit are flagged as censored using `calculate_marker_kinetics` or `get_measurement_summary` to ensure statistical accuracy.

**Can I use this to compare specific time periods?**
Yes, you can use the `compare_intervals` tool to calculate the specific rate of change between adjacent measurement pairs.
