Player history vs an opponent
get_matchupsReturns a player's past games and fantasy points against one opponent. Use it for matchup questions like "how does he do against KC?". Basic plan and above.
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_id": "<player_id>",
"opponent": "<opponent>"
},
"name": "get_matchups"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| opponent | Yes | Opponent team code, e.g. KC. LA/LAR, WSH/WAS and JAC/JAX are interchangeable. | |
| player_id | Yes | GridIron player id, "First Last#POS", matched case-insensitively. Defenses are "Team Name#DST". Unsure of the id? Call search_players first. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | A sentence for the user saying which plan is needed. | |
| team | No | Current team code. | |
| error | No | Present only when the call failed: what went wrong. | |
| stats | No | His games and fantasy points against that opponent. | |
| reason | No | Machine-readable failure reason, e.g. basic_required or pro_required. | |
| status | No | HTTP status of the failed API call. | |
| opponent | No | Opponent team code. | |
| position | No | Position. | |
| player_id | No | GridIron player id ("First Last#POS"). | |
| player_name | No | Player name. | |
| upgrade_url | No | Where to see the plans. | |
| required_plan | No | The plan that unlocks this data: basic or pro. |