nba_player_compare
Compare two sets of NBA players side by side over a season using player IDs, aggregation, and stat measure to retrieve individual and team statistics tables.
Instructions
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
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": {
"player_ids": "<player_ids>",
"vs_player_ids": "<vs_player_ids>"
},
"name": "nba_player_compare"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| season | No | Season in YYYY-YY form; defaults to the current season | |
| per_mode | No | Aggregation | |
| league_id | No | League id; only 00 (NBA) is verified | |
| player_ids | Yes | Player ids for the left side; repeated or comma-separated | |
| season_type | No | Season type | |
| measure_type | No | Statistic family; required upstream | |
| vs_player_ids | Yes | Player ids for the right side; repeated or comma-separated |