Skip to main content
Glama

mlb-api-mcp

MIT License
18
  • Apple

get_mlb_roster

Retrieve detailed MLB team rosters by team ID or name, with options to filter by date, roster type, season, or specific fields. Integrates with mlb-api-mcp for comprehensive baseball data access.

Instructions

Get team roster for a specific team (ID or name), with optional filters.

Args: team (str): Team ID or team name as a string. Can be numeric string, full name, abbreviation, or location. date (Optional[str]): Date in 'YYYY-MM-DD' format. If not provided, defaults to today. rosterType (Optional[str]): Filter by roster type (e.g., 40Man, fullSeason, etc.). season (Optional[str]): Filter by single season (year). hydrate (Optional[str]): Additional data to hydrate in the response. fields (Optional[str]): Comma-separated list of fields to include.

Returns: dict: Team roster information.

Input Schema

NameRequiredDescriptionDefault
dateNo
fieldsNo
hydrateNo
rosterTypeNo
seasonNo
teamYes

Input Schema (JSON Schema)

{ "properties": { "date": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Date" }, "fields": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Fields" }, "hydrate": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Hydrate" }, "rosterType": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Rostertype" }, "season": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Season" }, "team": { "title": "Team", "type": "string" } }, "required": [ "team" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/guillochon/mlb-api-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server