Skip to main content
Glama

Crawlora MCP

mlb_team_stats

Read-only

Fetch season statistics for an MLB team by team ID and season. Use this for team-level batting or pitching summaries, not an individual game boxscore.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
groupYesRequired. One of hitting, pitching, fielding, catching, running, game, team, streak.
seasonNoOptional. Four-digit season; defaults to the current year.
team_idYesRequired. Numeric MLB team id.
end_dateNoOptional. Date-range end for byDateRange stat types; must be paired with start_date.
game_typeNoOptional. MLB game type code.
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.
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

A3.6/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 safe-read profile is covered. The description adds the season/team-level scope but says nothing about return format, rate limits, or the multiple query modes (date range, vsTeam, vsPlayer) the endpoint actually supports.

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?

Two tight sentences with the core action front-loaded and no filler. The exclusion clause earns its place, though it targets a single sibling while ignoring the more similar team/league stat tools.

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

Completeness3/5

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

With 9 parameters spanning several distinct query modes (season, byDateRange, vsTeam, vsPlayer) and no output-schema explanation needed, the description covers only the simplest season case. The full schema compensates for parameter detail, but the tool's multi-mode nature is left undisclosed.

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 coverage is 100%, so the schema documents all 9 parameters including group, stat_type, and the date/opponent params. The description only echoes team ID and season and adds no syntax or mode detail beyond the schema, so baseline 3 applies.

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 and resource ('Fetch season statistics for an MLB team') and explicitly scopes it to team-level batting/pitching. It distinguishes itself from the boxscore sibling, though it doesn't name the closer siblings mlb_player_stats or mlb_league_stats, leaving a bit of routing to inference.

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?

Provides clear when-to-use ('team-level batting or pitching summaries') and one explicit when-not ('not an individual game boxscore'). It names one alternative as an exclusion but doesn't route to the other adjacent stat tools, so guidance is clear but not exhaustive.

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