nba_player_compare
Get NBA two-sided player comparison. Compares two sets of players over one season, measure and aggregation. Each side accepts one or more player ids, either repeated (?player_ids=1&player_ids=2) or comma-separated (?player_ids=1,2); the ids are validated locally and forwarded in the upstream's comma-separated form. The response is the comparison's result sets (an individual-stats table and a team-stats table), keyed by the upstream's own column names such as GROUP_SET, DESCRIPTION, FGM, FGA, FG_PCT, REB, AST, PTS and PLUS_MINUS.
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_compare"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| season | No | Optional season in YYYY-YY form, for example 2026-27. Defaults to the current NBA season. | |
| per_mode | No | Optional aggregation; defaults to PerGame. | |
| league_id | No | Optional league id; only 00 (NBA) is verified. | |
| player_ids | No | One or more player ids for the left side, repeated or comma-separated, for example 1628398 or 1628398,2544. | |
| season_type | No | Optional season type; defaults to Regular Season. | |
| measure_type | No | Optional statistic family; required by the upstream, defaults to Base. | |
| vs_player_ids | No | One or more player ids for the right side, repeated or comma-separated, for example 2544. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | The tool result payload (shape varies per tool; see each tool's docs resource). |