Skip to main content
Glama
yooitsgreg

sleeper-mcp

by yooitsgreg

Get User's Leagues

sleeper_get_user_leagues
Read-onlyIdempotent

Retrieve all fantasy leagues a user participates in for a specific sport and season, including league details like name, ID, status, roster count, and scoring type.

Instructions

Get all fantasy leagues a user is in for a given sport and season.

Args:

  • user_id (string): The Sleeper user ID (use sleeper_get_user to look up by username)

  • sport (string): Sport to filter by (default: "nfl")

  • season (string): Season year (e.g. "2024", "2025")

Returns: List of leagues including league name, ID, status, roster count, and scoring type.

Examples:

  • "What leagues is user 123456 in for the 2024 season?"

  • "Show all NFL leagues for user ID 987654321"

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sportNoSport (default: nfl)nfl
seasonYesSeason year, e.g. '2024'
user_idYesSleeper user ID
Behavior4/5

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

Annotations indicate readOnlyHint, idempotentHint, and destructiveHint false. The description adds value by specifying the return format (list of leagues with fields) beyond what annotations provide. No contradictions.

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 summary, Args, Returns, and Examples sections. Every sentence is informative, and the format is easy to parse.

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 simple query tool with three parameters, the description covers all necessary aspects: purpose, parameter details, return structure, and usage examples. No output schema needed as return is explained.

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 100%, meeting baseline. The description adds meaningful context: for user_id, suggests using sleeper_get_user; for sport, states default 'nfl'; for season, provides example years. This enhances agent understanding.

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 'Get all fantasy leagues a user is in for a given sport and season,' specifying the verb, resource, and scope. It lists parameters and return fields, distinguishing it from siblings like sleeper_get_league.

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 description provides clear context for when to use the tool, including a hint to use sleeper_get_user for user ID lookup. It does not explicitly state when not to use, but examples and parameter details make the usage 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/yooitsgreg/sleeper-mcp'

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