# Secondary Attack Rate Calculator AI Agent Connect

> Secondary Attack Rate Calculator MCP handles the heavy lifting for epidemiological math. It calculates individual and pooled secondary attack rates (SAR) within specific exposure groups, manages exclusion intervals, and validates contact eligibility to ensure your transmissibility data stays accurate.

## Overview
- **Category:** healthcare
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_20MaJfUbXVvvmmiLS5W6ICT0RyVfTUmsw34T3m4f/ai-agent-connect
- **Tags:** epidemiology, sar, statistics, public-health, infection-control

## Description

You can use this MCP to automate the math behind infection transmission studies. Instead of manually calculating rates for every household or cluster, you can hand the raw data to your AI client and let it handle the statistical heavy lifting. It manages the complexities of observation windows and exclusion intervals so you don't have to worry about manual errors in your denominator. Whether you are looking at a single household or aggregating data across dozens of clusters, the tool provides the specific transmissibility metrics you need for public health reporting. It's built to handle the nuances of contact eligibility, ensuring that only valid contacts are included in your final calculations.

## Tools

### summarize_exposure_metrics
This tool generates a high level summary of infection pressure and exposure density.

### validate_contact_eligibility
This tool checks if a specific contact meets the necessary criteria to be included in your SAR denominator.

### calculate_pooled_sar
Use this to aggregate data from multiple clusters into a single collective transmission rate.

### calculate_cluster_sar
This tool calculates the specific attack rate for a single cluster or household.

## Prompt Examples

**Prompt:** 
```
Calculate the SAR for a cluster with 10 susceptible contacts and 2 secondary cases, with a 2-day exclusion interval and 14-day observation window.
```

**Response:** 
```
The secondary attack rate for this cluster is 20% (2/10).
```

**Prompt:** 
```
Is a contact eligible if they developed symptoms on day 5, the index case onset was day 0, the exclusion interval is 3 days, and the observation window is 10 days?
```

**Response:** 
```
Yes, the contact is eligible because their onset occurs after the exclusion interval and within the observation window.
```

**Prompt:** 
```
Summarize the exposure metrics for these two clusters: one with 5 contacts/1 case and another with 15 contacts/3 cases, using 'household' as the contact definition.
```

**Response:** 
```
The average attack rate across the clusters is 20%, with a total of 20 contacts analyzed across 2 clusters.
```

## Capabilities

### Cluster Analysis
Your agent uses this to find the attack rate for specific groups.

### Data Aggregation
The AI uses this to combine multiple clusters into one pooled rate.

### Eligibility Checking
Your agent uses this to filter contacts based on exclusion and observation windows.

### Metric Summarization
The AI uses this to provide a high level view of infection pressure.

## Use Cases

### Household Transmission Studies
Calculate how quickly a pathogen spreads within a single home.

### Outbreak Aggregation
Combine data from several different clusters to find a collective transmission rate.

### Contact Tracing Validation
Check if a contact should be counted based on their symptom onset timing.

### Infection Pressure Reporting
Generate summaries of exposure density for public health documentation.

## Benefits

- Automates the calculation of exclusion intervals and observation windows.
- Reduces manual errors in denominator selection for SAR.
- Aggregates multiple clusters into pooled rates instantly.
- Provides high level summaries of infection pressure from raw contact data.

## How It Works

Connect your AI client to Vinkius to start running epidemiological math.

1. Connect your preferred MCP-compatible client to Vinkius.
2. Provide your cluster or contact data to your AI agent.
3. Ask the agent to run specific calculations or validations.
4. Receive formatted SAR results or summaries directly in your chat.

## Frequently Asked Questions

**How does this MCP handle exclusion intervals?**
The tool uses the exclusion interval to determine if a contact is eligible for the denominator, ensuring they are not counted if they were exposed too close to the index case.

**Can I calculate rates for multiple clusters at once?**
Yes, you can use the pooled SAR tool to aggregate data from multiple groups into a single collective rate.

**What clients can I use with this MCP?**
You can use any MCP-compatible client like Claude, Cursor, Windsurf, or VS Code.

**Does this tool help with contact eligibility?**
Yes, it includes a specific tool to validate if a contact meets the criteria for inclusion based on your observation window and exclusion interval.

**Is the data hosted by Vinkius?**
Yes, Vinkius hosts and manages the MCP so it is ready to use immediately upon connection.

**How do I calculate the rate for a single household?**
You can use the `calculate_cluster_sar` tool by providing the household data including susceptible contacts and secondary cases.

**Can I aggregate results from multiple clusters?**
Yes, the `calculate_pooled_sar` tool is designed to aggregate data from multiple clusters to provide a collective transmission rate.

**What is an exclusion interval?**
An exclusion interval is a period where contacts cannot be counted as secondary cases because their timing makes it impossible to distinguish the source of infection.
