Skip to main content
Glama

MLB player season statistics, sorted leaderboard: per

sports_baseball_reference
Read-only

MLB player season statistics, sorted leaderboard (default home runs): per player team, position, batting (G, AB, R, H, 2B, 3B, HR, RBI, BB, SO, SB, AVG, OBP, SLG, OPS, WAR), pitching (GS, W, L, SV, HLD, IP, ERA, WHIP, K/9, WAR) and fielding. Regular season or postseason, 2002 to now. ERA and WHIP sort lowest first. Data from ESPN's public stats API (Baseball-Reference blocks automated access). Related tools on this server, for a different need: sports_pro_football_reference when you need NFL player season statistics, sorted leaderboard: per; sports_hockey_reference when you need NHL season standings from Hockey-Reference: every team. Price: $0.002 per successful call, paid with x402 (USDC on Base, Solana and 10 more networks); failed calls are not charged.

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": "sports_baseball_reference"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage, 1 to 40
sortNohomeruns, avg, rbi, hits, ops, stolenbases, war, era, strikeouts, wins, saves, whip
limitNoPlayers per page, 1 to 50 (default 25)
seasonNoSeason year (default current)
seasonTypeNoregular (default) or playoffs
qualifiedOnlyNotrue (default) = only players meeting ESPN's minimums

Output Schema

NameRequiredDescriptionDefault
pageNo
sortNo
seasonNo
sourceNo
resultsNo
checkedAtNo
seasonTypeNo
seasonLabelNo
totalPlayersNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond readOnlyHint/openWorldHint, the description discloses the data source and range, the sort-direction quirk (ERA and WHIP lowest first), and the payment model: $0.002 per successful call via x402 across multiple networks, with failed calls not charged. The pricing/auth disclosure is exactly the kind of behavior an agent cannot get from the annotations and needs before calling.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded, but the long parenthetical stat enumeration (G, AB, R, H, 2B, 3B, HR, ...) largely duplicates the output schema, and the sibling/pricing boilerplate is dense. It is one sprawling block rather than cleanly structured sections, so some content does not earn its space.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given an output schema and read-only annotations, the description still covers everything an agent needs to decide and call: data source, coverage window, season-type options, sort-direction caveat, and cost/failure charging. Nothing material is missing for a filtered leaderboard tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 100% schema coverage the baseline is 3, but the description adds real meaning: the default sort is home runs, ERA and WHIP invert to ascending, and the season parameter is bounded to 2002-present. It does not explain page/limit/qualifiedOnly behavior beyond what the schema already states.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb+resource+scope: MLB player season statistics as a sorted leaderboard, with the default sort stated (home runs) and the metric families enumerated. It also explains why the name says 'baseball_reference' while the data comes from ESPN's public API, so an agent can identify the tool unambiguously.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives clear usage context (regular season or postseason, 2002 to now) and explicitly routes to siblings for other sports, naming sports_pro_football_reference and sports_hockey_reference with their respective conditions. The gap is that the closest MLB alternatives (sports_mlb_stats, sports_mlb_statsapi) are not differentiated, so an agent must still guess among same-domain tools.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources