mlb_statcast_year_to_year
Fetch statistical rows from Baseball Savant Year-to-Year Changes for batters, pitchers, batting teams, or pitching teams. Select one of the live metrics and comparison years; sorting and pagination are applied locally. Use mlb_discovery for exact groups, metrics, and years.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | Local sortable column: name_display_last_first, year_YYYY, TYPE_YYYY, or TYPE_diff_YYYY. Defaults to the selected metric's difference for the comparison start year. | |
| type | No | Metric from mlb_discovery. Defaults to hard_hit_percent. | |
| year | No | Comparison start year from mlb_discovery; compares the selected year to the following year. Defaults to 2025. | |
| group | No | Table group from mlb_discovery: Batter, Pitcher, Batter Team, or Pitcher Team. Defaults to Batter. | |
| limit | No | Rows per page, 1-500; defaults to 100. | |
| offset | No | Zero-based row offset, 0-5000. | |
| sort_dir | No | Local sort direction: asc or desc. Defaults to the page direction for the selected group. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | The tool result payload (shape varies per tool; see each tool's docs resource). |