Skip to main content
Glama
dingyiyi0226

Yahoo Fantasy Baseball MCP Server

by dingyiyi0226

Analyze advanced player stats

analyze_player_stats
Read-only

Aggregate advanced stats from MLB Stats API, Baseball Savant, and FanGraphs for any player, including league scoring categories to inform add/drop decisions.

Instructions

Fetch and aggregate advanced statistics for a single player from multiple authoritative sources: MLB Stats API (standard stats), Baseball Savant (Statcast exit velocity / barrel rate / expected stats), and FanGraphs (WAR, wRC+, K%, BB%, plate discipline). The response includes the league's scoring categories so advice can focus on stats that actually count. Use this before making roster add/drop decisions.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
seasonNoSeason year, e.g. 2025. Defaults to the current season.
playerNameYesPlayer's full name, e.g. 'Shohei Ohtani' or 'Freddie Freeman'
Behavior4/5

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

Annotations already indicate readOnlyHint=true. Description adds valuable behavioral context: fetches from multiple sources and includes league scoring categories. No contradiction, and it discloses the nature of the aggregated output.

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

Conciseness5/5

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

Three sentences, each purposeful: first states action and sources, second describes output, third gives usage context. No unnecessary words, front-loaded with key information.

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?

Given no output schema, description adequately explains that the response includes league scoring categories and stats from specified sources. Provides sufficient context for a read-only analysis tool, though could hint at return format.

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 parameters are well documented. Description does not add additional meaning beyond what the schema already provides (playerName and season descriptions are identical). Baseline score of 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?

Clearly states it fetches and aggregates advanced stats for a single player from multiple authoritative sources (MLB Stats API, Baseball Savant, FanGraphs). Distinguishes from sibling 'get_player_stats' by specifying advanced stats and including league scoring categories.

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?

Explicitly recommends using this 'before making roster add/drop decisions', giving clear context. Does not explicitly mention when not to use or name alternatives, but the purpose is well-scoped.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

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/dingyiyi0226/fantasy-baseball-mcp'

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