# Both Teams to Score Calculator AI Agent Connect

> Both Teams to Score Calculator is a mathematical engine that processes football scoreline matrices. It calculates the likelihood of specific outcomes like BTTS, home-only scoring, or away-only scoring. You can set custom goal thresholds to define scoring events and get instant, mathematically sound probability distributions for any match model.

## Overview
- **Category:** mathematics
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_0YtBfMSUXFCqfcE088KA497DHcFyoeBz9GglTBMz/ai-agent-connect
- **Tags:** football, probabilities, scoring, btts, statistics

## Description

You can stop manually calculating betting probabilities from raw scoreline data. This MCP acts as a math engine for your AI client, taking a matrix of possible football scores and their likelihoods and turning them into actionable outcomes. If you have a distribution of possible scores, you can instantly find the probability that both teams score, or the chance that only one side finds the net. 

You can define what counts as a scoring event by setting specific goal thresholds. This lets you move beyond simple binary outcomes and look at deeper scoring patterns. The tool also handles the heavy lifting of data integrity, ensuring your probability distributions actually add up correctly before you rely on them. It's built to turn raw statistical models into clear, readable summaries of the most likely match results.

## Tools

### calculate_scoring_outcomes
This tool derives the four mutually exclusive scoring probabilities from your provided matrix using a specific goal threshold.

### filter_matrix_by_threshold
Use this to pull a subset of your matrix that only includes scorelines meeting your required goal count.

### get_scoreline_summary
This tool generates a human-readable breakdown of the most probable scorelines and the total number of outcomes in your set.

### validate_matrix_integrity
This tool checks your scoreline matrix to ensure the probability distribution is mathematically sound and complete.

## Prompt Examples

**Prompt:** 
```
Calculate the scoring probabilities for this matrix: {"0-0": 0.1, "1-0": 0.2, "0-1": 0.1, "1-1": 0.2, "2-0": 0.1, "0-2": 0.1, "2-1": 0.1, "1-2": 0.1}
```

**Response:** 
```
{"bttsProbability": 0.4, "homeOnlyProbability": 0.4, "awayOnlyProbability": 0.1, "neitherProbability": 0.1, "totalProbability": 1.0}
```

**Prompt:** 
```
What is the most likely scoreline for this matrix: {"1-0": 0.4, "0-0": 0.3, "1-1": 0.2, "2-0": 0.1}
```

**Response:** 
```
{"mostLikelyScoreline": "1-0", "topThreeScorelines": ["1-0", "0-0", "1-1"], "totalOutcomes": 4}
```

**Prompt:** 
```
Filter the matrix for scores where at least one team scores 2 or more goals: {"0-0": 0.2, "1-1": 0.3, "2-0": 0.2, "0-2": 0.2, "1-0": 0.1}
```

**Response:** 
```
{"filteredMatrix": {"2-0": 0.2, "0-2": 0.2}, "totalFilteredProbability": 0.4}
```

## Capabilities

### Outcome Derivation
Your agent uses this to turn score matrices into BTTS or single-team scoring probabilities.

### Data Validation
The AI checks your probability distributions to ensure they are mathematically valid.

### Matrix Filtering
Your client can isolate specific scorelines that meet custom goal requirements.

### Result Summarization
The tool provides a clear view of the most probable match results from a large dataset.

## Use Cases

### BTTS Probability Calculation
You provide a matrix of scores and the AI tells you the exact probability of both teams scoring.

### Model Integrity Checks
Run a validation check on a new scoreline matrix to ensure it is complete and correct.

### High Scoring Filter
Filter a large dataset to only look at scorelines where a team scores multiple goals.

### Match Result Summaries
Get a quick overview of the top three most likely scores from a complex probability model.

## Benefits

- Converts raw scoreline data into specific betting probabilities instantly.
- Validates that probability distributions are mathematically sound.
- Allows for custom goal thresholds to define scoring events.
- Provides readable summaries of the most likely match outcomes.

## How It Works

Connect your client to Vinkius and start passing matrices to the tools.

1. Connect your MCP-compatible client to Vinkius.
2. Provide a scoreline probability matrix to your AI agent.
3. Ask the agent to run a specific tool like calculate_scoring_outcomes.
4. Receive the calculated probabilities or filtered data immediately.

## Frequently Asked Questions

**What can this MCP calculate?**
It calculates probabilities for Both Teams to Score, Home Team Only, Away Team Only, and Neither team scoring based on a scoreline matrix.

**Can I set my own goal thresholds?**
Yes, you can configure goal thresholds to define what counts as a scoring event for your calculations.

**How do I know if my matrix is correct?**
You can use the validate_matrix_integrity tool to check if your probability distribution is mathematically sound.

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

**Does it work with any football data?**
It works with any scoreline probability matrix you provide, regardless of the source.

**How do I ensure my scoreline matrix is valid?**
You can use the `validate_matrix_integrity` tool to verify that the sum of all probabilities in your matrix equals exactly 1.0.

**Can I change the definition of a scoring team?**
Yes, by using the `minGoalThreshold` parameter in the `calculate_scoring_outcomes` tool, you can define the minimum goals required for a team to be considered as having scored.

**What outcomes does the calculator provide?**
The engine returns four mutually exclusive outcomes: Both Teams to Score, Home Team Only, Away Team Only, and Neither Team to Score.
