Defense vs position (matchup strength)
get_defense_vs_positionReturns what each NFL defense allows per game to QBs, RBs, WRs or TEs: fantasy points plus yards, TDs, receptions and targets, from ESPN box scores, ranked so rank 1 allows the most (the best matchup). Use it for matchup-based start/sit and streaming, optionally over the last N weeks. Pro plan (Free and Basic keys get 403 pro_required).
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": "get_defense_vs_position"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| last | No | Only the trailing N weeks with games, 1-18. Default: the whole season. | |
| team | No | Only this defense. Team code, e.g. BUF or KC. LA/LAR, WSH/WAS and JAC/JAX are interchangeable. | |
| scoring | No | Fantasy scoring: ppr (full PPR, the default), half (half-PPR) or standard. | ppr |
| position | No | QB, RB, WR or TE. Default: all four. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | A sentence for the user saying which plan is needed. | |
| error | No | Present only when the call failed: what went wrong. | |
| weeks | No | Weeks included. | |
| reason | No | Machine-readable failure reason, e.g. basic_required or pro_required. | |
| season | No | Season. | |
| source | No | Data source. | |
| status | No | HTTP status of the failed API call. | |
| scoring | No | Scoring used. | |
| defenses | No | Per defense: fantasy points, yards, TDs, receptions and targets allowed per game, and rank. | |
| position | No | Position asked for. | |
| updated_at | No | When the data was last loaded. | |
| by_position | No | Without position: QB, RB, WR and TE lists. | |
| upgrade_url | No | Where to see the plans. | |
| rank_meaning | No | rank 1 = allows the most (the best matchup). | |
| required_plan | No | The plan that unlocks this data: basic or pro. |