Skip to main content
Glama
dylancharris

ESPN Fantasy Basketball MCP Server

by dylancharris

get_trending_players

Find players trending up or down in fantasy basketball adds/drops to identify waiver wire opportunities.

Instructions

Get players trending up or down in adds/drops for waiver wire intelligence.

Args:
    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)
    direction: Trending direction - "up" or "down"
    limit: Number of players to return (default 20)
    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:
    List of trending player dictionaries with add/drop percentages and reasons

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
swidNo
yearNo
limitNo
espn_s2No
directionNoup
league_idNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/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 reveals that optional parameters fall back to environment variables, specifies defaults for year/direction/limit, and states the return structure (list of dicts with add/drop percentages). It does not discuss potential errors or rate limits, but for a read-only data-fetch tool this is adequate.

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 efficiently organized into a one-sentence summary, an Args list, and Returns section. No redundant text, and every line serves a purpose.

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 6-param tool with no required parameters and an output schema, the description covers all parameters, defaults, env var handling, authentication, and return type. It provides sufficient context for an agent to invoke the tool correctly.

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 description explains every parameter with human-readable meaning, including optionality, env var fallbacks, and defaults, whereas the schema only lists types. It also clarifies the 'direction' allowed values and the meaning of 'limit'.

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?

Description clearly states a specific action ('Get players trending up or down in adds/drops') and purpose ('waiver wire intelligence'). This differentiates it from sibling tools like get_free_agents or get_player_stats.

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

Usage Guidelines4/5

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

The phrase 'for waiver wire intelligence' conveys the intended use case but does not explicitly mention alternatives or when-not-to-use. It implies usage for tracking player add/drop momentum, which is reasonably clear.

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