get_team_stats
Read-only
Use for team offence and run prevention for a season: runs per game for and against, run differential, and batting and opponents' batting (AVG, OBP, SLG, OPS, K%, BB%, HR) from every plate appearance. Costs 5 credits.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| team | No | ||
| league | No | League. Defaults to mlb. One of: mlb, ncaabase. | |
| season | No | Season (a year, e.g. 2025; default: the latest). |
Output Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | ||
| teams | Yes | ||
| method | Yes | ||
| season | Yes |