Skip to main content
Glama

mlb_statcast_swing_timing

Read-only

Fetch Baseball Savant Swing Timing and Miss Distance rows for batters, teams, pitchers, or league totals. Filter by season, game type, split, team, date, pitch, count, timing axis, and threshold; use mlb_discovery for exact values.

Input Schema

NameRequiredDescriptionDefault
sortNoOptional local sort field from mlb_discovery.
typeNoOptional row type from mlb_discovery; defaults to batter.
flagsNoOptional positive flag filters from mlb_discovery.
limitNoOptional number of rows, 1-500; defaults to 100.
teamsNoOptional MLB team ids from mlb_discovery; select one or more.
countsNoOptional ball-strike counts from mlb_discovery; select one or more.
offsetNoOptional zero-based row offset.
splitsNoOptional split dimensions from mlb_discovery; defaults to api_pitch_type_group09.
seasonsNoOptional seasons from mlb_discovery; defaults to 2026.
bat_sideNoOptional batter side: L or R.
date_endNoOptional date range end in YYYY-MM-DD format.
sort_dirNoOptional sort direction: asc or desc.
min_splitNoOptional minimum group swings from mlb_discovery; defaults to 1.
not_flagsNoOptional excluded flag filters from mlb_discovery.
date_startNoOptional date range start in YYYY-MM-DD format.
game_typesNoOptional game-type codes from mlb_discovery; defaults to R.
min_swingsNoOptional minimum swing qualifier from mlb_discovery; defaults to q.
pitch_handNoOptional pitcher hand: L or R.
split_yearNoOptional year split flag: 1 or 0.
attack_zoneNoOptional attack-zone code from mlb_discovery.
pitch_typesNoOptional pitch type codes from mlb_discovery; select one or more.
contact_typeNoOptional contact type: 2, 4, or 9.
swing_timing_xNoOptional Tiedup, Centered, or Flail categories.
swing_timing_yNoOptional Early, OnTime, or Late categories.
swing_timing_zNoOptional Under, Linedup, or Over categories.

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. Changed11 schema fields changed
    • addedInput schema / properties / counts / items / description
      Added value: +"Documented values: 00, 01, 02, 10, 11, 12, 20, 21, 22, 30, 31, 32."
    • addedInput schema / properties / flags / items / description
      Added value: +"Documented values: is_timing_xyz_flawed, is_timing_xyz_perfect."
    • addedInput schema / properties / game_types / items / description
      Added value: +"Documented values: R, A, F, D, L, W."
    • addedInput schema / properties / not_flags / items / description
      Added value: +"Documented values: is_timing_xyz_flawed, is_timing_xyz_perfect."
    • addedInput schema / properties / pitch_types / items / description
      Added value: +"Documented values: FF, SI, FC, CH, FS, FO, SC, CU, SL, ST, SV, KN."
    • addedInput schema / properties / seasons / items / description
      Added value: +"Documented values: 2023, 2024, 2025, 2026."
    • addedInput schema / properties / splits / items / description
      Added value: +"Documented values: api_pitch_type_group03, api_pitch_type_group09, api_game_date_month_text, bat_contact_code, game_type, is_hit_into_play_hardhit, is_best_speed, timing_x_tiedupflail, timing_y_earlylate, timing_z_overunder, pitch_hand, bat_side, is_pre_ball_count_3, is_pre_strike_count_2, pitchzone_height_code, is_starter_pitcher."
    • addedInput schema / properties / swing_timing_x / items / description
      Added value: +"Documented values: Tiedup, Centered, Flail."
    • addedInput schema / properties / swing_timing_y / items / description
      Added value: +"Documented values: Early, OnTime, Late."
    • addedInput schema / properties / swing_timing_z / items / description
      Added value: +"Documented values: Under, Linedup, Over."
    • addedInput schema / properties / teams / items / description
      Added value: +"Documented values: 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 158."
  2. First observed

TDQS

A3.8/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 (read-only, external data) is covered. 'Fetch ... rows' is consistent with that. The description adds little beyond the annotations — no mention of pagination, default row behavior, or result limits — so a 3 is warranted given annotations carry the behavioral load.

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 tight sentences with zero filler; the core purpose is front-loaded and the routing hint ('use mlb_discovery') is placed last as a secondary pointer. Every clause earns its place.

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?

For a 25-parameter tool with full schema coverage, an output schema, and annotations covering the safety profile, the description gives enough framing (purpose, filter surface, discovery pointer) for correct invocation. It does not clarify the swing_timing_details sibling relationship, which is the one remaining gap.

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 every one of the 25 parameters is already documented, including documented value enumerations and defaults. The description only lists filter categories generically and adds no syntax or format detail beyond the schema, so the 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 (Fetch) and resource (Baseball Savant Swing Timing and Miss Distance rows) and names the entity types it can return (batters, teams, pitchers, league totals). It is clear, but it does not distinguish itself from the sibling mlb_statcast_swing_timing_details, which an agent would need to tell apart.

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?

Gives clear context by enumerating the filter dimensions available (season, game type, split, team, date, pitch, count, timing axis, threshold) and explicitly routes the agent to mlb_discovery for exact parameter values. No explicit when-not conditions are provided, but the contextual guidance is solid.

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.