Skip to main content
Glama
ESPN Fantasy Football MCP Server

ESPN Fantasy Football MCP Server

by KBThree13

get_player_stats

Retrieve fantasy football player statistics by league ID and player name, with an optional year for historical data.

Instructions

Get stats for a specific player.

    Args:
        league_id: The ESPN fantasy football league ID
        player_name: Name of the player to search for
        year: Optional year for historical data (defaults to current season)
    

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "league_id": "<league_id>",
      "player_name": "<player_name>"
    },
    "name": "get_player_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearNo
league_idYes
player_nameYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden and discloses almost nothing: it does not say what statistics are returned, whether results are scoped to the given league or season, whether the call is read-only (implied but unstated), or how failures like an unknown player are surfaced. The single behavioral fact given is that year defaults to the current season, which is thin for a data-retrieval tool with no output schema.

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?

The purpose sentence is front-loaded and the parameter notes are short and scannable, with no filler prose. The docstring-style 'Args:' block is slightly mechanical but each line carries information, so little space is wasted.

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

Completeness3/5

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

For a three-parameter read tool with no output schema and no annotations, the definition covers the parameters but leaves the return payload and failure behavior entirely unspecified. An agent could invoke it correctly but could not predict what it gets back or how to handle a missing player.

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 description coverage is 0%, so the description must compensate, and it does document all three parameters: league_id is identified as an ESPN fantasy football league ID (a genuine domain hint), player_name as a search term (implying non-exact matching), and year as optional historical data with a current-season default. It stops short of useful specifics such as acceptable year range, whether player_name supports partial matches, or whether league scoping affects the stats returned.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource: 'Get stats for a specific player.' Combined with the parameter list naming an ESPN fantasy football league and player name, an agent can tell this returns player-level statistics rather than league or team data. It does not explicitly name a sibling to differentiate from, but the sibling resources (league info, standings, team roster) are clearly different nouns, so confusion risk is low.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance: nothing says when to pick this over get_team_roster or get_league_standings, no prerequisites such as needing a valid league_id obtained from get_league_info, and no note on what to do when the player isn't found. The only hint is that player_name is used to 'search for' a player, which implies a lookup, but that is inferred rather than stated.

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