Player
get_playerUse for a player's season-by-season batting (AVG, OBP, SLG, OPS, HR, K%, BB%, RE24, from every plate appearance) and pitching (ERA, WHIP, K/9, BB/9). Costs 5 credits.
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>"
},
"name": "get_player"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| league | No | League. Defaults to mlb. One of: mlb, ncaabase. | |
| player_id | Yes | Player id, from search_players. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | ||
| player | Yes | ||
| batting | Yes | ||
| pitching | Yes |