Skip to main content
Glama
Crawlora MCP

Crawlora MCP

Official

nba_team_stats_leaders

Retrieve NBA league leaders for a chosen statistical category, season, and player scope, returning ranked player rows with published stat columns such as PTS, REB, and AST.

Instructions

NBA league leaders for one statistical category. Returns the league leaders table for one ranked statistical category: one row per player with the columns the source publishes, keyed by the source's own column names such as PLAYER_ID, PLAYER_NAME, TEAM_ID, GP, MIN, PTS, REB and AST. stat_category is required and the 22 verified ranked categories are accepted; the upstream answers HTTP 403 when it is omitted, so this route rejects the request locally instead. The aggregation is limited to PerGame, Totals and Per48 because the upstream rejects Per36, Per100Possessions, MinutesPer and PerPossession on this table.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "stat_category": "<stat_category>"
    },
    "name": "nba_team_stats_leaders"
  }
}

Input Schema

NameRequiredDescriptionDefault
scopeNoPlayer pool; S (all players), Rookies or RS (regular-season qualifiers)
seasonNoSeason in YYYY-YY form; defaults to the current NBA season
per_modeNoAggregation; PerGame, Totals or Per48
league_idNoLeague id; only 00 (NBA) is verified
season_typeNoSeason type; Regular Season, Playoffs, Pre Season or PlayIn
stat_categoryYesRanked statistic; 22 verified categories

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changedv1.17.28
    • changedInput schema / properties / per_mode / description
      Previous value: -"Aggregation; PerGame or Totals"New value: +"Aggregation; PerGame, Totals or Per48"
    • changedInput schema / properties / per_mode / enum
      Previous value: -[
      -  "PerGame",
      -  "Totals",
      -  "Per36",
      -  "Per48",
      -  "Per100Possessions",
      -  "MinutesPer",
      -  "PerPossession"
      -]New value: +[
      +  "PerGame",
      +  "Totals",
      +  "Per48"
      +]
    • changedInput schema / properties / scope / description
      Previous value: -"Player-pool scope; S is all players (the only verified value)"New value: +"Player pool; S (all players), Rookies or RS (regular-season qualifiers)"
    • changedInput schema / properties / scope / enum
      Previous value: -[
      -  "S"
      -]New value: +[
      +  "S",
      +  "Rookies",
      +  "RS"
      +]
    • changedInput schema / properties / season_type / description
      Previous value: -"Season type; Regular Season or Playoffs"New value: +"Season type; Regular Season, Playoffs, Pre Season or PlayIn"
    • changedInput schema / properties / season_type / enum
      Previous value: -[
      -  "Regular Season",
      -  "Playoffs",
      -  "Pre Season",
      -  "All Star"
      -]New value: +[
      +  "Regular Season",
      +  "Playoffs",
      +  "Pre Season",
      +  "PlayIn"
      +]
    • changedInput schema / properties / stat_category / description
      Previous value: -"Ranked statistic; PTS, REB or AST"New value: +"Ranked statistic; 22 verified categories"
    • changedInput schema / properties / stat_category / enum
      Previous value: -[
      -  "PTS",
      -  "REB",
      -  "AST",
      -  "BLK",
      -  "STL",
      -  "TOV"
      -]New value: +[
      +  "PTS",
      +  "FGM",
      +  "FGA",
      +  "FG_PCT",
      +  "FG3M",
      +  "FG3A",
      +  "FG3_PCT",
      +  "FTM",
      +  "FTA",
      +  "FT_PCT",
      +  "OREB",
      +  "DREB",
      +  "REB",
      +  "AST",
      +  "STL",
      +  "BLK",
      +  "TOV",
      +  "PF",
      +  "EFF",
      +  "AST_TOV",
      +  "STL_TOV",
      +  "MIN"
      +]
  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 burden and does so well: it discloses that the upstream returns HTTP 403 when stat_category is omitted and that the route rejects locally instead, plus which per_mode values the upstream refuses. It omits any mention of auth, rate limits, or result sizing, keeping it short of a 5.

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?

Purpose is front-loaded in the first sentence, followed by output shape and then the two upstream constraints. No filler, though the column-name list is slightly padded and could have been shortened without loss.

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 six-parameter tool with no output schema, the description adequately covers return shape (one row per player, source-native column keys with examples) and the failure modes of the two most important parameters. Ordering/ranking semantics and pagination are left implicit, which is the only real gap.

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, but the description adds genuine meaning by explaining why stat_category is necessary (upstream 403) and why per_mode is restricted to PerGame/Totals/Per48 (upstream rejects Per36, Per100Possessions, and others). The other four parameters (scope, season, league_id, season_type) get no mention beyond the schema.

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?

States a specific verb and resource ("NBA league leaders for one statistical category") and clarifies the output grain ("one row per player"), which resolves the ambiguity created by the name's "team_stats" prefix. It does not, however, distinguish itself from similarly named siblings such as nba_league_leaders or nba_homepage_leaders.

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?

The description implies usage by stating stat_category is required and that the route rejects requests locally, but it never says when to pick this over an alternative leaders tool. There are no explicit exclusions or routing hints, only constraint-level guidance.

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