nba_team_stats
Retrieve league-wide team statistics for an NBA, G League, or WNBA season, with filters for measure, aggregation, season type, location, opponent, and date range.
Instructions
NBA league-wide team statistics table. Returns the league-wide team statistics table for one season, measure and aggregation: one row per team with the columns the source publishes for that measure, keyed by the source's own column names such as TEAM_ID, TEAM_NAME, GP, W, L, W_PCT, PTS and PLUS_MINUS. The measure is Base, Advanced, Misc, Scoring, Defense, Opponent or Four Factors (with the space; Usage is player-only) and the aggregation any of the ten per modes; league_id 20 reads the G League and 10 the WNBA, and season_type adds PlayIn and IST (the NBA Cup). Every optional filter (home or road, result, All-Star split, half, last N games, month, period, dates, conference and division of the team or opponent, team, opponent, position, starter or bench, experience, plus/minus, pace adjustment and shot-clock bucket) was replayed against the unfiltered table and changes its rows; Height, Weight and Rank are accepted upstream but never change the rows, so they are not offered. The columns differ between measures, so read the response's headers list rather than assuming a fixed set.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "nba_team_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| month | No | Calendar month number, 1 to 12 | |
| period | No | Period, 1 to 4 and 5 for the first overtime | |
| season | No | Season in YYYY-YY form (a four-digit year for league_id 10); defaults to the current season of the league | |
| date_to | No | Last game date in MM/DD/YYYY form | |
| outcome | No | Wins or losses | |
| team_id | No | Team id from nba-standings; keeps that team or its players | |
| division | No | Division of the team | |
| location | No | Home or road games | |
| per_mode | No | Aggregation | |
| date_from | No | First game date in MM/DD/YYYY form | |
| league_id | No | League id; 00 (NBA), 20 (G League) or 10 (WNBA, whose season is a four-digit year) | |
| conference | No | Conference of the team | |
| plus_minus | No | Y adds plus/minus columns | |
| pace_adjust | No | Y pace-adjusts the counting statistics | |
| season_type | No | Season type | |
| vs_division | No | Opponent division | |
| game_segment | No | One part of each game | |
| last_n_games | No | Most recent N games, 1 to 100 | |
| measure_type | No | Statistic family; Four Factors is written with the space | |
| starter_bench | No | Starters or reserves | |
| vs_conference | No | Opponent conference | |
| season_segment | No | Split at the All-Star break | |
| player_position | No | Position group | |
| opponent_team_id | No | Opponent team id from nba-standings; keeps the games against that team | |
| shot_clock_range | No | Shot-clock bucket | |
| player_experience | No | Experience group |