Skip to main content
Glama
DanielTomaro13

sportsdata-mcp

yahoo_my_leagues

Read-onlyIdempotent

Fetch the authenticated user's Yahoo Fantasy leagues for specified game keys, providing the league_key needed for subsequent league-specific operations.

Instructions

The authenticated user's leagues for one or more games — where you get league_key.

Returns: {fantasy_content:{users:{'0':{user:[{guid}, {games:{'0':{game:[{game_key}, {leagues:{'0':{league:[{league_key:'449.l.12345', league_id, name, num_teams, scoring_type, current_week, start_week, end_week, is_finished}]}, count}}]}}}}]}}} — SHAPE FROM VENDOR DOCS. league_key is what every league tool below needs.

NOTE: this shape is from the vendor's documentation and has NOT been verified against a live response (we hold no key for this provider). Treat it as approximate — inspect the actual payload before relying on a field name.

Example: NFL leagues {"gameKeys": "nfl"}

Auth: needs your own key in YAHOO_CLIENT_ID or YAHOO_CLIENT_SECRET or YAHOO_REFRESH_TOKEN.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
formatNoLeave as json.json
gameKeysYesComma-separated game keys, e.g. 'nfl' or 'nfl,nba'. Bare codes mean the CURRENT season. Required — part of the URL path.
Behavior4/5

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

The readOnlyHint, openWorldHint, and idempotentHint annotations already indicate this is a safe, non-mutating lookup. The description meaningfully adds that it requires Yahoo authentication, that the response shape is from vendor documentation and is unverified, and that the payload shape should be inspected before relying on field names. This is strong added behavioral context for an agent.

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 fairly long, but the length is justified because there is no output schema and the nested return shape is needed. It is front-loaded with the core purpose, followed by structured sections: return shape, caveat, example, and auth. The vendor-documentation caveat is especially valuable and earns its place.

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?

Given there is no output schema, the description supplies a detailed, caveated return-shape blueprint and an example call. It also covers authentication, the approximate nature of the payload, and the downstream use of league_key. This gives an agent enough context to call the tool, understand the response, and recognize when further verification is needed.

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

Parameters3/5

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

The input schema already covers both parameters at 100% and explains gameKeys formatting, requiredness, and that bare codes mean the current season. The description adds a small example and clarifies the output is scoped to the authenticated user's leagues, but it does not materially enrich parameter semantics beyond the schema.

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?

The description clearly identifies this as the endpoint for an authenticated user's leagues across one or more games, and emphasizes that it is the source of league_key. It distinguishes the tool by positioning league_key as the prerequisite for downstream league tools, which helps separate it from sibling tools like yahoo_my_games or yahoo_my_teams. A slight deduction because the opening is a noun phrase rather than an explicit verb ('retrieves', 'lists'), though the intent is unambiguous.

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 states that league_key is what every league tool below needs, giving a clear workflow signal: call this first to obtain league keys. It also explains that gameKeys drives which games are included and provides a concrete NFL example. It does not explicitly discuss when to avoid this tool or name alternatives, but the downstream-hint is useful context.

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/DanielTomaro13/sportsdata-mcp'

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