Defense vs Position & Pace
defense_vs_positionUse this when the user asks which teams allow the most or fewest to a position ('best matchups for centers', 'defenses vs TE'). Returns what each NBA or NFL team allows per game to a position group (NBA: G, F, C, with pace rank; NFL: QB, RB, WR, TE), each number as [value, league rank] (1 = allows the most). Without position the NBA answer lists each group's ten softest teams (data_more counts the rest) and the NFL's the softest half: pass position for every team, as for the fewest allowed. Window 'recent' (last 10 games) needs Pro. Not for one player's matchup (player_profile's next game).
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": {
"league": "<league>"
},
"name": "defense_vs_position"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| league | Yes | League ("nba" or "nfl"). | |
| season | No | Optional season year. Defaults to the current season. | |
| window | No | Sample window: "season" (free) or "recent" (last 10 games, requires Pro). | season |
| position | No | Optional position group filter (NBA: "G", "F", "C"; NFL: "QB", "RB", "WR", "TE"). | |
| player_id | No | Optional numeric player ID: adds `player_matchup`, his next game's opponent and, per stat, his percentile in his position group beside what that defense allows the group (the first stat for every caller, every stat with Pro). |