Skip to main content
Glama

mlb_statcast_swing_path

Read-only

Fetch Baseball Savant Swing Path and Attack Angle rows for batters, teams, or league totals with the supplied filters. Use mlb_statcast_swing_timing for timing measurements, mlb_statcast_bat_tracking for bat data, or mlb_discovery for accepted values.

Input Schema

NameRequiredDescriptionDefault
sortNoOptional local sort field from mlb_discovery.
typeNoOptional row type: batter, batting-team, or league; defaults to batter.
limitNoOptional number of rows, 1-500; defaults to 100.
offsetNoOptional zero-based row offset.
team_idNoOptional MLB team id from mlb_discovery.
bat_sideNoOptional batter side: L or R.
date_endNoOptional date range end in YYYY-MM-DD format.
sort_dirNoOptional sort direction: asc or desc.
game_typeNoOptional game type: Any, Exhibition, Playoff, or Regular.
date_startNoOptional date range start in YYYY-MM-DD format.
min_swingsNoOptional swing qualifier from mlb_discovery; defaults to q.
pitch_handNoOptional pitcher hand: L or R.
season_endNoOptional last season from 2023 through 2026; defaults to season_start.
attack_zoneNoOptional attack-zone code from mlb_discovery.
is_hard_hitNoOptional hard-hit filter: 1 or 0.
contact_typeNoOptional contact type: 2, 4, or 9.
season_startNoOptional first season from 2023 through 2026; defaults to 2026.
min_group_swingsNoOptional minimum swings per grouped row from mlb_discovery; defaults to 1.

Output 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

A4/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 filtering scope but nothing beyond that – no pagination behavior, default handling for the 18 optional params, or return characteristics. With annotations carrying the safety burden, a baseline 3 is appropriate.

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?

Two sentences, zero waste, purpose front-loaded ahead of the sibling-routing guidance. Nothing superfluous.

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?

An output schema exists so return values needn't be explained, and full schema coverage documents all parameters. The description supplies purpose and alternatives; for an 18-param tool it could optionally note pagination or key defaults, but nothing essential to correct invocation is missing.

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 all 18 parameters are already documented in the schema with defaults and formats. The description only alludes to the row-type concept (batters/teams/league) and generic 'filters', adding no syntax or semantics beyond the schema. Baseline 3 applies.

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?

States a specific verb (Fetch) and resource (Baseball Savant Swing Path and Attack Angle rows), plus the scope (batters, teams, or league totals with the supplied filters). An agent can distinguish it from swing_timing and bat_tracking siblings without opening either schema.

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?

Explicitly routes to alternatives with their distinct purposes: swing_timing for timing measurements, bat_tracking for bat data, and mlb_discovery for accepted values. It doesn't state an explicit 'when-not' for this tool itself, but the alternatives and their conditions effectively cover the routing decision.

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.