# Canine Pedigree & Inbreeding Calculator AI Agent Connect

> Canine Pedigree & Inbreeding Calculator MCP gives your AI client the ability to perform deep genetic analysis on canine lineages. It handles complex math like inbreeding coefficients, checks for pedigree errors, and maps out generational depth, making it a specialized tool for breeders and geneticists working with pedigree data.

## Overview
- **Category:** data-analysis
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_IWynyEx4EV6nUA5tgaH7LgxViw2JuVFHAR30mEkc/ai-agent-connect
- **Tags:** canine, inbreeding, pedigree, genetics, dog-breeding

## Description

You can now give your AI agent the ability to act as a specialized canine geneticist. This MCP provides the mathematical tools needed to analyze dog lineages without you having to manually calculate coefficients or hunt for structural errors in your data. 

When you provide your AI client with pedigree datasets, it uses this MCP to determine the probability of identity by descent. You can check for lineage integrity to ensure there are no circular paths or broken records in your files. It also breaks down how much specific ancestors contribute to a dog's genetic makeup and maps out how many generations are represented in a specific pedigree. Instead of manually tracing lines, you hand the data to your agent and let it run the numbers.

## Tools

### calculate_inbreeding_coefficient
This tool calculates the inbreeding coefficient for a specific dog. It uses tabular or path-coefficient algorithms to find the probability of identity by descent.

### summarize_pedigree_depth
This tool maps the generational reach of a pedigree. It tells you how many generations are included in the provided lineage data.

### get_ancestor_contribution_details
This tool identifies how much specific ancestors influence a dog's inbreeding. It provides a breakdown of ancestral influence within a pedigree.

### validate_pedigree_integrity
This tool checks for structural errors in lineage data. It detects issues like cycles where an individual is listed as its own ancestor.

## Prompt Examples

**Prompt:** 
```
Calculate the inbreeding coefficient for dog ID 'DOG123' using the tabular algorithm with this pedigree data: {"DOG123": {"parents": ["DOG001", "DOG002"]}, "DOG001": {"parents": ["DOG003", "DOG004"]}, "DOG002": {"parents": ["DOG003", "DOG005"]}, "DOG003": {"parents": ["DOG006", "DOG007"]}, "DOG004": {"parents": ["DOG008", "DOG009"]}, "DOG005": {"parents": ["DOG010", "DOG011"]}}
```

**Response:** 
```
The calculated inbreeding coefficient for DOG123 is 0.0625.
```

**Prompt:** 
```
Is this pedigree valid: {"A": {"parents": ["B", "C"]}, "B": {"parents": ["A", "D"]}}?
```

**Response:** 
```
No, the pedigree is invalid due to a detected cycle where individual A is an ancestor of itself.
```

**Prompt:** 
```
What is the maximum depth of this pedigree: {"A": {"parents": ["B", "C"]}, "B": {"parents": ["D", "E"]}, "C": {"parents": ["F", "G"]}}?
```

**Response:** 
```
The maximum depth of the pedigree is 2 generations.
```

## Capabilities

### Inbreeding Math
Your agent uses this to calculate the probability of identity by descent using tabular or path-coefficient methods.

### Lineage Validation
Your agent checks your pedigree files for structural errors or logical cycles.

### Ancestral Mapping
Your agent identifies how specific ancestors contribute to the overall inbreeding of a dog.

### Generational Analysis
Your agent summarizes the total depth of a pedigree to show how many generations are covered.

## Use Cases

### Mating Decision Support
You provide a pedigree to your agent to calculate the inbreeding coefficient before deciding on a breeding pair.

### Data Integrity Audits
You run a validation check on a large database of pedigrees to find structural errors or cycles.

### Lineage Profiling
You ask your agent to summarize the depth and ancestral contributions of a specific bloodline.

### Genetic Risk Assessment
You use the coefficient tools to assess the risk of identity by descent in specific lineages.

## Benefits

- Automates the math for inbreeding coefficients.
- Identifies errors in pedigree data like ancestor cycles.
- Provides a clear view of ancestral influence.
- Quantifies the generational depth of any given lineage.

## How It Works

Connecting this MCP to your AI client is a one-time setup that enables immediate genetic analysis.

1. Connect your preferred client like Claude or Cursor to Vinkius.
2. Provide your pedigree data to your AI agent in a structured format.
3. Ask your agent to perform a specific task like calculating a coefficient or validating a pedigree.
4. Your agent uses the MCP tools to process the data and returns the result.

## Frequently Asked Questions

**What algorithms does this MCP use for inbreeding?**
It uses both tabular and path-coefficient algorithms to determine the probability of identity by descent.

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

**How does it handle pedigree errors?**
The validation tool detects structural errors, such as cycles where an individual is listed as its own ancestor.

**Does it work with any canine data?**
It works with any pedigree data you provide to your AI client, as long as the lineage is clearly defined.

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

**What is an inbreeding coefficient?**
It is a measure of the probability that two alleles at a locus in an individual are identical by descent, inherited from a common ancestor.

**How can I check if my pedigree data has errors?**
You can use the `validate_pedigree_integrity` tool to scan for structural issues, missing links, or mathematical cycles.

**Can I see which ancestors contribute most to inbreeding?**
Yes, the `get_ancestor_contribution_details` tool provides a breakdown of the mathematical weight and paths for specific ancestors.
