Skip to main content
Glama

Mlb Matchup

mlb_matchup
Read-onlyIdempotent

MLB BATTER-vs-PITCHER history from the official MLB Stats API, "how has Yordan Alvarez hit against Tanner Bibee", " career numbers vs ". Accepts batter and pitcher NAMES (resolved automatically) or numeric ids. Returns the batter's hitting line against that specific pitcher (at-bats, hits, HR, RBI, AVG, OPS, strikeouts), split by season with career totals.

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": {
      "batter": "Yordan Alvarez",
      "pitcher": "Tanner Bibee"
    },
    "name": "mlb_matchup"
  }
}

Input Schema

NameRequiredDescriptionDefault
batterYesBatter NAME (e.g. "Yordan Alvarez") or numeric MLB person id.
seasonNoOptional season year to limit to; omit for full career.
pitcherYesPitcher NAME (e.g. "Tanner Bibee") or numeric MLB person id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world behavior, so the safety profile is covered. The description adds useful context: automatic name resolution and the exact return contents (AB, H, HR, RBI, AVG, OPS, K, split by season with career totals). It does not discuss failure modes for ambiguous or unmatched names, which would be valuable for a name-resolution tool.

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 the core purpose and example queries, then the accepted input forms and return shape. It is dense but each clause carries information; the quoted example questions are slightly redundant with the schema examples but aid intent matching.

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?

With no output schema, the description compensates by enumerating the returned fields and the season/career split. Combined with the 100% schema coverage, an agent has enough to call it correctly; only edge-case behavior (ambiguous names, no-history results) is unaddressed.

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 all three parameters are already documented in the schema, including the season 'omit for full career' note. The description's only added semantic is that names are resolved automatically, which is marginal beyond the schema. Baseline 3 is appropriate.

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+resource (batter-vs-pitcher history from MLB Stats API) and anchors it with two concrete example questions. It is clearly distinguishable from siblings like mlb_player_stats or mlb_player_game_log, which cover broader player data rather than a specific batter-pitcher pairing.

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?

The example phrasings ('how has Yordan Alvarez hit against Tanner Bibee') make the intended use case clear, and it notes names are resolved automatically or ids accepted. It does not explicitly say when to prefer a sibling tool (e.g. for general stats), so it stops short of full when/when-not 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.