team_season_pitching_stats
Retrieve full-season pitching statistics for an MLB team, including rotation and bullpen data from FanGraphs or Baseball Reference. Specify team abbreviation, season year, and optional pitcher name to access ERA, wins, strikeouts, WAR, and other metrics.
Instructions
Full-season actual pitching stats for one MLB team (rotation + bullpen).
Uses FanGraphs when available; otherwise scrapes Baseball Reference's team pitching table (W, L, ERA, G, GS, SV, IP, SO, WAR, etc.).
Args:
team: 3-letter abbreviation (e.g. PHI, NYY).
season: Season year (e.g. 2025).
min_innings: Minimum IP for the FanGraphs pull (default 1). Ignored for BRef
fallback (full staff).
player_name: Optional. One pitcher (e.g. Zack Wheeler).
Split rotation vs bullpen by sorting on GS in the table (starters vs relievers).
For league-wide pitching only, use season_pitching_stats.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| team | Yes | ||
| season | Yes | ||
| min_innings | No | ||
| player_name | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |