# Basketball Stats Calculator AI Agent Connect

> Compute advanced basketball metrics like TS%, eFG%, USG%, and PER.

## Overview
- **Category:** analytics
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_JFvL7eDD2P10QSmIbfnjb8a1pehMFkiW6K3SOzxl/ai-agent-connect
- **Tags:** basketball, nba, stats, analytics, efficiency

## Description

This MCP server provides a deterministic engine for calculating advanced basketball analytics. It allows AI agents to transform raw box score data into meaningful efficiency and impact metrics. Use `calculate_shooting_metrics` to find True Shooting and Effective Field Goal percentages, `calculate_usage_and_per_36` to determine Usage Rate and normalized per-36 minute statistics, and `calculate_impact_ratings` to evaluate Player Efficiency Rating (PER), Offensive/Defensive Ratings, and Win Shares. It is designed to help analysts and fans understand player productivity relative to team pace.

## Tools

### calculate_impact_ratings
Calculate impact ratings

### calculate_shooting_metrics
Calculate shooting efficiency

### calculate_usage_and_per_36
Calculate usage and per-36 stats

## Prompt Examples

**Prompt:** 
```
Calculate the shooting efficiency for a player with 20 points, 8 FGM, 15 FGA, 2 3PM, 5 FTM, and 6 FTA.
```

**Response:** 
```
The player's True Shooting Percentage (TS%) is 61.2% and the Effective Field Goal Percentage (eFG%) is 53.3%.
```

**Prompt:** 
```
What are the per-36 minute stats for a player with 15 points, 5 rebounds, 4 assists, 2 steals, 1 block, and 2 turnovers in 20 minutes played, given a team pace of 100?
```

**Response:** 
```
The player's per-36 minute stats are 27.0 points, 9.0 rebounds, 7.2 assists, 3.6 steals, 1.8 blocks, and 3.6 turnovers.
```

**Prompt:** 
```
Calculate the impact ratings for a player with 25 points, 10 rebounds, 5 assists, 2 steals, 1 block, 3 turnovers, 10 FGA, 4 FTA, 20 minutes played, and a team pace of 100.
```

**Response:** 
```
The player's simplified PER is 24.5, Offensive Rating is 115.0, Defensive Rating is 102.0, and Win Shares is 4.2.
```

## Frequently Asked Questions

**What metrics can I calculate?**
You can calculate shooting efficiency (TS%, eFG%), usage rate (USG%), per-36 minute normalized stats, and impact ratings including PER, Offensive/Defensive Ratings, and Win Shares.

**Do I need to provide team pace?**
Yes, providing the team pace (possessions per 48 minutes) is required for calculating usage rate and pace-adjusted impact ratings.

**How is the per-36 minute stat calculated?**
The `calculate_usage_and_per_36` tool scales raw statistics by multiplying them by 36 and dividing by the total minutes played.
