Flaim Fantasy
Qué hace este MCP
Reads connected ESPN, Yahoo, and Sleeper fantasy leagues for standings, rosters, matchups, drafts, players, free agents, and transactions.
Herramientas
Esquema de entrada
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'properties': {'platform': {'enum': ['espn', 'yahoo', 'sleeper'], 'type': 'string', 'description': 'Optional: filter to specific platform'}}, 'additionalProperties': False}
Esquema de salida
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['success', 'thresholdYear', 'oldLeagues', 'oldSeasonsFromActiveLeagues', 'totalOldLeagues', 'totalOldSeasons'], 'properties': {'success': {'type': 'boolean'}, 'warnings': {'type': 'array', 'items': {'type': 'string'}}, 'oldLeagues': {'type': 'array', 'items': {'type': 'object', 'required': ['leagueId', 'platform'], 'properties': {'sport': {'type': ['string', 'null']}, 'teamId': {'type': 'string'}, 'leagueId': {'type': 'string'}, 'platform': {'type': 'string'}, 'teamName': {'type': ['string', 'null']}, 'leagueName': {'type': ['string', 'null']}, 'seasonYear': {'type': ['number', 'null']}, 'recurringLeagueId': {'type': 'string'}}, 'additionalProperties': True}}, 'thresholdYear': {'type': 'number'}, 'totalOldLeagues': {'type': 'number'}, 'totalOldSeasons': {'type': 'number'}, 'oldSeasonsFromActiveLeagues': {'type': 'object', 'additionalProperties': {'type': 'array', 'items': {'$ref': '#/properties/oldLeagues/items'}}}}, 'additionalProperties': True}
Esquema de entrada
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['platform', 'sport', 'league_id'], 'properties': {'round': {'type': 'integer', 'description': 'Optional positive draft round. Returns only completed selections and ownership rows from this round.', 'exclusiveMinimum': 0}, 'sport': {'enum': ['football', 'baseball', 'basketball', 'hockey'], 'type': 'string', 'description': 'Sport type (e.g., "football", "baseball")'}, 'team_id': {'type': 'string', 'minLength': 1, 'description': 'Optional provider team ID. Filters completed selections by historical selecting team and ownership rows by current owner.'}, 'draft_id': {'type': 'string', 'minLength': 1, 'description': "Optional Sleeper draft ID. Omit to retrieve the league's associated draft; pass only an ID previously returned by Flaim."}, 'platform': {'enum': ['espn', 'yahoo', 'sleeper'], 'type': 'string', 'description': 'Fantasy platform (e.g., "espn", "yahoo", "sleeper")'}, 'league_id': {'type': 'string', 'description': 'League ID (get from get_user_session)'}, 'season_year': {'type': 'integer', 'description': 'Season start year. Omit for the current sport season; use the season_year returned by get_user_session for this league or a past draft. Basketball and hockey use the start year of a cross-year season (2024 = the 2024-25 season); football and baseball use the single season year (2025 = the 2025 season).'}}, 'additionalProperties': False}
Esquema de salida
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['success', 'data'], 'properties': {'data': {'type': 'object', 'required': ['platform', 'sport', 'leagueId', 'seasonYear', 'draft', 'picks'], 'properties': {'draft': {'type': 'object', 'required': ['type', 'status'], 'properties': {'id': {'type': ['string', 'number']}, 'type': {'enum': ['snake', 'linear', 'auction', 'offline', 'unknown'], 'type': 'string'}, 'teams': {'type': 'integer', 'exclusiveMinimum': 0}, 'rounds': {'type': 'integer', 'exclusiveMinimum': 0}, 'status': {'enum': ['pre_draft', 'in_progress', 'complete', 'unavailable', 'unknown'], 'type': 'string'}, 'playerPool': {'type': 'object', 'properties': {}, 'additionalProperties': True}}, 'additionalProperties': True}, 'picks': {'type': 'array', 'items': {'type': 'object', 'required': ['round', 'placement'], 'properties': {'cost': {'type': 'object', 'required': ['amount', 'unit'], 'properties': {'unit': {'type': 'string'}, 'amount': {'type': 'number', 'minimum': 0}}, 'additionalProperties': True}, 'round': {'type': 'integer', 'exclusiveMinimum': 0}, 'isKeeper': {'type': 'boolean'}, 'playerId': {'type': ['string', 'number']}, 'placement': {'type': 'object', 'required': ['status', 'source'], 'properties': {'source': {'enum': ['provider_pick', 'provider_order_derived', 'no_provider_order'], 'type': 'string'}, 'status': {'enum': ['confirmed', 'projected', 'unavailable'], 'type': 'string'}}, 'additionalProperties': True}, 'playerName': {'type': 'string'}, 'draftColumn': {'type': 'integer', 'exclusiveMinimum': 0}, 'overallPick': {'type': 'integer', 'exclusiveMinimum': 0}, 'playerProTeam': {'type': ['string', 'null']}, 'originalTeamId': {'type': ['string', 'number']}, 'playerPosition': {'type': 'string'}, 'selectionTeamId': {'type': ['string', 'number']}, 'selectionInRound': {'type': 'integer', 'exclusiveMinimum': 0}}, 'additionalProperties': True}}, 'sport': {'type': 'string'}, 'teams': {'type': 'object', 'description': 'Team names keyed by provider team ID', 'additionalProperties': {'type': 'string'}}, 'leagueId': {'type': ['string', 'number']}, 'platform': {'type': 'string'}, 'ownership': {'type': 'object', 'required': ['scope', 'picks'], 'properties': {'picks': {'type': 'array', 'items': {'type': 'object', 'required': ['seasonYear', 'round', 'originalTeamId', 'currentOwnerTeamId', 'placement'], 'properties': {'round': {'type': 'integer', 'exclusiveMinimum': 0}, 'placement': {'$ref': '#/properties/data/properties/picks/items/properties/placement'}, 'seasonYear': {'type': 'number'}, 'draftColumn': {'type': 'integer', 'exclusiveMinimum': 0}, 'overallPick': {'type': 'integer', 'exclusiveMinimum': 0}, 'originalTeamId': {'type': ['string', 'number']}, 'selectionInRound': {'type': 'integer', 'exclusiveMinimum': 0}, 'currentOwnerTeamId': {'type': ['string', 'number']}}, 'additionalProperties': True}}, 'scope': {'enum': ['complete', 'changed_picks_only', 'unavailable'], 'type': 'string'}}, 'additionalProperties': True}, 'seasonYear': {'type': 'number'}, 'teamOwners': {'type': 'object', 'description': 'Owner names keyed by provider team ID', 'additionalProperties': {'type': 'string'}}}, 'description': 'Platform envelope. Field availability varies by platform (ESPN, Yahoo, Sleeper); absent fields are not provided by that platform.', 'additionalProperties': True}, 'success': {'type': 'boolean'}}, 'additionalProperties': True}
Esquema de entrada
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['platform', 'sport', 'league_id', 'season_year'], 'properties': {'count': {'type': 'number', 'description': 'Maximum number of players to return (max: 100). Pass the user-requested number exactly; omit only when no number was requested (default: 25).'}, 'sport': {'enum': ['football', 'baseball', 'basketball', 'hockey'], 'type': 'string', 'description': 'Sport type (e.g., "football", "baseball")'}, 'platform': {'enum': ['espn', 'yahoo', 'sleeper'], 'type': 'string', 'description': 'Fantasy platform â\x80\x94 "espn", "yahoo", or "sleeper"'}, 'position': {'type': 'string', 'description': 'Filter by position (e.g., "QB", "RB", "SP", "C"). Default: ALL'}, 'league_id': {'type': 'string', 'description': 'League ID (get from get_user_session)'}, 'season_year': {'type': 'number', 'description': 'Season start year â\x80\x94 use the season_year returned by get_user_session for this league; only pass an older year when the user explicitly asks about a past season. Basketball and hockey use the start year of a cross-year season (2024 = the 2024-25 season); football and baseball use the single season year (2025 = the 2025 season).'}}, 'additionalProperties': False}
Esquema de salida
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['success', 'data'], 'properties': {'data': {'type': 'object', 'required': ['leagueId', 'seasonYear', 'position', 'count', 'ordering', 'capabilities', 'ownershipScope'], 'properties': {'count': {'type': 'number'}, 'sport': {'type': 'string'}, 'players': {'type': 'array', 'items': {'$ref': '#/properties/data/properties/freeAgents/items'}, 'description': 'Sleeper available-player entries'}, 'warning': {'type': 'string'}, 'leagueId': {'type': 'string', 'description': 'Canonical league identity for every platform'}, 'ordering': {'enum': ['platform_rostered_rate_desc', 'alphabetical', 'platform_trending_then_rank'], 'type': 'string', 'description': 'List ranking: "platform_rostered_rate_desc" (ESPN provider-side with draft-rank tiebreak; Yahoo locally, nulls last, name/id tiebreak), "platform_trending_then_rank" (Sleeper: players most added across Sleeper in the last 24 hours first, then Sleeper\'s search rank, name/id tiebreak), or "alphabetical" (retained for compatibility; not currently emitted)'}, 'platform': {'type': 'string'}, 'position': {'type': 'string', 'description': 'Echoed position filter, ALL when unfiltered'}, 'leagueKey': {'type': 'string'}, 'league_id': {'type': 'string'}, 'freeAgents': {'type': 'array', 'items': {'type': 'object', 'properties': {'id': {'type': 'string', 'description': 'Platform-local player id as a string'}, 'team': {'type': ['string', 'null'], 'description': 'Real-life club abbreviation, null when the platform lists none'}, 'status': {'type': ['string', 'null'], 'description': 'Legacy: ESPN acquisition enum (prefer acquisitionState); on Yahoo an unrelated player designation'}, 'percentOwned': {'type': ['number', 'null'], 'description': 'ESPN-wide roster rate or Yahoo-wide market rate; null/absent when the provider reports none'}, 'percentStarted': {'type': ['number', 'null']}, 'waiverClearsAt': {'type': 'string', 'description': 'ISO 8601 waiver clear time (ESPN only, only on rows whose acquisitionState is "waivers" with a valid provider timestamp)'}, 'acquisitionState': {'anyOf': [{'enum': ['free_agent', 'waivers'], 'type': 'string'}, {'type': 'null'}], 'description': 'Canonical acquisition state, present only where capabilities.acquisitionState is true (ESPN): "free_agent", "waivers", or null when the platform could not determine the subtype; absent entirely on platforms without the capability'}, 'waiverProcessDate': {'anyOf': [{'type': ['string', 'number']}, {'type': 'null'}], 'description': 'Legacy epoch-ms form of waiverClearsAt'}}, 'additionalProperties': True}, 'description': 'ESPN/Yahoo available-player entries'}, 'leagueName': {'type': 'string'}, 'seasonYear': {'type': 'number'}, 'season_year': {'type': 'number'}, 'capabilities': {'type': 'object', 'required': ['acquisitionState', 'rosteredRate', 'startedRate'], 'properties': {'startedRate': {'type': 'boolean'}, 'rosteredRate': {'type': 'boolean'}, 'acquisitionState': {'type': 'boolean'}}, 'description': 'Platform capability flags; per-entry canonical fields are omitted where false', 'additionalProperties': True}, 'ownershipScope': {'enum': ['platform_global', 'unavailable'], 'type': 'string', 'description': '"platform_global": rates cover all leagues on the platform, never the selected league; "unavailable": the platform reports no rates'}}, 'description': 'Platform envelope. Field availability varies by platform (ESPN, Yahoo, Sleeper); absent fields are not provided by that platform.', 'additionalProperties': True}, 'success': {'type': 'boolean'}}, 'additionalProperties': True}
Esquema de entrada
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['platform', 'sport', 'league_id', 'season_year'], 'properties': {'sport': {'enum': ['football', 'baseball', 'basketball', 'hockey'], 'type': 'string', 'description': 'Sport type (e.g., "football", "baseball")'}, 'platform': {'enum': ['espn', 'yahoo', 'sleeper'], 'type': 'string', 'description': 'Fantasy platform (e.g., "espn", "yahoo", "sleeper")'}, 'league_id': {'type': 'string', 'description': 'League ID (get from get_user_session)'}, 'season_year': {'type': 'number', 'description': 'Season start year â\x80\x94 use the season_year returned by get_user_session for this league; only pass an older year when the user explicitly asks about a past season. Basketball and hockey use the start year of a cross-year season (2024 = the 2024-25 season); football and baseball use the single season year (2025 = the 2025 season).'}}, 'additionalProperties': False}
Esquema de salida
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['success', 'data'], 'properties': {'data': {'type': 'object', 'properties': {'id': {'type': ['string', 'number']}, 'url': {'type': 'string'}, 'name': {'type': 'string'}, 'size': {'type': 'number'}, 'sport': {'type': 'string'}, 'teams': {'type': 'array', 'items': {'type': 'object', 'properties': {'ownerName': {'type': ['string', 'null']}}, 'additionalProperties': True}, 'description': 'Team/owner context; exact team fields vary by platform but all include ownerName'}, 'roster': {'type': 'object', 'properties': {}, 'additionalProperties': True}, 'season': {'type': ['string', 'number']}, 'status': {}, 'draftId': {'type': ['string', 'null']}, 'endWeek': {'type': ['number', 'string']}, 'leagueId': {'type': ['string', 'number']}, 'numTeams': {'type': ['number', 'string']}, 'schedule': {'type': 'object', 'properties': {}, 'additionalProperties': True}, 'seasonId': {'type': 'number'}, 'leagueKey': {'type': 'string'}, 'segmentId': {'type': 'number'}, 'startWeek': {'type': ['number', 'string']}, 'isFinished': {'type': 'boolean'}, 'currentWeek': {'type': ['number', 'string']}, 'draftStatus': {'type': 'string'}, 'scoringType': {'type': 'string'}, 'totalRosters': {'type': 'number'}, 'rosterPositions': {'type': 'array', 'items': {}}, 'scoringPeriodId': {'type': 'number'}, 'scoringSettings': {'type': 'object', 'properties': {}, 'additionalProperties': True}, 'previousLeagueId': {'type': ['string', 'null']}, 'currentMatchupPeriod': {'type': 'number'}}, 'description': 'Platform envelope. Field availability varies by platform (ESPN, Yahoo, Sleeper); absent fields are not provided by that platform.', 'additionalProperties': True}, 'success': {'type': 'boolean'}}, 'additionalProperties': True}
Esquema de entrada
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['platform', 'sport', 'league_id', 'season_year'], 'properties': {'week': {'type': 'integer', 'minimum': 1, 'description': 'Week number (optional, must be â\x89¥ 1, defaults to current week)'}, 'sport': {'enum': ['football', 'baseball', 'basketball', 'hockey'], 'type': 'string', 'description': 'Sport type (e.g., "football", "baseball")'}, 'detail': {'type': 'string', 'const': 'players', 'description': 'Opt-in compact player detail for one selected ESPN football matchup, season_year 2018 or later only; requires week and team_id.'}, 'team_id': {'type': 'string', 'description': 'Required with detail: "players" to select one matchup; do not provide for summary mode.'}, 'platform': {'enum': ['espn', 'yahoo', 'sleeper'], 'type': 'string', 'description': 'Fantasy platform (e.g., "espn", "yahoo", "sleeper")'}, 'league_id': {'type': 'string', 'description': 'League ID (get from get_user_session)'}, 'season_year': {'type': 'number', 'description': 'Season start year â\x80\x94 use the season_year returned by get_user_session for this league; only pass an older year when the user explicitly asks about a past season. Basketball and hockey use the start year of a cross-year season (2024 = the 2024-25 season); football and baseball use the single season year (2025 = the 2025 season).'}}, 'additionalProperties': False}
Esquema de salida
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['success', 'data'], 'properties': {'data': {'type': 'object', 'properties': {'week': {'type': 'number'}, 'leagueId': {'type': 'string'}, 'matchups': {'type': 'array', 'items': {'type': 'object', 'properties': {'away': {'anyOf': [{'$ref': '#/properties/data/properties/matchups/items/properties/home/anyOf/0'}, {'type': 'null'}]}, 'home': {'anyOf': [{'type': 'object', 'properties': {'players': {'type': 'array', 'items': {'type': 'object', 'required': ['playerId', 'name', 'lineupSlot', 'started', 'points'], 'properties': {'name': {'type': ['string', 'null']}, 'points': {'type': ['number', 'null']}, 'started': {'type': ['boolean', 'null']}, 'playerId': {'type': 'string'}, 'lineupSlot': {'type': 'string'}}, 'additionalProperties': True}}}, 'additionalProperties': True}, {'type': 'null'}]}, 'matchupId': {'type': ['number', 'null'], 'description': 'Provider matchup grouping id, or null when Sleeper did not publish a usable id'}}, 'additionalProperties': True}}, 'leagueKey': {'type': 'string'}, 'leagueName': {'type': 'string'}, 'seasonYear': {'type': 'number'}, 'currentWeek': {'type': ['number', 'string']}, 'matchupWeek': {'type': ['number', 'string']}, 'matchupPeriod': {'type': ['number', 'null']}, 'scheduleShape': {'type': 'object', 'required': ['status', 'h2hPairingsReturned', 'unpairedRosterCount'], 'properties': {'reason': {'type': 'string', 'const': 'unknown'}, 'status': {'enum': ['paired', 'partially_paired', 'no_h2h_pairings', 'unpublished_or_unavailable'], 'type': 'string'}, 'h2hPairingsReturned': {'type': 'boolean'}, 'unpairedRosterCount': {'type': 'number'}}, 'description': 'Sleeper schedule-shape evidence. A singleton is not labelled a bye because the provider did not establish why it was unpaired.', 'additionalProperties': True}, 'currentScoringPeriod': {'type': 'number'}}, 'description': 'Platform envelope. Field availability varies by platform (ESPN, Yahoo, Sleeper); absent fields are not provided by that platform.', 'additionalProperties': True}, 'success': {'type': 'boolean'}}, 'additionalProperties': True}
Esquema de entrada
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['query', 'platform', 'sport', 'league_id', 'season_year'], 'properties': {'count': {'type': 'number', 'description': 'Maximum number of players to return (default: 10, max: 25)'}, 'query': {'type': 'string', 'minLength': 2, 'description': 'Player name search string (minimum 2 characters)'}, 'sport': {'enum': ['football', 'baseball', 'basketball', 'hockey'], 'type': 'string', 'description': 'Sport type (e.g., "football", "baseball")'}, 'platform': {'enum': ['espn', 'yahoo', 'sleeper'], 'type': 'string', 'description': 'Fantasy platform (e.g., "espn", "yahoo", "sleeper")'}, 'position': {'type': 'string', 'description': 'Filter by position (e.g., "QB", "RB", "SP", "C"). Default: ALL'}, 'league_id': {'type': 'string', 'description': 'League ID (get from get_user_session)'}, 'season_year': {'type': 'number', 'description': 'Season start year â\x80\x94 use the season_year returned by get_user_session for this league; only pass an older year when the user explicitly asks about a past season. Basketball and hockey use the start year of a cross-year season (2024 = the 2024-25 season); football and baseball use the single season year (2025 = the 2025 season).'}}, 'additionalProperties': False}
Esquema de salida
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['success', 'data'], 'properties': {'data': {'type': 'object', 'properties': {'count': {'type': 'number'}, 'query': {'type': 'string'}, 'sport': {'type': 'string'}, 'players': {'type': 'array', 'items': {'type': 'object', 'properties': {'id': {'type': 'string'}, 'name': {'type': 'string'}, 'team': {'type': ['string', 'null']}, 'position': {'type': ['string', 'null']}, 'seasonPoints': {'type': ['number', 'null'], 'description': 'ESPN football only: ESPN-computed actual-season points under the selected league scoring; null when league scoring was unavailable, ESPN did not return an applied value, or an unrostered result was outside its bounded availability pool'}, 'league_status': {'type': ['string', 'null'], 'description': 'ROSTERED, FREE_AGENT, or null when ownership could not be resolved, for example because credentials or rosters were unavailable, the player result carried no usable id, or Sleeper rostering was ambiguous'}, 'pointsPerGame': {'type': ['number', 'null'], 'description': 'ESPN football only: ESPN-computed actual-season points per game under the selected league scoring; null under the same conditions as seasonPoints'}, 'league_team_id': {'type': ['string', 'null'], 'description': 'Sleeper only: the roster id owning the player; null when no single owner was resolved, which includes both a free agent and ownership that could not be resolved uniquely. league_status is the confirmation: FREE_AGENT means unrostered, null means unresolved'}, 'ownership_scope': {'type': 'string'}, 'league_team_name': {'type': ['string', 'null']}, 'league_owner_name': {'type': ['string', 'null']}, 'market_percent_owned': {'type': ['number', 'null']}}, 'additionalProperties': True}}, 'platform': {'type': 'string'}, 'leagueKey': {'type': 'string'}, 'leagueName': {'type': 'string'}}, 'description': 'Platform envelope. Field availability varies by platform (ESPN, Yahoo, Sleeper); absent fields are not provided by that platform.', 'additionalProperties': True}, 'success': {'type': 'boolean'}}, 'additionalProperties': True}
Esquema de entrada
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['platform', 'sport', 'league_id', 'season_year'], 'properties': {'week': {'type': 'number', 'description': 'Historical weekly roster snapshot (positive integer). Football on all platforms, plus Sleeper basketball (matchup week). Not valid for ESPN/Yahoo daily sports â\x80\x94 use as_of_date there. Omit for the current roster; pass at most one of week or as_of_date.'}, 'sport': {'enum': ['football', 'baseball', 'basketball', 'hockey'], 'type': 'string', 'description': 'Sport type (e.g., "football", "baseball")'}, 'team_id': {'type': 'string', 'description': "Team ID for the target roster. Recommended for all platforms; required on Yahoo and for historical Sleeper rosters. If omitted, platform behavior varies and may not resolve to the user's team."}, 'platform': {'enum': ['espn', 'yahoo', 'sleeper'], 'type': 'string', 'description': 'Fantasy platform (e.g., "espn", "yahoo", "sleeper")'}, 'league_id': {'type': 'string', 'description': 'League ID (get from get_user_session)'}, 'as_of_date': {'type': 'string', 'description': 'Historical calendar-day roster snapshot in YYYY-MM-DD format. ESPN and Yahoo baseball, basketball, and hockey only â\x80\x94 football and Sleeper use week. Omit for the current roster; pass at most one of week or as_of_date.'}, 'season_year': {'type': 'number', 'description': 'Season start year â\x80\x94 use the season_year returned by get_user_session for this league; only pass an older year when the user explicitly asks about a past season. Basketball and hockey use the start year of a cross-year season (2024 = the 2024-25 season); football and baseball use the single season year (2025 = the 2025 season).'}}, 'additionalProperties': False}
Esquema de salida
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['success', 'data'], 'properties': {'data': {'type': 'object', 'properties': {'taxi': {'type': 'array', 'items': {}}, 'bench': {'type': 'array', 'items': {}}, 'points': {'type': ['number', 'null']}, 'record': {'type': 'object', 'properties': {}, 'additionalProperties': True}, 'roster': {'type': 'array', 'items': {'type': 'object', 'properties': {}, 'additionalProperties': True}, 'description': 'ESPN roster entries'}, 'teamId': {'type': ['string', 'number']}, 'ownerId': {'type': ['string', 'null']}, 'players': {'type': 'array', 'items': {'type': 'object', 'properties': {}, 'additionalProperties': True}, 'description': 'Yahoo roster entries'}, 'reserve': {'type': 'array', 'items': {}}, 'rosters': {'type': 'array', 'items': {'type': 'object', 'properties': {}, 'additionalProperties': True}, 'description': 'Sleeper league-wide roster list when no team is selected'}, 'teamKey': {'type': 'string'}, 'leagueId': {'type': 'string'}, 'rosterId': {'type': 'number'}, 'snapshot': {'type': 'object', 'required': ['type'], 'properties': {'type': {'type': 'string'}}, 'description': 'Identifies what was returned: current, week, or date', 'additionalProperties': True}, 'starters': {'type': 'array', 'items': {}}, 'teamName': {'type': 'string'}, 'ownerName': {'type': ['string', 'null']}, 'limitations': {'type': 'object', 'properties': {}, 'additionalProperties': True}, 'playersPoints': {'type': 'object', 'additionalProperties': {}}}, 'description': 'Platform envelope. Field availability varies by platform (ESPN, Yahoo, Sleeper); absent fields are not provided by that platform.', 'additionalProperties': True}, 'success': {'type': 'boolean'}}, 'additionalProperties': True}
Esquema de entrada
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['platform', 'sport', 'league_id', 'season_year'], 'properties': {'sport': {'enum': ['football', 'baseball', 'basketball', 'hockey'], 'type': 'string', 'description': 'Sport type (e.g., "football", "baseball")'}, 'platform': {'enum': ['espn', 'yahoo', 'sleeper'], 'type': 'string', 'description': 'Fantasy platform (e.g., "espn", "yahoo", "sleeper")'}, 'league_id': {'type': 'string', 'description': 'League ID (get from get_user_session)'}, 'season_year': {'type': 'number', 'description': 'Season start year â\x80\x94 use the season_year returned by get_user_session for this league; only pass an older year when the user explicitly asks about a past season. Basketball and hockey use the start year of a cross-year season (2024 = the 2024-25 season); football and baseball use the single season year (2025 = the 2025 season).'}}, 'additionalProperties': False}
Esquema de salida
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['success', 'data'], 'properties': {'data': {'type': 'object', 'properties': {'leagueId': {'type': 'string'}, 'leagueKey': {'type': 'string'}, 'standings': {'type': 'array', 'items': {'type': 'object', 'properties': {'finalRank': {'type': ['number', 'null'], 'description': 'Verified postseason finish; null when not verifiable'}, 'faabBalance': {'type': ['number', 'null'], 'description': 'Yahoo and Sleeper: remaining FAAB (free-agent budget) balance; 0 is a real spent-out balance, not unknown. On Sleeper the value already nets out FAAB traded between teams, so it can exceed the league starting budget. Null for leagues that do not use FAAB or when the platform did not report a usable value, so null alone does not prove the league lacks FAAB. Absent (not null) on ESPN.'}, 'playoffSeed': {'type': ['number', 'null']}, 'madePlayoffs': {'type': ['boolean', 'null']}, 'playoffOutcome': {'type': ['string', 'null']}, 'waiverPriority': {'type': ['number', 'null'], 'description': "Yahoo and Sleeper: the team's current waiver-claim priority, 1 = first. Present for rolling-priority leagues and for FAAB leagues that use priority as their bid tie-breaker. Null when priority does not apply or the platform did not report a usable value. Absent (not null) on ESPN. Distinct from get_transactions' waiver_priority, which is a past claim's priority."}, 'championshipWon': {'type': ['boolean', 'null']}, 'outcomeConfidence': {'type': ['string', 'null'], 'description': 'explicit or derived; null when unknown'}}, 'additionalProperties': True}}, 'leagueName': {'type': 'string'}, 'seasonYear': {'type': 'number'}, 'seasonPhase': {'type': 'string', 'description': 'regular_season, playoffs_in_progress, or season_complete'}, 'seasonComplete': {'type': 'boolean'}}, 'description': 'Platform envelope. Field availability varies by platform (ESPN, Yahoo, Sleeper); absent fields are not provided by that platform.', 'additionalProperties': True}, 'success': {'type': 'boolean'}}, 'additionalProperties': True}
Esquema de entrada
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['platform', 'sport', 'league_id', 'season_year'], 'properties': {'type': {'enum': ['add', 'drop', 'trade', 'waiver', 'pending_trade', 'trade_proposal', 'trade_decline', 'trade_veto', 'trade_uphold', 'failed_bid'], 'type': 'string', 'description': "Optional transaction type filter. Sleeper supports add/drop/trade/waiver. Yahoo supports add/drop/trade plus waiver/pending_trade for the authenticated user's own pending items. ESPN supports every listed type except pending_trade via its structured source, including failed_bid and the trade lifecycle types; if ESPN has fallen back to its activity feed, those structured-only filters return ESPN_TRANSACTION_TYPE_UNAVAILABLE rather than an empty result."}, 'week': {'type': 'integer', 'minimum': 0, 'description': 'Optional public week selector. ESPN accepts matchup period 0 or later (0 = preseason), including baseball, basketball, and hockey; omit it for the current and previous matchup periods. Sleeper accepts matchup week 1 or later; omit it for the current and previous week. Yahoo ignores week and uses a recent 14-day timestamp window'}, 'count': {'type': 'number', 'description': 'Maximum transactions to return (default: 25, max: 100)'}, 'sport': {'enum': ['football', 'baseball', 'basketball', 'hockey'], 'type': 'string', 'description': 'Sport type (e.g., "football", "baseball")'}, 'platform': {'enum': ['espn', 'yahoo', 'sleeper'], 'type': 'string', 'description': 'Fantasy platform (e.g., "espn", "yahoo", "sleeper")'}, 'league_id': {'type': 'string', 'description': 'League ID (get from get_user_session)'}, 'season_year': {'type': 'number', 'description': 'Season start year â\x80\x94 use the season_year returned by get_user_session for this league; only pass an older year when the user explicitly asks about a past season. Basketball and hockey use the start year of a cross-year season (2024 = the 2024-25 season); football and baseball use the single season year (2025 = the 2025 season).'}}, 'additionalProperties': False}
Esquema de salida
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['success', 'data'], 'properties': {'data': {'type': 'object', 'properties': {'count': {'type': 'number'}, 'sport': {'type': 'string'}, 'teams': {'type': 'object', 'description': 'ESPN team ID to display name map', 'additionalProperties': {'type': 'string'}}, 'source': {'enum': ['mTransactions2', 'mTransactions2_with_activity_trade_details', 'activity_feed'], 'type': 'string'}, 'window': {'type': 'object', 'properties': {'mode': {'enum': ['explicit_week', 'recent_two_weeks', 'recent_two_weeks_timestamp', 'pending', 'preseason'], 'type': 'string'}, 'unit': {'type': 'string', 'const': 'matchup_period'}, 'weeks': {'type': 'array', 'items': {'type': 'number'}}, 'end_date': {'type': ['string', 'null']}, 'timezone': {'type': 'string', 'const': 'America/New_York'}, 'start_date': {'type': ['string', 'null']}, 'normalization': {'enum': ['none', 'legacy_scoring_period_to_matchup'], 'type': 'string'}, 'requested_week': {'type': ['number', 'null']}, 'date_bounds_kind': {'enum': ['exact_contiguous', 'envelope_non_contiguous', 'unavailable'], 'type': 'string'}, 'provider_scoring_period_ids': {'type': 'array', 'items': {'type': 'number'}}}, 'additionalProperties': True}, 'warning': {'type': 'string'}, 'platform': {'type': 'string'}, 'league_id': {'type': 'string'}, 'truncated': {'type': 'boolean'}, 'limitations': {'type': 'object', 'properties': {'omitted_unscoped_rows': {'type': 'number'}, 'omitted_conflicting_rows': {'type': 'number'}, 'window_coverage_incomplete': {'type': 'boolean', 'const': True}, 'exact_date_bounds_unavailable': {'type': 'boolean', 'const': True}, 'structured_details_incomplete': {'type': 'boolean', 'const': True}}, 'additionalProperties': True}, 'season_year': {'type': 'number'}, 'transactions': {'type': 'array', 'items': {'type': 'object', 'properties': {'date': {'type': 'string'}, 'type': {'type': 'string'}, 'week': {'type': ['number', 'null']}, 'status': {'type': ['string', 'null']}, 'faab_bid': {'type': ['number', 'null']}, 'team_ids': {'type': 'array', 'items': {'type': ['string', 'number']}}, 'timestamp': {'type': 'number'}, 'draft_picks': {'anyOf': [{'type': 'array', 'items': {}}, {'type': 'null'}]}, 'trade_sides': {'anyOf': [{'type': 'array', 'items': {'type': 'object', 'properties': {'gave_up': {'type': 'array', 'items': {'type': 'object', 'required': ['id'], 'properties': {'id': {'type': 'string'}, 'name': {'type': 'string'}, 'team': {'type': 'string'}, 'position': {'type': 'string'}}, 'additionalProperties': True}}, 'team_id': {'type': 'string'}, 'acquired': {'type': 'array', 'items': {'type': 'object', 'required': ['id'], 'properties': {'id': {'type': 'string'}, 'name': {'type': 'string'}, 'team': {'type': 'string'}, 'position': {'type': 'string'}}, 'additionalProperties': True}}}, 'additionalProperties': True}}, {'type': 'null'}]}, 'players_added': {'type': 'array', 'items': {'type': 'object', 'required': ['id'], 'properties': {'id': {'type': 'string'}, 'name': {'type': 'string'}, 'team': {'type': 'string'}, 'position': {'type': 'string'}}, 'additionalProperties': True}}, 'transaction_id': {'type': 'string'}, 'players_dropped': {'type': 'array', 'items': {'type': 'object', 'required': ['id'], 'properties': {'id': {'type': 'string'}, 'name': {'type': 'string'}, 'team': {'type': 'string'}, 'position': {'type': 'string'}}, 'additionalProperties': True}}, 'waiver_priority': {'type': ['number', 'null']}, 'provider_scoring_period_id': {'type': 'number'}}, 'additionalProperties': True}}, 'dropped_invalid_timestamp_count': {'type': 'number'}}, 'description': 'Platform envelope. Field availability varies by platform (ESPN, Yahoo, Sleeper); absent fields are not provided by that platform.', 'additionalProperties': True}, 'success': {'type': 'boolean'}}, 'additionalProperties': True}
Esquema de entrada
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'properties': {}}
Esquema de salida
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['success', 'currentDate', 'currentSeasons', 'timezone', 'totalLeaguesFound', 'leaguesBySport', 'defaultSport', 'defaultLeague', 'defaultLeagues', 'allLeagues', 'instructions'], 'properties': {'widget': {'type': 'object', 'properties': {'hidden': {'type': 'boolean'}}, 'additionalProperties': True}, 'success': {'type': 'boolean'}, 'timezone': {'type': 'string'}, 'warnings': {'type': 'array', 'items': {'type': 'string'}}, 'allLeagues': {'type': 'array', 'items': {'type': 'object', 'required': ['leagueId', 'platform'], 'properties': {'sport': {'type': ['string', 'null']}, 'teamId': {'type': 'string'}, 'leagueId': {'type': 'string'}, 'platform': {'type': 'string'}, 'teamName': {'type': ['string', 'null']}, 'leagueName': {'type': ['string', 'null']}, 'seasonYear': {'type': ['number', 'null']}, 'recurringLeagueId': {'type': 'string'}}, 'additionalProperties': True}}, 'currentDate': {'type': 'string'}, 'defaultSport': {'type': ['string', 'null']}, 'instructions': {'type': 'string'}, 'defaultLeague': {'anyOf': [{'type': 'object', 'required': ['platform', 'leagueId'], 'properties': {'sport': {'type': 'string'}, 'season': {'type': 'string'}, 'teamId': {'type': 'string'}, 'leagueId': {'type': 'string'}, 'platform': {'type': 'string'}, 'teamName': {'type': 'string'}, 'leagueName': {'type': 'string'}, 'seasonYear': {'type': 'number'}}, 'additionalProperties': True}, {'type': 'null'}]}, 'currentSeasons': {'type': 'object', 'required': ['football', 'baseball', 'basketball', 'hockey'], 'properties': {'hockey': {'$ref': '#/properties/currentSeasons/properties/football'}, 'baseball': {'$ref': '#/properties/currentSeasons/properties/football'}, 'football': {'type': 'object', 'required': ['year', 'label'], 'properties': {'year': {'type': 'number'}, 'label': {'type': 'string'}}, 'additionalProperties': True}, 'basketball': {'$ref': '#/properties/currentSeasons/properties/football'}}, 'additionalProperties': True}, 'defaultLeagues': {'type': 'object', 'additionalProperties': {'$ref': '#/properties/defaultLeague/anyOf/0'}}, 'leaguesBySport': {'type': 'object', 'additionalProperties': {'type': 'number'}}, 'totalLeaguesFound': {'type': 'number'}}, 'additionalProperties': True}
Esquema de entrada
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'properties': {'platforms': {'type': 'array', 'items': {'enum': ['espn', 'yahoo', 'sleeper'], 'type': 'string'}, 'description': 'Optional platforms to refresh. Omit to refresh every connected platform.'}}, 'additionalProperties': False}
Esquema de salida
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['success'], 'properties': {'results': {'type': 'object', 'description': 'Per-platform refresh outcome keyed by platform name', 'additionalProperties': {'type': 'object', 'required': ['platform', 'status'], 'properties': {'error': {'type': 'string'}, 'status': {'type': 'string', 'description': 'success, skipped, or error'}, 'details': {}, 'platform': {'type': 'string'}, 'httpStatus': {'type': 'number'}, 'retryAfter': {'type': 'string'}, 'error_description': {'type': 'string'}}, 'additionalProperties': True}}, 'success': {'type': 'boolean'}, 'requestedPlatforms': {'type': 'array', 'items': {'type': 'string'}}}, 'additionalProperties': True}
Cambios recientes en herramientas
Servidores MCP similares
Stratz
Provides Dota 2 data including heroes, players, matches, live games, player histories, hero statistics, and custom STRATZ GraphQL…
Riot Games
Provides Riot Games and League of Legends data for accounts, champions, mastery, ranked ladders, matches, timelines, and player h…
Wynncraft
Provides Wynncraft player, guild, leaderboard, online-player, news, and item database lookups.
Balldontlie
Provides NBA schedules, games, players, rosters, and game-level basketball statistics.
sportiq-mcp
Provides football, Formula 1, and cricket schedules, scores, statistics, simulations, fantasy recommendations, odds analysis, and…
Api Football
Provides soccer data including fixtures, leagues, squads, injuries, head-to-head records, and match predictions.
Opendota
Provides Dota 2 player profiles, professional match data, and hero pick, win, and ban statistics.
Betsapi
Retrieves upcoming and live sports events along with bookmaker odds across supported sports.