Skip to main content
Glama

mlb_statcast_swing_timing_details

Read-only

Fetch per-swing Statcast play details and timing measurements for a row_id returned by mlb_statcast_swing_timing. Pass the same table filters and type; use mlb_discovery to find accepted filter values.

Input Schema

NameRequiredDescriptionDefault
typeYesRequired row type: batter or pitcher.
flagsNoOptional positive flag filters from mlb_discovery.
teamsNoOptional MLB team ids from mlb_discovery; select one or more.
countsNoOptional ball-strike counts from mlb_discovery; select one or more.
row_idYesRequired uniqueId from a batter or pitcher row returned by mlb_statcast_swing_timing.
splitsNoOptional split dimensions from mlb_discovery; defaults to api_pitch_type_group09.
seasonsNoOptional seasons from mlb_discovery; defaults to the current season.
bat_sideNoOptional batter side: L or R.
date_endNoOptional date range end in YYYY-MM-DD format.
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; defaults to 1.
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, 117, 133, 141, 144, 158, 138, 112, 109, 119, 137, 114, 136, 146, 121, 120, 110, 135, 143, 134, 113, 111, 115, 118, 116, 142, 145, 147."
  2. First observed

TDQS

A4.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, covering the safety profile. The description adds useful drill-down dependency context (row_id origin, filter mirroring) but says nothing about result size, pagination, or why the filters must match. Adds some value over annotations, but modestly.

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 tightly packed sentences, zero filler. The core action is front-loaded and the workflow guidance follows without redundancy.

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?

Output schema exists so return values need no explanation, and the schema documents all 22 parameters. The description supplies the drill-down workflow and filter-discovery pointer, making it essentially complete, though it could clarify what "same table filters" means for the optional params.

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

Parameters4/5

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

With 100% schema coverage the baseline is 3, but the description adds meaning beyond the schema by instructing that the same table filters and type from the parent call should be passed, and by routing filter-value discovery to mlb_discovery. This is genuine parameterization guidance the schema does not contain.

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 ("per-swing Statcast play details and timing measurements") and explicitly ties itself to the sibling mlb_statcast_swing_timing by consuming its row_id. An agent can distinguish this drill-down from the parent list tool 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?

It gives clear workflow context: use a row_id returned by mlb_statcast_swing_timing, repeat the same table filters and type, and consult mlb_discovery for accepted filter values. It does not state any when-not condition, but the ordering relative to the parent tool is explicit.

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.