baseball_team_season
Pack: historical-baseball · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)
No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/baseball_team_season for the schema, then POST the same URL with its arguments for the data.
One team’s season record, standings result and team stats for one year.
Tool description as the model sees it
One MLB team’s full-season record and stats for one year, from the SABR Lahman Baseball Database (1871-2025): wins/losses, division/league/World Series result, runs scored and allowed, team batting and pitching totals, home park and attendance. Pass team as a 3-letter-ish code (“NYA”, “BOS”) or a common name (“Yankees”, “Red Sox”, “Dodgers”) — codes changed for some relocated/renamed franchises over the years (e.g. the Athletics’ code changed for 2025), so an unrecognized code for that year is refused with a clear error rather than an empty success; try the franchise’s name instead, or call with a nearby year to see what code that franchise used.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
team | string | yes | Team code (“LAN”) or common name (“Dodgers”). |
year | number | yes | Season year, e.g. 1927. |
Example call
Arguments
{
"team": "NYA",
"year": 1927
}
curl
curl -X POST https://gateway.pipeworx.io/historical-baseball/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"baseball_team_season","arguments":{"team":"NYA","year":1927}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('baseball_team_season', {
"team": "NYA",
"year": 1927
});
Connect
Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:
{
"mcpServers": {
"pipeworx": {
"url": "https://pipeworx.io/mcp"
}
}
}
Connect to just the historical-baseball pack
{
"mcpServers": {
"historical-baseball": {
"url": "https://gateway.pipeworx.io/historical-baseball/mcp"
}
}
}
See Getting Started for client-specific install steps.