Skip to main content
Glama
DanielTomaro13

sportsdata-mcp

mlb_stats

Read-onlyIdempotent

Query MLB player season stats by group (hitting, pitching, fielding) and type (season, career, date range). Filter by team or player pool, sort by a stat, and limit results for top-N tables.

Instructions

Season stats query across players — by group (hitting/pitching/fielding) and type (season, career, byDateRange, ...). Sort + limit for top-N tables.

Returns: {stats:[{type, group, splits:[{season, player, team, stat:{...}}]}]}

Auth: none needed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
groupNoStat group: hitting | pitching | fielding.hitting
limitNoMax rows.
statsNoStat type: season | career | yearByYear | byDateRange | statSplits | ...season
seasonNoSeason year.
teamIdNoFilter to one team.
sportIdNoSport id (1 = MLB).
sortStatNoStat to sort by (e.g. 'homeRuns').
playerPoolNoall | qualified | rookies | etc.
Behavior4/5

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

Annotations already declare readOnlyHint, openWorldHint, and idempotentHint, so the bar is lower. The description adds value by specifying the exact return shape ({stats:[...]}), explicitly stating 'Auth: none needed', and mentioning sort/limit behavior. It does not contradict the annotations and provides useful behavioral context beyond the structured fields.

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

Conciseness5/5

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

The description is three concise sentences covering purpose, return structure, and auth, all front-loaded and free of fluff. Every sentence contributes meaningful information, and the return structure is presented cleanly.

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 no output schema, the description provides a concrete return structure, effectively serving as a mini output schema. It also notes auth requirements. However, for an 8-parameter tool, it lacks details on default season behavior, how byDateRange works with other filters, or examples of common queries, which would help an agent invoke it correctly in varied scenarios.

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 baseline is 3. The description reiterates the group and type options and mentions sort/limit, but adds no new semantic detail beyond what the schema already provides for each parameter. It does not clarify interactions or default behaviors for parameters like season or sportId.

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 clearly states 'Season stats query across players' with a specific verb and resource, and enumerates groups (hitting/pitching/fielding) and stat types (season, career, byDateRange, ...). This distinguishes it from sibling tools like mlb_player_stats and mlb_leaders, making its purpose unambiguous.

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?

The description provides clear context that this is for querying stats across players, with sort/limit for top-N tables, implying use for aggregate comparisons rather than single-player lookups. However, it does not explicitly name alternatives or exclusions, such as pointing to mlb_player_stats for individual player stats, so it lacks explicit when-not-to-use guidance.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/DanielTomaro13/sportsdata-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server