Skip to main content
Glama
ESPN Fantasy Football MCP Server

ESPN Fantasy Football MCP Server

by KBThree13

get_team_roster

Retrieve a team's current or historical roster from an ESPN fantasy football league by specifying league ID, team ID, and optional season year.

Instructions

Get a team's current roster.

    Args:
        league_id: The ESPN fantasy football league ID
        team_id: The team ID in the league (usually 1-12)
        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>",
      "team_id": "<team_id>"
    },
    "name": "get_team_roster"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearNo
team_idYes
league_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior2/5

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

With no annotations supplied, the description carries the full burden: it does not say whether this is a read-only call, whether an authenticated session is required (an authenticate sibling exists), or what the roster contains (starters vs bench vs IR). It also calls the result "current" while offering a year override for historical data, leaving the actual temporal behavior ambiguous.

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 one-line purpose is front-loaded, and the Args list is compact with each entry adding information. The docstring formatting is slightly verbose but no sentence is redundant.

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 simple three-parameter read with no annotations and no output schema, the definition covers parameters adequately but omits auth expectations, roster composition, and return shape. It is minimally sufficient to call correctly but leaves the agent guessing about preconditions and output.

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 description coverage is 0%, so the description must compensate, and it largely does: league_id is identified as the ESPN league ID, team_id as the in-league team number (usually 1-12), and year as an optional historical override defaulting to the current season. It does not clarify the expected year format or range or how an invalid year behaves, but that is a minor residual gap.

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?

States a concrete verb and resource (get a team's roster) and implies the ESPN fantasy football domain. It does not distinguish itself from siblings like get_team_info or get_league_standings, so an agent must infer the boundary itself. The word "current" also sits awkwardly against the year parameter for historical data.

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 statement of when to use this tool versus get_team_info, get_matchup_info, or get_player_stats, and no mention of prerequisites such as authentication. The Args block explains parameter meaning but not selection conditions.

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