Skip to main content
Glama
Crawlora MCP

Crawlora MCP

Official

nba_player_stats

Retrieve league-wide basketball player statistics for a season, filtered by measure, league, team, player attributes, game conditions, and aggregation.

Instructions

NBA league-wide player statistics table. Returns the league-wide player statistics table for one season, measure and aggregation: one row per player with the columns the source publishes for that measure, keyed by the source's own column names such as PLAYER_ID, PLAYER_NAME, TEAM_ID, GP, MIN, PTS, REB and AST. The measure is Base, Advanced, Misc, Scoring, Defense or Usage (player-only; Opponent and Four Factors answer empty player tables) 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 (the team-table filters plus college, birth country, draft year and draft-pick group) was replayed against the unfiltered table and changes its rows. Read the response's headers list rather than assuming a fixed column 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_player_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
monthNoCalendar month number, 1 to 12
periodNoPeriod, 1 to 4 and 5 for the first overtime
seasonNoSeason in YYYY-YY form (a four-digit year for league_id 10); defaults to the current season of the league
collegeNoCollege name as the source spells it
countryNoBirth country name as the source spells it
date_toNoLast game date in MM/DD/YYYY form
outcomeNoWins or losses
team_idNoTeam id from nba-standings; keeps that team or its players
divisionNoDivision of the team
locationNoHome or road games
per_modeNoAggregation
date_fromNoFirst game date in MM/DD/YYYY form
league_idNoLeague id; 00 (NBA), 20 (G League) or 10 (WNBA, whose season is a four-digit year)
conferenceNoConference of the team
draft_pickNoDraft-pick group
draft_yearNoFour-digit draft year
plus_minusNoY adds plus/minus columns
pace_adjustNoY pace-adjusts the counting statistics
season_typeNoSeason type
vs_divisionNoOpponent division
game_segmentNoOne part of each game
last_n_gamesNoMost recent N games, 1 to 100
measure_typeNoStatistic family; Usage is player-only
starter_benchNoStarters or reserves
vs_conferenceNoOpponent conference
season_segmentNoSplit at the All-Star break
player_positionNoPosition group
opponent_team_idNoOpponent team id from nba-standings; keeps the games against that team
shot_clock_rangeNoShot-clock bucket
player_experienceNoExperience group

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed34 schema fields changedv1.17.28
    • addedInput schema / properties / college
      Added value: +{
      +  "description": "College name as the source spells it",
      +  "type": "string"
      +}
    • addedInput schema / properties / conference
      Added value: +{
      +  "description": "Conference of the team",
      +  "enum": [
      +    "East",
      +    "West"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / country
      Added value: +{
      +  "description": "Birth country name as the source spells it",
      +  "type": "string"
      +}
    • addedInput schema / properties / date_from
      Added value: +{
      +  "description": "First game date in MM/DD/YYYY form",
      +  "type": "string"
      +}
    • addedInput schema / properties / date_to
      Added value: +{
      +  "description": "Last game date in MM/DD/YYYY form",
      +  "type": "string"
      +}
    • addedInput schema / properties / division
      Added value: +{
      +  "description": "Division of the team",
      +  "enum": [
      +    "Atlantic",
      +    "Central",
      +    "Southeast",
      +    "Northwest",
      +    "Pacific",
      +    "Southwest"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / draft_pick
      Added value: +{
      +  "description": "Draft-pick group",
      +  "enum": [
      +    "1st Round",
      +    "2nd Round",
      +    "1st Pick",
      +    "Lottery Pick",
      +    "Undrafted"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / draft_year
      Added value: +{
      +  "description": "Four-digit draft year",
      +  "type": "string"
      +}
    • addedInput schema / properties / game_segment
      Added value: +{
      +  "description": "One part of each game",
      +  "enum": [
      +    "First Half",
      +    "Second Half",
      +    "Overtime"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / last_n_games
      Added value: +{
      +  "description": "Most recent N games, 1 to 100",
      +  "type": "integer"
      +}
    • changedInput schema / properties / league_id / description
      Previous value: -"League id; only 00 (NBA) is verified"New value: +"League id; 00 (NBA), 20 (G League) or 10 (WNBA, whose season is a four-digit year)"
    • changedInput schema / properties / league_id / enum
      Previous value: -[
      -  "00"
      -]New value: +[
      +  "00",
      +  "20",
      +  "10"
      +]
    • addedInput schema / properties / location
      Added value: +{
      +  "description": "Home or road games",
      +  "enum": [
      +    "Home",
      +    "Road"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / measure_type / description
      Previous value: -"Statistic family; Base or Advanced"New value: +"Statistic family; Usage is player-only"
    • changedInput schema / properties / measure_type / enum
      Previous value: -[
      -  "Base",
      -  "Advanced",
      -  "Misc",
      -  "Scoring",
      -  "Defense",
      -  "Opponent"
      -]New value: +[
      +  "Base",
      +  "Advanced",
      +  "Misc",
      +  "Scoring",
      +  "Defense",
      +  "Usage"
      +]
    • addedInput schema / properties / month
      Added value: +{
      +  "description": "Calendar month number, 1 to 12",
      +  "type": "integer"
      +}
    • addedInput schema / properties / opponent_team_id
      Added value: +{
      +  "description": "Opponent team id from nba-standings; keeps the games against that team",
      +  "type": "integer"
      +}
    • addedInput schema / properties / outcome
      Added value: +{
      +  "description": "Wins or losses",
      +  "enum": [
      +    "W",
      +    "L"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / pace_adjust
      Added value: +{
      +  "description": "Y pace-adjusts the counting statistics",
      +  "enum": [
      +    "Y",
      +    "N"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / per_mode / description
      Previous value: -"Aggregation; PerGame or Totals"New value: +"Aggregation"
    • changedInput schema / properties / per_mode / enum
      Previous value: -[
      -  "PerGame",
      -  "Totals",
      -  "Per36",
      -  "Per48",
      -  "Per100Possessions",
      -  "MinutesPer",
      -  "PerPossession"
      -]New value: +[
      +  "PerGame",
      +  "Totals",
      +  "Per36",
      +  "Per48",
      +  "Per40",
      +  "PerMinute",
      +  "Per100Possessions",
      +  "Per100Plays",
      +  "MinutesPer",
      +  "PerPossession"
      +]
    • addedInput schema / properties / period
      Added value: +{
      +  "description": "Period, 1 to 4 and 5 for the first overtime",
      +  "type": "integer"
      +}
    • addedInput schema / properties / player_experience
      Added value: +{
      +  "description": "Experience group",
      +  "enum": [
      +    "Rookie",
      +    "Sophomore",
      +    "Veteran"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / player_position
      Added value: +{
      +  "description": "Position group",
      +  "enum": [
      +    "G",
      +    "F",
      +    "C"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / plus_minus
      Added value: +{
      +  "description": "Y adds plus/minus columns",
      +  "enum": [
      +    "Y",
      +    "N"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / season / description
      Previous value: -"Season in YYYY-YY form; defaults to the current NBA season"New value: +"Season in YYYY-YY form (a four-digit year for league_id 10); defaults to the current season of the league"
    • addedInput schema / properties / season_segment
      Added value: +{
      +  "description": "Split at the All-Star break",
      +  "enum": [
      +    "Pre All-Star",
      +    "Post All-Star"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / season_type / description
      Previous value: -"Season type; Regular Season or Playoffs"New value: +"Season type"
    • changedInput schema / properties / season_type / enum
      Previous value: -[
      -  "Regular Season",
      -  "Playoffs",
      -  "Pre Season",
      -  "All Star"
      -]New value: +[
      +  "Regular Season",
      +  "Playoffs",
      +  "Pre Season",
      +  "All Star",
      +  "PlayIn",
      +  "IST"
      +]
    • addedInput schema / properties / shot_clock_range
      Added value: +{
      +  "description": "Shot-clock bucket",
      +  "enum": [
      +    "24-22",
      +    "22-18 Very Early",
      +    "18-15 Early",
      +    "15-7 Average",
      +    "7-4 Late",
      +    "4-0 Very Late",
      +    "ShotClock Off"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / starter_bench
      Added value: +{
      +  "description": "Starters or reserves",
      +  "enum": [
      +    "Starters",
      +    "Bench"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / team_id
      Added value: +{
      +  "description": "Team id from nba-standings; keeps that team or its players",
      +  "type": "integer"
      +}
    • addedInput schema / properties / vs_conference
      Added value: +{
      +  "description": "Opponent conference",
      +  "enum": [
      +    "East",
      +    "West"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / vs_division
      Added value: +{
      +  "description": "Opponent division",
      +  "enum": [
      +    "Atlantic",
      +    "Central",
      +    "Southeast",
      +    "Northwest",
      +    "Pacific",
      +    "Southwest"
      +  ],
      +  "type": "string"
      +}
  2. Addedv1.17.20

TDQS

A3.8/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden and does disclose non-obvious behavior: certain measure types return empty tables, the column set varies by measure and must be read from the response's headers list, and every optional filter was verified against the unfiltered table to change rows. It does not explicitly state that the operation is read-only or mention auth or rate limits, leaving a small gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The definition is dense but earns most of its length, front-loading the core purpose and ending with the actionable "read the response's headers list" instruction. The first sentence duplicates the second sentence's opening clause, and the sentence about filters being replayed is verbose relative to its payload.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 30-parameter tool with no annotations and no output schema, the description covers the critical gaps: which measures yield data, how leagues and season types map, and that return columns are dynamic. It does not address whether the call is read-only or how large the result set may be, which are minor omissions at this complexity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, and the description earns more by grouping the filters ("the team-table filters plus college, birth country, draft year and draft-pick group") and explaining the league_id mapping (20 = G League, 10 = WNBA) and season_type extensions (PlayIn, IST). Most of this duplicates the schema's own enum descriptions, so it is additive rather than transformative.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource ("Returns the league-wide player statistics table for one season, measure and aggregation") and the scoping words "league-wide" and "one season" implicitly separate it from career or game-log siblings. The opening sentence restates the title almost verbatim, which is mild waste, but the second sentence carries the real specificity.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied rather than directed: it explains which measure and aggregation values are valid and warns that "Opponent and Four Factors answer empty player tables" and that Usage is player-only, which is genuine when-not guidance. However, it never names a sibling or states the condition under which an agent should prefer nba_player_career_stats or nba_player_game_logs instead.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools