Skip to main content
Glama

Mlb Player Game Log

mlb_player_game_log
Read-onlyIdempotent

MLB player GAME LOG, per-game batting or pitching lines for a season, newest first, from the official MLB Stats API. "How has Yordan Alvarez hit over his last 10 games", "Gerrit Cole's last five starts", " recent form". Accepts a player NAME (resolved automatically) or numeric person_id; defaults to the current season and the most recent 15 games. Each row carries the date, opponent, home/away, game result, gamePk, and the line (hitting: AB, H, HR, RBI, BB, K, SB, plus running AVG/OPS; pitching: IP, H, R, ER, BB, K, HR, pitches, decision).

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "last": 10,
      "player": "Yordan Alvarez"
    },
    "name": "mlb_player_game_log"
  }
}

Input Schema

NameRequiredDescriptionDefault
lastNoHow many most-recent games to return (default 15, max 200). The full-season count is always reported in games_in_season.
groupNoOptional "hitting" or "pitching". Defaults to hitting for position players and pitching for pitchers.
playerYesPlayer NAME (e.g. "Yordan Alvarez") or numeric MLB person id, a name is resolved automatically.
seasonNoSeason year, e.g. 2025. Defaults to the current season.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / player / description
      Previous value: -"Player NAME (e.g. \"Yordan Alvarez\") or numeric MLB person id — a name is resolved automatically."New value: +"Player NAME (e.g. \"Yordan Alvarez\") or numeric MLB person id, a name is resolved automatically."
  2. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so safety is covered; the description adds the defaults (current season, 15 most recent games), the newest-first ordering, and automatic name resolution. It stops short of noting rate limits, error behavior, or what happens for a player with no games in the requested season.

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

Conciseness4/5

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

Front-loaded with purpose, then sample queries, then parameter defaults, then return-row fields — a sensible order. The final sentence listing every stat column is long but earns its place because no output schema exists.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description compensates by enumerating the row fields for both hitting and pitching lines (AB/H/HR/RBI plus AVG/OPS; IP/H/R/ER/BB/K/pitches/decision). Combined with the documented defaults and identification behavior, an agent has everything needed to call it and interpret results.

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 coverage is 100%, so `last`, `group`, `player` and `season` are already documented with defaults and ranges. The description restates the same defaults (current season, 15 games, name auto-resolved) rather than adding new meaning such as accepted name formats or behavior for ambiguous names.

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?

"MLB player GAME LOG, per-game batting or pitching lines for a season, newest first" names the resource, the granularity (per-game, not season aggregate), the ordering, and the source API. That granularity statement implicitly separates it from aggregate siblings like mlb_player_stats, and the sample queries make the intended use unmistakable.

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?

Three example phrasings ("last 10 games", "last five starts", "recent form") give concrete triggers for reaching for this tool. What is missing is an explicit exclusion or named alternative for season-summary or box-score requests, which the sibling list suggests exist.

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.