Skip to main content
Glama

Crawlora MCP

mlb_league_stats

Read-only

Fetch ranked MLB statistics with group, season, game type, league, team, hitter-position, player-pool, stat-period, and pagination filters.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
groupYesRequired. One of hitting, pitching, fielding, catching, running, game, team, streak.
limitNoOptional. Ranked results to return, 1-100. Defaults to 10.
offsetNoOptional. Zero-based result offset for ranked stats.
seasonNoOptional. Four-digit season; defaults to the current year.
team_idNoOptional numeric MLB team id from mlb_teams.
end_dateNoOptional. Date-range end for byDateRange stat types; must be paired with start_date.
positionNoOptional hitter position: C, 1B, 2B, 3B, SS, LF, CF, RF, DH, OF, or IF.
game_typeNoOptional. MLB game type code.
league_idNoOptional. MLB league id: 103 (American League) or 104 (National League).
stat_typeNoOptional. One of the stat types accepted by this endpoint; defaults to season.
start_dateNoOptional. Date-range start for byDateRange stat types; must be paired with end_date.
player_poolNoOptional qualified-player pool: QUALIFIED or ALL.
opponent_team_idNoOptional opposing team id; required by vsTeam stat types.
opponent_player_idNoOptional opposing player id; required by vsPlayer stat types.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYesThe tool result payload (shape varies per tool; see each tool's docs resource).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds that results are ranked and filterable but says nothing beyond what the schema states, and omits any note on pagination behavior or defaults.

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

Conciseness4/5

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

A single front-loaded sentence with no filler, though the long enumeration of filters borders on a parameter dump. It is appropriately sized and easy to scan.

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

Completeness4/5

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

With an output schema present and annotations covering safety, the description is sufficient for correct invocation since the schema carries all parameter detail. The remaining gap is sibling disambiguation, which matters given how many MLB stat endpoints exist.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already documents every parameter including enums, defaults, and pairing constraints. The description merely names filter dimensions and adds no syntax, format, or dependency detail beyond the schema.

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

Purpose4/5

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

States a specific verb (Fetch) and resource (ranked MLB statistics), which is clear. However, it does not differentiate from the near-identical sibling mlb_league_leaders, nor from mlb_player_stats or mlb_team_stats, leaving the agent to guess which stats endpoint to call.

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

Usage Guidelines2/5

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

The description only enumerates filter categories and gives no when-to-use guidance, no prerequisites, and no routing to alternatives like mlb_league_leaders. It is effectively a restatement of the parameter set.

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