Skip to main content
Glama

MLB games for one date from the official MLB Stats API

sports_mlb_statsapi
Read-only

MLB games for one date from the official MLB Stats API: teams, scores, status, venue and current inning. Regular and postseason games as the schedule lists them; the date is the schedule date (UTC game times). MLB copyright applies. Related tools on this server, for a different need: sports_mlb_stats when you need MLB player season stats and bio from the official MLB Stats; sports_espn_mlb_scoreboard when you need ESPN MLB scoreboard for one date: every game with away. Price: $0.002 per successful call, paid with x402 (USDC on Base, Solana and 10 more networks); failed calls are not charged.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "sports_mlb_statsapi"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoSchedule date YYYY-MM-DD (default: yesterday UTC)

Output Schema

NameRequiredDescriptionDefault
dateNo
countNo
gamesNo
sourceNo
checkedAtNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only declare readOnly and openWorld; the description adds material context beyond them: the default date is yesterday UTC, times are UTC and this is the schedule date, regular and postseason games are included as listed, and MLB copyright applies. It also discloses the commercial model ($0.002 per successful call via x402, failed calls not charged), which is genuinely useful pre-call behavior. It does not describe pagination or response shape, but an output schema exists.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core sentence is well front-loaded and dense with useful detail, but the trailing sibling and pricing clauses run together without clean punctuation ('every game with away.', semicolon-heavy), making the second half harder to parse. The pricing tail is relevant but disproportionately long relative to a one-parameter tool.

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 single-optional-parameter read tool with annotations and an output schema, the description covers source, scope, default date, timezone semantics, game inclusion rules, and cost. Only minor gaps remain, such as behavior when the date has no games or any rate limits.

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?

Schema coverage is 100% and the single parameter already documents the YYYY-MM-DD format and the yesterday-UTC default. The description adds meaning the schema lacks: the date is the schedule date and game times are UTC, which prevents off-by-one-day interpretation errors.

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 and resource ('MLB games for one date') plus the source ('official MLB Stats API') and enumerates what each game record carries: teams, scores, status, venue, current inning. It also explicitly separates itself from two named siblings (player season stats, ESPN scoreboard), so an agent can pick it without opening another 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?

Usage is routed explicitly: use sports_mlb_stats for player season stats/bio and sports_espn_mlb_scoreboard for ESPN's scoreboard, implying this tool for official MLB game-level results by date. There is no explicit statement of when NOT to use this tool (e.g. multi-date ranges or live play-by-play), so it stops just short of full guidance.

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.

Resources