Skip to main content
Glama

FastballAPI

get_spray_chart

Read-only

Use for where a batter or team hits the ball: balls in play by trajectory (ground ball, line drive, fly ball, pop-up) and by field (left, center, right), with hit rates; include_balls adds each ball's location for drawing. Costs 10 credits.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
teamNo
seasonNoSeason (a year; default: the latest; ignored with game_id).
batter_idNo
include_ballsNoAdd each ball in play's x/y (up to 3,000).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
ballsNo
seasonYes
by_fieldYes
balls_noteNo
balls_in_playYes
by_trajectoryYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.