Skip to main content
Glama
DanielTomaro13

sportsdata-mcp

espnfantasy_league

Read-onlyIdempotent

Fetch ESPN fantasy league data with any combination of views in one call. Retrieve teams, rosters, settings, schedule, and more without an API key.

Instructions

Raw league read with ANY combination of views — the escape hatch when no dedicated tool below fits, or to fetch several views in one round trip.

Returns: {id, seasonId, scoringPeriodId, settings, status, teams:[…], members:[…]} plus whatever the requested views add (schedule, draftDetail, players, …)

Example: Teams + rosters + settings in one call {"game": "ffl", "seasonId": 2018, "leagueId": 1234, "view": ["mTeam", "mRoster", "mSettings"]}

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

Also answers this: sleeper_league.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
gameNoFantasy game code. One of: ffl, flb, fba, fhl, wfba.ffl
viewNoOne or more views, sent as repeated params. Verified: mTeam, mRoster, mMatchup, mMatchupScore, mSettings, mStandings, mBoxscore, mScoreboard, mSchedule, mDraftDetail, mTransactions2, mPendingTransactions, mPositionalRatings, mLiveScoring, mNav, mStatus, kona_player_info, kona_playercard, allon.
leagueIdYesYour league id — the `leagueId=` in the fantasy site URL. Required — part of the URL path.
seasonIdYesSeason year (>= 2018; use espnfantasy_league_history for older). Required — part of the URL path.
fantasy_filterNoFilter object; league-scoped views nest under an entity key, e.g. {"players":{"limit":50,"sortPercOwned":{"sortPriority":1,"sortAsc":false}}}.
scoringPeriodIdNoScoring period (NFL week / daily-sport day). Required by mBoxscore, mRoster-at-week, mTransactions2.
Behavior4/5

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

The annotations already declare readOnlyHint and idempotentHint, so the read-only nature is known. The description adds practical behavior: 'works without a key; ESPN_FANTASY_COOKIE unlocks more if set'. It also clarifies the return shape with a concrete object example, which the schema doesn't provide. No contradiction with annotations.

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?

The description is compact with clear sections: usage guidance, return payload, an example, auth note, and cross-reference. Every sentence earns its place, and the example is highly illustrative.

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 the tool's broad 'escape hatch' role and no output schema, the description provides a reasonable return skeleton plus examples. It doesn't enumerate all view effects, but the schema's view enum lists verified values. The cross-reference to sleeper_league is a small extra context. The only gaps are potential error behaviors or rate limits, but the annotation-informed safety profile covers most risk.

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 individually documented. The description adds a real-world example invocation and explains that scoringPeriodId is required by specific views (mBoxscore, mRoster-at-week, mTransactions2), which the schema description does not fully convey. This helps the agent assemble correct parameter combinations.

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 opens with 'Raw league read with ANY combination of views', which is a specific verb (read), resource (league), and scope (any views). It further distinguishes itself as 'the escape hatch when no dedicated tool below fits', clearly separating it from the extensive sibling tools like espnfantasy_teams or espnfantasy_settings.

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?

The description explicitly defines when to use this tool: 'when no dedicated tool below fits, or to fetch several views in one round trip'. This gives both a fallback scenario and a multi-view use case. It implies that when a dedicated tool exists, it should be used instead.

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