Skip to main content
Glama
DanielTomaro13

sportsdata-mcp

espnfantasy_league_history

Read-onlyIdempotent

Retrieve historical ESPN fantasy league seasons, including pre-2018 data. Returns an array for a single season or all seasons after checking league history availability.

Instructions

Pre-2018 seasons and cross-season history via the leagueHistory path. Only works for leagues that HAVE history — check espnfantasy_status.status.previousSeasons first; an empty list there means this returns 404. Returns a single-element ARRAY, not an object.

Returns: [{id, seasonId, settings, teams, status, …}] — ARRAY wrapper; index [0] for a single seasonId. 404 when the league has no leagueHistory record (verified: public league 1234 reports status.previousSeasons == [] and 404s here) — fall back to the seasons path.

Example: A 2017 season for a long-running league {"game": "ffl", "leagueId": 1234, "seasonId": 2017}

Auth: works without a key; ESPN_FANTASY_COOKIE unlocks more if set.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
gameNoFantasy game code. One of: ffl, flb, fba, fhl, wfba.ffl
viewNoSame view vocabulary as the seasons path.
leagueIdYesLeague id. Required — part of the URL path.
seasonIdNoSeason year to read. Omit to get every season the league has history for.
Behavior5/5

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

The description discloses important behavior beyond annotations: it returns a single-element ARRAY (not an object), 404s when the league lacks history, and provides a verified example of that failure. It also mentions auth requirements and that a cookie unlocks more data. None of this contradicts annotations (readOnlyHint, openWorldHint, idempotentHint) — it complements them.

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 description is well-structured with clear sections (purpose, prerequisites, return format, example, auth) and front-loads the core purpose. It's slightly verbose with the 'verified: public league 1234...' detail, but every part earns its place given the complexity of the tool's behavior.

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?

For a tool with no output schema, the description thoroughly explains the return structure ('Returns: [{id, seasonId, settings, teams, status, …}] — ARRAY wrapper'), error behavior (404 and fallback), how to verify availability, and authentication. It leaves no ambiguity about how to use the tool correctly.

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%, so parameters are already documented. The description adds meaningful semantics: explains that omitting seasonId returns every season with history, describes the view as 'same vocabulary as the seasons path,' and provides a concrete example request. This goes beyond the schema's basic descriptions.

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?

The description clearly states that the tool retrieves pre-2018 seasons and cross-season history via the leagueHistory path. It uses a specific verb (returns history) and resource (leagueHistory path), and distinguishes itself from sibling tools like espnfantasy_league and espnfantasy_status by focusing on historical data and returning an array.

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

Usage Guidelines5/5

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

Explicit when-to-use guidance is provided: 'Only works for leagues that HAVE history — check espnfantasy_status.status.previousSeasons first; an empty list there means this returns 404.' It also names an alternative ('fall back to the seasons path') and explains the condition for using that alternative. This is excellent usage differentiation.

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/DanielTomaro13/sportsdata-mcp'

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