Skip to main content
Glama
dylancharris

ESPN Fantasy Basketball MCP Server

by dylancharris

analyze_trade_proposal

Assess a fantasy basketball trade proposal in ESPN leagues to get a data-driven recommendation and category impact breakdown.

Instructions

Analyze a trade proposal using comprehensive statistical analysis.

Args:
    your_player_ids: List of player IDs you would trade away
    their_player_ids: List of player IDs you would receive
    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)
    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 trade analysis, recommendation, and category impact

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
swidNo
yearNo
espn_s2No
league_idNo
your_player_idsYes
their_player_idsYes
Behavior3/5

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

No annotations are provided, so the description carries the burden. It mentions that espn_s2 and swid are for private leagues and describes the return value, but does not explicitly state that the operation is read-only, nor does it mention behavior on errors, invalid IDs, or authentication failures. The description adds some context but lacks explicit behavioral disclosure.

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 well-structured with a one-sentence summary followed by Args and Returns sections. It is concise, with no fluff, and each parameter is listed on its own line with clear semantics. Front-loaded with the main purpose.

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?

For a tool with 6 parameters, no output schema, and no annotations, the description covers parameter semantics and high-level return value (dictionary with trade analysis, recommendation, and category impact). It could provide more detail on the returned structure or possible failure modes, but it is sufficiently complete for the 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?

Schema description coverage is 0%, but the description compensates fully by explaining each parameter: your_player_ids (players you trade away), their_player_ids (players you receive), league_id (optional with env var), year (optional with env var and default), and authentication cookies. It also clarifies the purpose of each parameter beyond type information, which is essential for correct use.

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 a specific action ('Analyze a trade proposal') and resource (trade proposal). It distinguishes from sibling tools: none of the siblings specifically analyze trade proposals, making the purpose unambiguous.

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 when to use the tool (when analyzing a trade proposal) but does not explicitly contrast it with alternative tools or state exclusions. No mention of scenarios where another tool would be more appropriate.

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