MLB player season stats and bio from the official MLB Stats
dev_mlb_statsMLB player season stats (hitting or pitching) and bio from the official MLB Stats API (statsapi.mlb.com). Input is the MLB person id; season stats only, no game feed. Free public data, MLB copyright applies. Related tools on this server, for a different need: dev_mlb_statsapi when you need MLB games for one date from the official MLB Stats API; dev_nba_stats when you need NBA player season statistics, sorted leaderboard: per. Price: $0.002 in USDC per successful call, paid with x402 (Base, Solana or Arc); failed calls are not charged.
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": {
"playerId": "<playerId>"
},
"name": "dev_mlb_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| group | No | hitting (default) or pitching | |
| season | No | Season year YYYY (default: 2025) | |
| playerId | Yes | MLB person id, e.g. 660271 (Shohei Ohtani) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| team | No | ||
| group | No | ||
| stats | No | ||
| player | No | ||
| season | No | ||
| source | No | ||
| checkedAt | No |