Skip to main content
Glama
dylancharris

ESPN Fantasy Basketball MCP Server

by dylancharris

compare_players

Compare multiple NBA players across statistical categories to determine the winner in each category. Supports custom leagues, seasons, and category selection for fantasy basketball analysis.

Instructions

Compare multiple players across statistical categories.

Args:
    player_ids: List of ESPN player IDs to compare
    league_id: ESPN Fantasy Basketball league ID (optional, uses ESPN_LEAGUE_ID env var)
    year: Season year (e.g., 2025) (optional, uses ESPN_YEAR env var or defaults to 2025)
    categories: List of categories to compare (optional, defaults to 9-cat)
    espn_s2: ESPN authentication cookie for private leagues (optional, uses ESPN_S2 env var)
    swid: ESPN SWID cookie for private leagues (optional, uses ESPN_SWID env var)

Returns:
    Dictionary with detailed player comparison and winner by category

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
swidNo
yearNo
espn_s2No
league_idNo
categoriesNo
player_idsYes
Behavior4/5

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

With no annotations provided, the description discloses important behavioral details: it explains optional parameters, env var fallback (ESPN_LEAGUE_ID, ESPN_YEAR), defaults (9-cat), and authentication requirements for private leagues (espn_s2, swid). However, it does not explicitly state that this is a read-only operation or describe error handling, but the read nature is evident from the verb 'compare.' This provides meaningful context beyond 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 description is structured with an overall summary, Args list, and Returns mention. Each line adds value, but the list format makes it longer than necessary for a simple tool. Still, it is well-organized and not padded; a score of 4 reflects appropriate sizing with a slight efficiency loss from the docstring format.

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 that there is no output schema and no annotations, the description covers all six parameters, their defaults, and auth, and summarizes the return as a dictionary with winner by category. It does not detail edge cases like invalid player IDs or what 'winner' means, but it is sufficient for the tool's moderate complexity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema has zero parameter descriptions (0% coverage), so the description's Args section is the sole source of parameter semantics. It explains player_ids as ESPN IDs, league_id with env var fallback, year with default, categories with default, and auth cookies—far exceeding schema info.

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 begins with a clear, specific verb phrase 'Compare multiple players across statistical categories,' identifying the resource (players) and scope (statistical categories). This distinguishes it from sibling tools like get_player_stats that focus on single players or league-level queries, and from advisory tools like analyze_trade_proposal.

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

Usage Guidelines3/5

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

The description implies usage by stating 'Compare multiple players,' but it offers no explicit guidance on when to choose this over alternatives. There is no mention of exclusions, such as 'use get_player_stats for a single player's stats.' Usage context is inferred rather than stated, earning a 3.

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/dylancharris/espn-fantasy-basketball-mcp'

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