Flaim Fantasy

Fantasy analysis for your ESPN, Yahoo, and Sleeper leagues. Reads your leagues, never changes them.

¿Debería usar esto?

Calidad y seguridad

A
Calidad de la descripción
100%
Integridad del esquema
92%
Calidad de los nombres
98%
Riesgo de envenenamiento
100%
Coincidencia de permisos
100%
Cumplimiento del protocolo
100%

Basado en el análisis automatizado de las definiciones de herramientas y el cumplimiento del protocolo.

Costo de contexto

~12,196Tokens (definiciones de herramientas)
~8.9 KBTamaño de respuesta típico
Impacto significativo en la atención (9.53% del contexto de 128k)

Este es el número aproximado de tokens que se consumen cada vez que las herramientas del servidor se cargan en el contexto de un modelo. Los recuentos más altos reducen la atención disponible para otras tareas.

Instalar

Instalación con un clic

Agrega esto a tu archivo `claude_desktop_config.json`:

{
  "mcpServers": {
    "mcp": {
      "url": "https://api.flaim.app/mcp"
    }
  }
}

Puntos de conexión remotos

https://api.flaim.app/mcpstreamable-http

Qué puede hacer

Inventario de herramientas

Herramientas (11)

🟢 Solo lectura🟡 Escritura🔴 Eliminación⚪ Desconocido
🟢get_user_session

Use this alone for user-specific connection, league, or account-status questions. For analysis, reuse successful session context already available in this chat instead of calling again. Do not call for Flaim capability, permission, or generic setup how-to questions, and do not call for generic coding, scraping, weather, travel, betting, sports news, or other requests that do not need connected league data. For selected-league analysis, call this only when no usable successful session result is available in this chat. Reuse its league IDs, teams, seasons, and defaults on ordinary follow-ups, including switching to another league already in allLeagues; do not repeat this call merely because a new user message arrived. Reload when the user confirms account, connection, league-list, or default changes, when the earlier session call failed, or when its result is no longer visible in the conversation. A new chat needs its own session lookup. Follow the error guidance if a call fails. Session reuse does not replace fresh roster, score, or player reads when needed. For an explicit refresh request, call refresh_leagues first and then call this tool after success; call it again even if it ran earlier in the chat. Returns the user's full league landscape: allLeagues (all active leagues), defaultLeagues (per-sport defaults), and defaultLeague (populated only when a single league exists or defaultSport matches). For vague singular prompts, use defaultLeague when present; otherwise use the relevant sport entry in defaultLeagues. If neither applies, ask which league by name without exposing internal IDs. For explicit plural or comparative prompts (each, all, compare, across leagues/platforms), enumerate every matching league in allLeagues and call the target tool once per league. With session context established, call get_league_info for the selected active league before the requested league-specific data tool, once per league per chat, then reuse it for later questions about that league. Skip get_league_info only when answering from session data alone or branching to get_ancient_history. season_year always represents the start year of the season. Read-only.

Esquema de entrada

{
  "type": "object",
  "properties": {},
  "$schema": "http://json-schema.org/draft-07/schema#"
}

Esquema de salida

{
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean"
    },
    "currentDate": {
      "type": "string"
    },
    "currentSeasons": {
      "type": "object",
      "properties": {
        "football": {
          "type": "object",
          "properties": {
            "year": {
              "type": "number"
            },
            "label": {
              "type": "string"
            }
          },
          "required": [
            "year",
            "label"
          ],
          "additionalProperties": true
        },
        "baseball": {
          "$ref": "#/properties/currentSeasons/properties/football"
        },
        "basketball": {
          "$ref": "#/properties/currentSeasons/properties/football"
        },
        "hockey": {
          "$ref": "#/properties/currentSeasons/properties/football"
        }
      },
      "required": [
        "football",
        "baseball",
        "basketball",
        "hockey"
      ],
      "additionalProperties": true
    },
    "timezone": {
      "type": "string"
    },
    "totalLeaguesFound": {
      "type": "number"
    },
    "leaguesBySport": {
      "type": "object",
      "additionalProperties": {
        "type": "number"
      }
    },
    "defaultSport": {
      "type": [
        "string",
        "null"
      ]
    },
    "defaultLeague": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "platform": {
              "type": "string"
            },
            "leagueId": {
              "type": "string"
            },
            "sport": {
              "type": "string"
            },
            "teamId": {
              "type": "string"
            },
            "seasonYear": {
              "type": "number"
            },
            "season": {
              "type": "string"
            },
            "leagueName": {
              "type": "string"
            },
            "teamName": {
              "type": "string"
            }
          },
          "required": [
            "platform",
            "leagueId"
          ],
          "additionalProperties": true
        },
        {
          "type": "null"
        }
      ]
    },
    "defaultLeagues": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/properties/defaultLeague/anyOf/0"
      }
    },
    "allLeagues": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "leagueId": {
            "type": "string"
          },
          "sport": {
            "type": [
              "string",
              "null"
            ]
          },
          "platform": {
            "type": "string"
          },
          "teamId": {
            "type": "string"
          },
          "seasonYear": {
            "type": [
              "number",
              "null"
            ]
          },
          "leagueName": {
            "type": [
              "string",
              "null"
            ]
          },
          "teamName": {
            "type": [
              "string",
              "null"
            ]
          },
          "recurringLeagueId": {
            "type": "string"
          }
        },
        "required": [
          "leagueId",
          "platform"
        ],
        "additionalProperties": true
      }
    },
    "warnings": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "instructions": {
      "type": "string"
    },
    "widget": {
      "type": "object",
      "properties": {
        "hidden": {
          "type": "boolean"
        }
      },
      "additionalProperties": true
    }
  },
  "required": [
    "success",
    "currentDate",
    "currentSeasons",
    "timezone",
    "totalLeaguesFound",
    "leaguesBySport",
    "defaultSport",
    "defaultLeague",
    "defaultLeagues",
    "allLeagues",
    "instructions"
  ],
  "additionalProperties": true,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🔴refresh_leagues(platforms)

Refresh connected fantasy leagues by asking Flaim to rediscover leagues through connected ESPN, Yahoo, and Sleeper accounts. Use only when the user explicitly asks to refresh, or from the refresh control on the league widget where the client supports it. This is non-destructive, but repeated refreshes can update Flaim registry timestamps and provider metadata; it does not change provider lineups or rosters, add or drop players, submit waiver claims or trades, or modify league settings. If this call succeeds, call get_user_session again to show the updated league list. If it fails, follow the error retry guidance and any retry_after value; do not retry in a loop.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "platforms": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "espn",
          "yahoo",
          "sleeper"
        ]
      },
      "description": "Optional platforms to refresh. Omit to refresh every connected platform."
    }
  },
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

Esquema de salida

{
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean"
    },
    "requestedPlatforms": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "results": {
      "type": "object",
      "additionalProperties": {
        "type": "object",
        "properties": {
          "platform": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "description": "success, skipped, or error"
          },
          "httpStatus": {
            "type": "number"
          },
          "error": {
            "type": "string"
          },
          "error_description": {
            "type": "string"
          },
          "retryAfter": {
            "type": "string"
          },
          "details": {}
        },
        "required": [
          "platform",
          "status"
        ],
        "additionalProperties": true
      },
      "description": "Per-platform refresh outcome keyed by platform name"
    }
  },
  "required": [
    "success"
  ],
  "additionalProperties": true,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢get_ancient_history(platform)

Use established session context (call get_user_session only if needed), and use this only when the user is clearly asking about a non-current season or an inactive league. This is the historical branch: it returns past seasons and historical leagues outside the current season view. Use for last season, older seasons, inactive leagues, or historical performance. All-time answers are scoped to seasons present in the response; an absent season may be unavailable even if provider history extends further. thresholdYear is display bucketing, not a retrieval floor. Read-only.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "platform": {
      "type": "string",
      "enum": [
        "espn",
        "yahoo",
        "sleeper"
      ],
      "description": "Optional: filter to specific platform"
    }
  },
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

Esquema de salida

{
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean"
    },
    "thresholdYear": {
      "type": "number"
    },
    "oldLeagues": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "leagueId": {
            "type": "string"
          },
          "sport": {
            "type": [
              "string",
              "null"
            ]
          },
          "platform": {
            "type": "string"
          },
          "teamId": {
            "type": "string"
          },
          "seasonYear": {
            "type": [
              "number",
              "null"
            ]
          },
          "leagueName": {
            "type": [
              "string",
              "null"
            ]
          },
          "teamName": {
            "type": [
              "string",
              "null"
            ]
          },
          "recurringLeagueId": {
            "type": "string"
          }
        },
        "required": [
          "leagueId",
          "platform"
        ],
        "additionalProperties": true
      }
    },
    "oldSeasonsFromActiveLeagues": {
      "type": "object",
      "additionalProperties": {
        "type": "array",
        "items": {
          "$ref": "#/properties/oldLeagues/items"
        }
      }
    },
    "totalOldLeagues": {
      "type": "number"
    },
    "totalOldSeasons": {
      "type": "number"
    },
    "warnings": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "success",
    "thresholdYear",
    "oldLeagues",
    "oldSeasonsFromActiveLeagues",
    "totalOldLeagues",
    "totalOldSeasons"
  ],
  "additionalProperties": true,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢get_league_info(platform, sport, league_id, season_year)

With session context established, call this once per league the first time this chat works with that league, before the requested standings, matchup, roster, free-agent, player, transaction, or draft tool, then reuse it for later questions about that league. A usable successful get_user_session result from earlier in this chat satisfies that prerequisite; do not repeat it just to satisfy this ordering. Skip it only when answering from session data alone or branching to get_ancient_history. This provides the baseline league context for analysis: league name, settings, scoring type, roster configuration, and team/owner context, plus schedule or season-window metadata when the platform provides it. Keeper and draft-format fields are additive and platform-dependent; never assume one provider's fields exist on another. ESPN adds keeperSettings (keeperCount, keeperCountFuture, keeperOrderType, keeperDeadlineDate) and isKeeperLeague when ESPN reports a keeper count, plus per-team keeperPlayerIds and futureKeeperPlayerIds as raw ESPN player IDs with no name resolution. Sleeper adds leagueFormat, whose typeRaw is an undocumented Sleeper convention that must not be read on its own as a redraft, keeper, dynasty, or guillotine signal, plus per-team keepers as raw Sleeper player IDs. Yahoo adds draftType, isAuctionDraft, and canTradeDraftPicks when Yahoo's settings fetch succeeds (omitted, with a warning, when it fails), but exposes no keeper-cost rule. Sleeper futureDraftRounds describes the configured round count for future drafts; use get_draft.draft.rounds for the selected draft's actual round count. When fanning out across multiple leagues, call this once per league. The exact team fields vary by platform but all include ownerName. Use values from get_user_session. Read-only. Current date is 2026-09-28.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "platform": {
      "type": "string",
      "enum": [
        "espn",
        "yahoo",
        "sleeper"
      ],
      "description": "Fantasy platform (e.g., \"espn\", \"yahoo\", \"sleeper\")"
    },
    "sport": {
      "type": "string",
      "enum": [
        "football",
        "baseball",
        "basketball",
        "hockey"
      ],
      "description": "Sport type (e.g., \"football\", \"baseball\")"
    },
    "league_id": {
      "type": "string",
      "description": "League ID (get from get_user_session)"
    },
    "season_year": {
      "type": "number",
      "description": "Season start year — 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)."
    }
  },
  "required": [
    "platform",
    "sport",
    "league_id",
    "season_year"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

Esquema de salida

{
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean"
    },
    "data": {
      "type": "object",
      "properties": {
        "id": {
          "type": [
            "string",
            "number"
          ]
        },
        "size": {
          "type": "number"
        },
        "scoringPeriodId": {
          "type": "number"
        },
        "currentMatchupPeriod": {
          "type": "number"
        },
        "seasonId": {
          "type": "number"
        },
        "segmentId": {
          "type": "number"
        },
        "scoringSettings": {
          "type": "object",
          "properties": {},
          "additionalProperties": true
        },
        "roster": {
          "type": "object",
          "properties": {},
          "additionalProperties": true
        },
        "schedule": {
          "type": "object",
          "properties": {},
          "additionalProperties": true
        },
        "leagueKey": {
          "type": "string"
        },
        "leagueId": {
          "type": [
            "string",
            "number"
          ]
        },
        "url": {
          "type": "string"
        },
        "numTeams": {
          "type": [
            "number",
            "string"
          ]
        },
        "scoringType": {
          "type": "string"
        },
        "currentWeek": {
          "type": [
            "number",
            "string"
          ]
        },
        "startWeek": {
          "type": [
            "number",
            "string"
          ]
        },
        "endWeek": {
          "type": [
            "number",
            "string"
          ]
        },
        "isFinished": {
          "type": "boolean"
        },
        "draftStatus": {
          "type": "string"
        },
        "sport": {
          "type": "string"
        },
        "season": {
          "type": [
            "string",
            "number"
          ]
        },
        "totalRosters": {
          "type": "number"
        },
        "rosterPositions": {
          "type": "array",
          "items": {}
        },
        "previousLeagueId": {
          "type": [
            "string",
            "null"
          ]
        },
        "draftId": {
          "type": [
            "string",
            "null"
          ]
        },
        "name": {
          "type": "string"
        },
        "status": {},
        "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"
        }
      },
      "additionalProperties": true,
      "description": "Platform envelope. Field availability varies by platform (ESPN, Yahoo, Sleeper); absent fields are not provided by that platform."
    }
  },
  "required": [
    "success",
    "data"
  ],
  "additionalProperties": true,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢get_draft(platform, sport, league_id, season_year, draft_id, ...)

Use this when the user asks about completed draft results, exact draft-board positions, or current draft-pick ownership for a selected league. Returns a common draft summary and ordered picks with explicit confirmed, projected, or unavailable placement provenance. A historical selecting team is not a current pick owner; current ownership comes only from ownership.picks[].currentOwnerTeamId. ESPN and Yahoo expose confirmed draft results but no current pick-ownership ledger, so their responses carry no ownership block at all; only Sleeper can report current or future pick ownership, and an exact board placement only when Sleeper supplies enough draft-order evidence. An ownership.scope of changed_picks_only lists only picks known to have changed hands and is not a complete pick inventory. selectionInRound is the round slot rendered in a value such as 12.15, while draftColumn is the stable draft-board column; they are not interchangeable. For a completed Sleeper draft, an omitted ownership block means no draft picks changed hands. Use round to return one draft round. Use team_id to return completed selections made by that historical team and ownership rows currently owned by that team. Omit draft_id to use the league's associated draft; draft_id is Sleeper-only and should be passed only when Flaim previously returned a provider draft ID. Omit season_year for the current sport season, or pass the season_year returned by get_user_session for a specific league or past draft. Use established session context (call get_user_session only if needed), then get_league_info for the specified league if this chat has not already loaded it. For multi-league comparisons, call once per league. Read-only. Current date is 2026-09-28.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "platform": {
      "type": "string",
      "enum": [
        "espn",
        "yahoo",
        "sleeper"
      ],
      "description": "Fantasy platform (e.g., \"espn\", \"yahoo\", \"sleeper\")"
    },
    "sport": {
      "type": "string",
      "enum": [
        "football",
        "baseball",
        "basketball",
        "hockey"
      ],
      "description": "Sport type (e.g., \"football\", \"baseball\")"
    },
    "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)."
    },
    "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."
    },
    "round": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "description": "Optional positive draft round. Returns only completed selections and ownership rows from this round."
    },
    "team_id": {
      "type": "string",
      "minLength": 1,
      "description": "Optional provider team ID. Filters completed selections by historical selecting team and ownership rows by current owner."
    }
  },
  "required": [
    "platform",
    "sport",
    "league_id"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

Esquema de salida

{
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean"
    },
    "data": {
      "type": "object",
      "properties": {
        "platform": {
          "type": "string"
        },
        "sport": {
          "type": "string"
        },
        "leagueId": {
          "type": [
            "string",
            "number"
          ]
        },
        "seasonYear": {
          "type": "number"
        },
        "draft": {
          "type": "object",
          "properties": {
            "id": {
              "type": [
                "string",
                "number"
              ]
            },
            "type": {
              "type": "string",
              "enum": [
                "snake",
                "linear",
                "auction",
                "offline",
                "unknown"
              ]
            },
            "status": {
              "type": "string",
              "enum": [
                "pre_draft",
                "in_progress",
                "complete",
                "unavailable",
                "unknown"
              ]
            },
            "rounds": {
              "type": "integer",
              "exclusiveMinimum": 0
            },
            "teams": {
              "type": "integer",
              "exclusiveMinimum": 0
            },
            "playerPool": {
              "type": "object",
              "properties": {},
              "additionalProperties": true
            }
          },
          "required": [
            "type",
            "status"
          ],
          "additionalProperties": true
        },
        "picks": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "round": {
                "type": "integer",
                "exclusiveMinimum": 0
              },
              "selectionInRound": {
                "type": "integer",
                "exclusiveMinimum": 0
              },
              "overallPick": {
                "type": "integer",
                "exclusiveMinimum": 0
              },
              "draftColumn": {
                "type": "integer",
                "exclusiveMinimum": 0
              },
              "selectionTeamId": {
                "type": [
                  "string",
                  "number"
                ]
              },
              "originalTeamId": {
                "type": [
                  "string",
                  "number"
                ]
              },
              "playerId": {
                "type": [
                  "string",
                  "number"
                ]
              },
              "playerName": {
                "type": "string"
              },
              "playerPosition": {
                "type": "string"
              },
              "playerProTeam": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "isKeeper": {
                "type": "boolean"
              },
              "cost": {
                "type": "object",
                "properties": {
                  "amount": {
                    "type": "number",
                    "minimum": 0
                  },
                  "unit": {
                    "type": "string"
                  }
                },
                "required": [
                  "amount",
                  "unit"
                ],
                "additionalProperties": true
              },
              "placement": {
                "type": "object",
                "properties": {
                  "status": {
                    "type": "string",
                    "enum": [
                      "confirmed",
                      "projected",
                      "unavailable"
                    ]
                  },
                  "source": {
                    "type": "string",
                    "enum": [
                      "provider_pick",
                      "provider_order_derived",
                      "no_provider_order"
                    ]
                  }
                },
                "required": [
                  "status",
                  "source"
                ],
                "additionalProperties": true
              }
            },
            "required": [
              "round",
              "placement"
            ],
            "additionalProperties": true
          }
        },
        "teams": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "Team names keyed by provider team ID"
        },
        "teamOwners": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "Owner names keyed by provider team ID"
        },
        "ownership": {
          "type": "object",
          "properties": {
            "scope": {
              "type": "string",
              "enum": [
                "complete",
                "changed_picks_only",
                "unavailable"
              ]
            },
            "picks": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "seasonYear": {
                    "type": "number"
                  },
                  "round": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "draftColumn": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "selectionInRound": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "overallPick": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "originalTeamId": {
                    "type": [
                      "string",
                      "number"
                    ]
                  },
                  "currentOwnerTeamId": {
                    "type": [
                      "string",
                      "number"
                    ]
                  },
                  "placement": {
                    "$ref": "#/properties/data/properties/picks/items/properties/placement"
                  }
                },
                "required": [
                  "seasonYear",
                  "round",
                  "originalTeamId",
                  "currentOwnerTeamId",
                  "placement"
                ],
                "additionalProperties": true
              }
            }
          },
          "required": [
            "scope",
            "picks"
          ],
          "additionalProperties": true
        }
      },
      "required": [
        "platform",
        "sport",
        "leagueId",
        "seasonYear",
        "draft",
        "picks"
      ],
      "additionalProperties": true,
      "description": "Platform envelope. Field availability varies by platform (ESPN, Yahoo, Sleeper); absent fields are not provided by that platform."
    }
  },
  "required": [
    "success",
    "data"
  ],
  "additionalProperties": true,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢get_standings(platform, sport, league_id, season_year)

Get season standings and outcome snapshot; includes verified season-outcome fields when available. Returns team records, rankings, and points summaries. The rank field is a standings sort position (1 = best): on ESPN it is computed by Flaim from win percentage, with wins as the tie-breaker; on Sleeper it is computed by Flaim from wins, with points for as the tie-breaker; on Yahoo it is passed through from Yahoo's own standings API. It is NOT a verified postseason finish. For verified postseason outcome, use finalRank and championshipWon instead. Also returns seasonPhase (regular_season/playoffs_in_progress/season_complete), seasonComplete, and per-team outcome fields: finalRank, championshipWon, playoffOutcome, outcomeConfidence, madePlayoffs, playoffSeed. Outcome fields are null when not verifiable — do not infer championship from rank or team name. outcomeConfidence is 'explicit' when the platform reports final ranks, or 'derived' when the champion and runner-up were determined from the final winners-bracket matchup (ESPN historical seasons may omit final ranks); 'derived' only ever appears on ESPN — Yahoo always returns null here, and Sleeper returns 'explicit' for any completed season whose winners bracket names a champion, including when the finish came from the bracket rather than from reported placements; a tied championship game is resolved using the league's playoff tie rule (ESPN's default advances the higher seed). Note: playoffOutcome returns 'in_progress' on Sleeper for teams in active playoffs; ESPN and Yahoo return null for that state. ESPN may also include projected-rank fields. Yahoo and Sleeper leagues also return waiverPriority (the team's current waiver-claim priority, 1 = first — this is the live priority, NOT get_transactions' waiver_priority, which is the priority some past claim used) and faabBalance (remaining free-agent budget; 0 means spent out, not unknown; on Sleeper it already reflects FAAB traded between teams, so it can exceed the league's starting budget). Either can be null (not applicable, or not reported by the platform — do not read null as proof the league lacks FAAB) and they are not mutually exclusive: a FAAB league may also report waiverPriority as its tie-breaker for equal bids. ESPN standings omit both fields entirely rather than returning null. Use established session context (call get_user_session only if needed), then get_league_info for the specified league if this chat has not already loaded it, so team names and league context are already established. For multi-league comparisons, call once per league. For historical finish questions, call get_ancient_history first to discover seasons, then call this tool per season for verified outcomes. Read-only. Current date is 2026-09-28.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "platform": {
      "type": "string",
      "enum": [
        "espn",
        "yahoo",
        "sleeper"
      ],
      "description": "Fantasy platform (e.g., \"espn\", \"yahoo\", \"sleeper\")"
    },
    "sport": {
      "type": "string",
      "enum": [
        "football",
        "baseball",
        "basketball",
        "hockey"
      ],
      "description": "Sport type (e.g., \"football\", \"baseball\")"
    },
    "league_id": {
      "type": "string",
      "description": "League ID (get from get_user_session)"
    },
    "season_year": {
      "type": "number",
      "description": "Season start year — 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)."
    }
  },
  "required": [
    "platform",
    "sport",
    "league_id",
    "season_year"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

Esquema de salida

{
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean"
    },
    "data": {
      "type": "object",
      "properties": {
        "leagueId": {
          "type": "string"
        },
        "seasonYear": {
          "type": "number"
        },
        "leagueKey": {
          "type": "string"
        },
        "leagueName": {
          "type": "string"
        },
        "seasonPhase": {
          "type": "string",
          "description": "regular_season, playoffs_in_progress, or season_complete"
        },
        "seasonComplete": {
          "type": "boolean"
        },
        "standings": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "playoffSeed": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "finalRank": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "Verified postseason finish; null when not verifiable"
              },
              "championshipWon": {
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "playoffOutcome": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "outcomeConfidence": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "explicit or derived; null when unknown"
              },
              "madePlayoffs": {
                "type": [
                  "boolean",
                  "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."
              },
              "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."
              }
            },
            "additionalProperties": true
          }
        }
      },
      "additionalProperties": true,
      "description": "Platform envelope. Field availability varies by platform (ESPN, Yahoo, Sleeper); absent fields are not provided by that platform."
    }
  },
  "required": [
    "success",
    "data"
  ],
  "additionalProperties": true,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢get_matchups(platform, sport, league_id, season_year, week, ...)

Get matchups/scoreboard for a specific week or the current week. Some category leagues (Yahoo, and ESPN baseball) additionally return per-category rows and a categoryScore of wins/losses/ties per side; where they do, the side total is a category count or null rather than fantasy points. A null categoryScore, value, or result means the provider did not report it; never infer one. To request compact player scores for one selected matchup, use detail: "players" with an explicit week and team_id; this is currently ESPN football only and only for season_year 2018 or later. Any other platform, sport, or earlier season returns MATCHUP_DETAIL_UNSUPPORTED. Use established session context (call get_user_session only if needed), then get_league_info for the specified league if this chat has not already loaded it, so the model already knows the league's team names, owner/team mapping, and league context before interpreting the matchup. For multi-league comparisons, call once per league. Read-only. Current date is 2026-09-28.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "platform": {
      "type": "string",
      "enum": [
        "espn",
        "yahoo",
        "sleeper"
      ],
      "description": "Fantasy platform (e.g., \"espn\", \"yahoo\", \"sleeper\")"
    },
    "sport": {
      "type": "string",
      "enum": [
        "football",
        "baseball",
        "basketball",
        "hockey"
      ],
      "description": "Sport type (e.g., \"football\", \"baseball\")"
    },
    "league_id": {
      "type": "string",
      "description": "League ID (get from get_user_session)"
    },
    "season_year": {
      "type": "number",
      "description": "Season start year — 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)."
    },
    "week": {
      "type": "integer",
      "minimum": 1,
      "description": "Week number (optional, must be ≥ 1, defaults to current week)"
    },
    "team_id": {
      "type": "string",
      "description": "Required with detail: \"players\" to select one matchup; do not provide for summary mode."
    },
    "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."
    }
  },
  "required": [
    "platform",
    "sport",
    "league_id",
    "season_year"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

Esquema de salida

{
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean"
    },
    "data": {
      "type": "object",
      "properties": {
        "leagueId": {
          "type": "string"
        },
        "seasonYear": {
          "type": "number"
        },
        "currentScoringPeriod": {
          "type": "number"
        },
        "matchupPeriod": {
          "type": [
            "number",
            "null"
          ]
        },
        "leagueKey": {
          "type": "string"
        },
        "leagueName": {
          "type": "string"
        },
        "currentWeek": {
          "type": [
            "number",
            "string"
          ]
        },
        "matchupWeek": {
          "type": [
            "number",
            "string"
          ]
        },
        "week": {
          "type": "number"
        },
        "matchups": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "home": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "players": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "playerId": {
                              "type": "string"
                            },
                            "name": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "lineupSlot": {
                              "type": "string"
                            },
                            "started": {
                              "type": [
                                "boolean",
                                "null"
                              ]
                            },
                            "points": {
                              "type": [
                                "number",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "playerId",
                            "name",
                            "lineupSlot",
                            "started",
                            "points"
                          ],
                          "additionalProperties": true
                        }
                      }
                    },
                    "additionalProperties": true
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "away": {
                "anyOf": [
                  {
                    "$ref": "#/properties/data/properties/matchups/items/properties/home/anyOf/0"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "additionalProperties": true
          }
        }
      },
      "additionalProperties": true,
      "description": "Platform envelope. Field availability varies by platform (ESPN, Yahoo, Sleeper); absent fields are not provided by that platform."
    }
  },
  "required": [
    "success",
    "data"
  ],
  "additionalProperties": true,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢get_roster(platform, sport, league_id, season_year, team_id, ...)

Get roster details for a specific team, current by default and historical on request. Exact payload varies by platform: ESPN and Yahoo return player entries with lineup/position context, while Sleeper returns starters, bench, reserve, taxi, and record metadata for the selected roster. Keeper fields are additive and platform-dependent; never assume one provider's keeper fields or units exist on another. ESPN adds per-player keeperValue and keeperValueFuture plus one response-level keeperValueUnit of auction_dollars or draft_round, omitted rather than guessed when ESPN's draft type does not determine it; a historical snapshot withholds keeperValueFuture and flags keeperValueFutureAvailable false. Sleeper resolves keepers to player entries on the current roster only, passing the list through as Sleeper sends it; an empty or null list does not show that the league has no keepers. Yahoo entries may add isKeeper as status, cost, and kept when Yahoo sends it; Yahoo has only been observed returning cost as false, so no numeric keeper cost is available from Yahoo. Historical snapshots: pass week for football (all platforms) and Sleeper basketball (matchup week), or as_of_date (YYYY-MM-DD) for ESPN/Yahoo baseball, basketball, and hockey, never both. An invalid selector returns a corrective error naming the right one. Every response includes a snapshot block identifying what was returned (current vs week vs date); historical responses may add limitation flags (acquisitionMetadataAvailable, reserveAndTaxiClassificationAvailable) when provider history omits those details. For "roster during matchup week N" questions in daily sports, ask the user for a specific date rather than guessing. One matchup spans several daily rosters. Use established session context (call get_user_session only if needed), then get_league_info for the specified league if this chat has not already loaded it, so the model already knows the league's team names, owner/team mapping, league settings, and roster context before interpreting this roster. Requires authentication except on Sleeper's public API. Read-only. Current date is 2026-09-28.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "platform": {
      "type": "string",
      "enum": [
        "espn",
        "yahoo",
        "sleeper"
      ],
      "description": "Fantasy platform (e.g., \"espn\", \"yahoo\", \"sleeper\")"
    },
    "sport": {
      "type": "string",
      "enum": [
        "football",
        "baseball",
        "basketball",
        "hockey"
      ],
      "description": "Sport type (e.g., \"football\", \"baseball\")"
    },
    "league_id": {
      "type": "string",
      "description": "League ID (get from get_user_session)"
    },
    "season_year": {
      "type": "number",
      "description": "Season start year — 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)."
    },
    "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."
    },
    "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 — use as_of_date there. Omit for the current roster; pass at most one of week or as_of_date."
    },
    "as_of_date": {
      "type": "string",
      "description": "Historical calendar-day roster snapshot in YYYY-MM-DD format. ESPN and Yahoo baseball, basketball, and hockey only — football and Sleeper use week. Omit for the current roster; pass at most one of week or as_of_date."
    }
  },
  "required": [
    "platform",
    "sport",
    "league_id",
    "season_year"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

Esquema de salida

{
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean"
    },
    "data": {
      "type": "object",
      "properties": {
        "leagueId": {
          "type": "string"
        },
        "teamId": {
          "type": [
            "string",
            "number"
          ]
        },
        "teamKey": {
          "type": "string"
        },
        "teamName": {
          "type": "string"
        },
        "rosterId": {
          "type": "number"
        },
        "ownerId": {
          "type": [
            "string",
            "null"
          ]
        },
        "ownerName": {
          "type": [
            "string",
            "null"
          ]
        },
        "snapshot": {
          "type": "object",
          "properties": {
            "type": {
              "type": "string"
            }
          },
          "required": [
            "type"
          ],
          "additionalProperties": true,
          "description": "Identifies what was returned: current, week, or date"
        },
        "roster": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {},
            "additionalProperties": true
          },
          "description": "ESPN roster entries"
        },
        "players": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {},
            "additionalProperties": true
          },
          "description": "Yahoo roster entries"
        },
        "starters": {
          "type": "array",
          "items": {}
        },
        "bench": {
          "type": "array",
          "items": {}
        },
        "reserve": {
          "type": "array",
          "items": {}
        },
        "taxi": {
          "type": "array",
          "items": {}
        },
        "record": {
          "type": "object",
          "properties": {},
          "additionalProperties": true
        },
        "points": {
          "type": [
            "number",
            "null"
          ]
        },
        "playersPoints": {
          "type": "object",
          "additionalProperties": {}
        },
        "rosters": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {},
            "additionalProperties": true
          },
          "description": "Sleeper league-wide roster list when no team is selected"
        },
        "limitations": {
          "type": "object",
          "properties": {},
          "additionalProperties": true
        }
      },
      "additionalProperties": true,
      "description": "Platform envelope. Field availability varies by platform (ESPN, Yahoo, Sleeper); absent fields are not provided by that platform."
    }
  },
  "required": [
    "success",
    "data"
  ],
  "additionalProperties": true,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢get_free_agents(platform, sport, league_id, season_year, position, ...)

Get players available to acquire in the specified fantasy league, optionally filtered by position. This is fantasy-league availability, not professional-contract status. Pass a requested count exactly from 1 through 100; for more than 100, state the limit and ask the user to narrow the request or accept 100. Prefer the canonical fields: every response carries leagueId, seasonYear, position, count, ordering, capabilities, and ownershipScope; entries carry team (real-life club, null when none) and id (platform player id as a string, when supplied) on every platform, and ESPN entries add acquisitionState ("free_agent", "waivers", or null when the platform cannot determine the subtype) plus waiverClearsAt (ISO time); legacy platform fields remain alongside for compatibility and should not be re-explained. ownershipScope "platform_global" means percentOwned/percentStarted cover all leagues on that platform — never ownership within the selected league. An ESPN-wide started rate is never conditional on the player being rostered. Label every reported percentage as an ESPN-wide roster/start rate or Yahoo-wide market rate. Translate ownership scope silently into that provider-wide wording; never print the ownershipScope key, platform_global enum, or get_free_agents tool name. If capabilities marks rates unavailable, write "[Provider] market ownership rate: not provided"; do not print a missing response field name or null value, call get_players, or offer a lookup. When acquisitionState is null or not present, call rows "available players," never specifically free agents or waivers, and do not promise an immediate add. A returned player is already confirmed available in that league. Yahoo entries may add isKeeper as status, cost, and kept when Yahoo sends it; Yahoo has only been observed returning cost as false, so no numeric keeper cost is available from Yahoo. Use get_roster only when the current request separately asks who owns a player; never offer it after an available-player result. Do not include injuryStatus or any injury detail unless the user asks for it; when asked, verify current web evidence and translate provider codes into plain language. State acquisition status in plain language from acquisitionState ("a free agent", "on waivers"); never print raw codes — neither provider codes such as FREEAGENT or WAIVERS nor canonical values like free_agent verbatim. Use current web evidence before adding analysis or pickup recommendations. Use established session context (call get_user_session only if needed), then get_league_info for the selected league if this chat has not already loaded it; fan out once per league for comparisons. Requires authentication on ESPN/Yahoo; Sleeper uses the public API. Read-only. Current date is 2026-09-28. Hard stop: after satisfying a returned-list or field-explanation request, end the answer immediately after the requested facts. Remove every closing question or offer to do more work, including roster checks, lineup-fit checks, comparisons, rankings, recommendations, role or health analysis, trends, or outlooks; never append "if you want", "tell me which player", or a similar invitation unless the user's current request explicitly asks for that additional work.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "platform": {
      "type": "string",
      "enum": [
        "espn",
        "yahoo",
        "sleeper"
      ],
      "description": "Fantasy platform — \"espn\", \"yahoo\", or \"sleeper\""
    },
    "sport": {
      "type": "string",
      "enum": [
        "football",
        "baseball",
        "basketball",
        "hockey"
      ],
      "description": "Sport type (e.g., \"football\", \"baseball\")"
    },
    "league_id": {
      "type": "string",
      "description": "League ID (get from get_user_session)"
    },
    "season_year": {
      "type": "number",
      "description": "Season start year — 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)."
    },
    "position": {
      "type": "string",
      "description": "Filter by position (e.g., \"QB\", \"RB\", \"SP\", \"C\"). Default: ALL"
    },
    "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)."
    }
  },
  "required": [
    "platform",
    "sport",
    "league_id",
    "season_year"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

Esquema de salida

{
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean"
    },
    "data": {
      "type": "object",
      "properties": {
        "leagueId": {
          "type": "string",
          "description": "Canonical league identity for every platform"
        },
        "seasonYear": {
          "type": "number"
        },
        "position": {
          "type": "string",
          "description": "Echoed position filter, ALL when unfiltered"
        },
        "count": {
          "type": "number"
        },
        "ordering": {
          "type": "string",
          "enum": [
            "platform_rostered_rate_desc",
            "alphabetical",
            "platform_trending_then_rank"
          ],
          "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)"
        },
        "capabilities": {
          "type": "object",
          "properties": {
            "acquisitionState": {
              "type": "boolean"
            },
            "rosteredRate": {
              "type": "boolean"
            },
            "startedRate": {
              "type": "boolean"
            }
          },
          "required": [
            "acquisitionState",
            "rosteredRate",
            "startedRate"
          ],
          "additionalProperties": true,
          "description": "Platform capability flags; per-entry canonical fields are omitted where false"
        },
        "ownershipScope": {
          "type": "string",
          "enum": [
            "platform_global",
            "unavailable"
          ],
          "description": "\"platform_global\": rates cover all leagues on the platform, never the selected league; \"unavailable\": the platform reports no rates"
        },
        "leagueKey": {
          "type": "string"
        },
        "leagueName": {
          "type": "string"
        },
        "freeAgents": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "acquisitionState": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "free_agent",
                      "waivers"
                    ]
                  },
                  {
                    "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"
              },
              "waiverClearsAt": {
                "type": "string",
                "description": "ISO 8601 waiver clear time (ESPN only, only on rows whose acquisitionState is \"waivers\" with a valid provider timestamp)"
              },
              "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"
              },
              "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"
                ]
              },
              "status": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Legacy: ESPN acquisition enum (prefer acquisitionState); on Yahoo an unrelated player designation"
              },
              "waiverProcessDate": {
                "anyOf": [
                  {
                    "type": [
                      "string",
                      "number"
                    ]
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Legacy epoch-ms form of waiverClearsAt"
              }
            },
            "additionalProperties": true
          },
          "description": "ESPN/Yahoo available-player entries"
        },
        "platform": {
          "type": "string"
        },
        "sport": {
          "type": "string"
        },
        "league_id": {
          "type": "string"
        },
        "season_year": {
          "type": "number"
        },
        "players": {
          "type": "array",
          "items": {
            "$ref": "#/properties/data/properties/freeAgents/items"
          },
          "description": "Sleeper available-player entries"
        },
        "warning": {
          "type": "string"
        }
      },
      "required": [
        "leagueId",
        "seasonYear",
        "position",
        "count",
        "ordering",
        "capabilities",
        "ownershipScope"
      ],
      "additionalProperties": true,
      "description": "Platform envelope. Field availability varies by platform (ESPN, Yahoo, Sleeper); absent fields are not provided by that platform."
    }
  },
  "required": [
    "success",
    "data"
  ],
  "additionalProperties": true,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢get_players(query, platform, sport, league_id, season_year, ...)

Search for player identity by name. Always returns identity fields, but ownership context varies by platform. ESPN and Yahoo return market/global ownership and can also populate league ownership fields when credentials and league context are available. Sleeper always evaluates league ownership against every current roster in the selected league, except during an active draft, when this tool returns an error instead of an answer, since draft picks aren't yet reflected on rosters; if the league, rosters, or users can't be loaded for another reason, the call still succeeds with every league_* field null plus a SLEEPER_OWNERSHIP_UNAVAILABLE warning. Sleeper adds a Sleeper-only league_team_id (the Sleeper roster id, or null); its market/global ownership stays unavailable regardless (ownership_scope="unavailable", market_percent_owned=null) — league_team_id is league ownership, not market data. For a selected active league, use established session context (call get_user_session only if needed), then get_league_info, if this chat has not already loaded it for that league, so league-specific ownership and team names can be resolved. League ownership fields: league_status ("ROSTERED" = on a team, "FREE_AGENT" = unrostered in this league, null = 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), league_team_name (fantasy team name if rostered), league_owner_name (team owner if rostered). FREE_AGENT is an ownership fact from a roster scan, not an acquisition guarantee — it says nothing about waiver state, so never turn it into pickup advice; get_free_agents is what reports players available to acquire. Trust a non-null league_status directly — null team/owner fields alongside FREE_AGENT are expected, not a signal to verify. Fall back to get_roster only when league_status itself is absent or null. Yahoo entries may add isKeeper as status, cost, and kept when Yahoo sends it; Yahoo has only been observed returning cost as false, so no numeric keeper cost is available from Yahoo. Use values from get_user_session. Read-only. Current date is 2026-09-28.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "query": {
      "type": "string",
      "minLength": 2,
      "description": "Player name search string (minimum 2 characters)"
    },
    "platform": {
      "type": "string",
      "enum": [
        "espn",
        "yahoo",
        "sleeper"
      ],
      "description": "Fantasy platform (e.g., \"espn\", \"yahoo\", \"sleeper\")"
    },
    "sport": {
      "type": "string",
      "enum": [
        "football",
        "baseball",
        "basketball",
        "hockey"
      ],
      "description": "Sport type (e.g., \"football\", \"baseball\")"
    },
    "league_id": {
      "type": "string",
      "description": "League ID (get from get_user_session)"
    },
    "season_year": {
      "type": "number",
      "description": "Season start year — 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)."
    },
    "position": {
      "type": "string",
      "description": "Filter by position (e.g., \"QB\", \"RB\", \"SP\", \"C\"). Default: ALL"
    },
    "count": {
      "type": "number",
      "description": "Maximum number of players to return (default: 10, max: 25)"
    }
  },
  "required": [
    "query",
    "platform",
    "sport",
    "league_id",
    "season_year"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

Esquema de salida

{
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean"
    },
    "data": {
      "type": "object",
      "properties": {
        "platform": {
          "type": "string"
        },
        "sport": {
          "type": "string"
        },
        "query": {
          "type": "string"
        },
        "count": {
          "type": "number"
        },
        "leagueKey": {
          "type": "string"
        },
        "leagueName": {
          "type": "string"
        },
        "players": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "team": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "position": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "market_percent_owned": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "ownership_scope": {
                "type": "string"
              },
              "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"
              },
              "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"
              },
              "league_team_name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "league_owner_name": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "additionalProperties": true
          }
        }
      },
      "additionalProperties": true,
      "description": "Platform envelope. Field availability varies by platform (ESPN, Yahoo, Sleeper); absent fields are not provided by that platform."
    }
  },
  "required": [
    "success",
    "data"
  ],
  "additionalProperties": true,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢get_transactions(platform, sport, league_id, season_year, week, ...)

Get recent league transactions including adds, drops, waivers, and completed trades. Use established session context (call get_user_session only if needed), then get_league_info, if this chat has not already loaded it, so the model already knows the league's team names and owner/team mapping before summarizing activity. Each normalized transaction includes type, status, week (null on Yahoo, and on Sleeper rows that carry no week), and optional team_ids. ESPN and Sleeper rows always include date (YYYY-MM-DD) and timestamp. Yahoo rows include them once Yahoo stamps the transaction: a still-unstamped row is returned without date and timestamp only for type=waiver or type=pending_trade requests, and on every other Yahoo request it is left out and counted in dropped_invalid_timestamp_count. The response contains at most count rows, newest first; if the row count equals count, older transactions inside the window may be missing. Raise count up to 100 before claiming completeness. When presenting results, organize by time period (today, yesterday, this week, older) AND by team within each period so the user can see both when moves happened and what each team did. Week handling is platform-specific: ESPN week always means matchup period, including daily sports where one matchup spans several provider scoring periods; week 0 is ESPN preseason, and omitting week selects the current and previous matchup periods. Sleeper accepts positive matchup weeks starting at 1; omit week for its current and previous week. Yahoo uses a recent 14-day timestamp window and ignores explicit week, except that type=waiver and type=pending_trade return the authenticated user's own pending items with no timestamp window. ESPN serves rows from its structured transaction source (source mTransactions2) with FAAB bid amounts, directional trade_sides, and full trade-lifecycle and failed-bid coverage; trades missing directional detail are filled from the activity feed (source mTransactions2_with_activity_trade_details). If the structured source is unavailable, ESPN falls back to its completed-activity feed (source activity_feed) where failed-bid and trade-lifecycle filters are unavailable. Inspect source/limitations/window metadata before claiming completeness. ESPN responses include a teams map (team ID to display name) to resolve numeric team_ids. Yahoo and Sleeper generally rely on get_league_info for team-name resolution. Use values from get_user_session. Read-only. Current date is 2026-09-28.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "platform": {
      "type": "string",
      "enum": [
        "espn",
        "yahoo",
        "sleeper"
      ],
      "description": "Fantasy platform (e.g., \"espn\", \"yahoo\", \"sleeper\")"
    },
    "sport": {
      "type": "string",
      "enum": [
        "football",
        "baseball",
        "basketball",
        "hockey"
      ],
      "description": "Sport type (e.g., \"football\", \"baseball\")"
    },
    "league_id": {
      "type": "string",
      "description": "League ID (get from get_user_session)"
    },
    "season_year": {
      "type": "number",
      "description": "Season start year — 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)."
    },
    "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"
    },
    "type": {
      "type": "string",
      "enum": [
        "add",
        "drop",
        "trade",
        "waiver",
        "pending_trade",
        "trade_proposal",
        "trade_decline",
        "trade_veto",
        "trade_uphold",
        "failed_bid"
      ],
      "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."
    },
    "count": {
      "type": "number",
      "description": "Maximum transactions to return (default: 25, max: 100)"
    }
  },
  "required": [
    "platform",
    "sport",
    "league_id",
    "season_year"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

Esquema de salida

{
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean"
    },
    "data": {
      "type": "object",
      "properties": {
        "platform": {
          "type": "string"
        },
        "sport": {
          "type": "string"
        },
        "league_id": {
          "type": "string"
        },
        "season_year": {
          "type": "number"
        },
        "window": {
          "type": "object",
          "properties": {
            "mode": {
              "type": "string",
              "enum": [
                "explicit_week",
                "recent_two_weeks",
                "recent_two_weeks_timestamp",
                "pending",
                "preseason"
              ]
            },
            "unit": {
              "type": "string",
              "const": "matchup_period"
            },
            "requested_week": {
              "type": [
                "number",
                "null"
              ]
            },
            "normalization": {
              "type": "string",
              "enum": [
                "none",
                "legacy_scoring_period_to_matchup"
              ]
            },
            "weeks": {
              "type": "array",
              "items": {
                "type": "number"
              }
            },
            "provider_scoring_period_ids": {
              "type": "array",
              "items": {
                "type": "number"
              }
            },
            "start_date": {
              "type": [
                "string",
                "null"
              ]
            },
            "end_date": {
              "type": [
                "string",
                "null"
              ]
            },
            "date_bounds_kind": {
              "type": "string",
              "enum": [
                "exact_contiguous",
                "envelope_non_contiguous",
                "unavailable"
              ]
            },
            "timezone": {
              "type": "string",
              "const": "America/New_York"
            }
          },
          "additionalProperties": true
        },
        "source": {
          "type": "string",
          "enum": [
            "mTransactions2",
            "mTransactions2_with_activity_trade_details",
            "activity_feed"
          ]
        },
        "limitations": {
          "type": "object",
          "properties": {
            "structured_details_incomplete": {
              "type": "boolean",
              "const": true
            },
            "omitted_unscoped_rows": {
              "type": "number"
            },
            "omitted_conflicting_rows": {
              "type": "number"
            },
            "exact_date_bounds_unavailable": {
              "type": "boolean",
              "const": true
            },
            "window_coverage_incomplete": {
              "type": "boolean",
              "const": true
            }
          },
          "additionalProperties": true
        },
        "count": {
          "type": "number"
        },
        "truncated": {
          "type": "boolean"
        },
        "transactions": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "transaction_id": {
                "type": "string"
              },
              "timestamp": {
                "type": "number"
              },
              "date": {
                "type": "string"
              },
              "type": {
                "type": "string"
              },
              "status": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "week": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "provider_scoring_period_id": {
                "type": "number"
              },
              "team_ids": {
                "type": "array",
                "items": {
                  "type": [
                    "string",
                    "number"
                  ]
                }
              },
              "players_added": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "position": {
                      "type": "string"
                    },
                    "team": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id"
                  ],
                  "additionalProperties": true
                }
              },
              "players_dropped": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "position": {
                      "type": "string"
                    },
                    "team": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id"
                  ],
                  "additionalProperties": true
                }
              },
              "trade_sides": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "team_id": {
                          "type": "string"
                        },
                        "acquired": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "name": {
                                "type": "string"
                              },
                              "position": {
                                "type": "string"
                              },
                              "team": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "id"
                            ],
                            "additionalProperties": true
                          }
                        },
                        "gave_up": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "name": {
                                "type": "string"
                              },
                              "position": {
                                "type": "string"
                              },
                              "team": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "id"
                            ],
                            "additionalProperties": true
                          }
                        }
                      },
                      "additionalProperties": true
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "faab_bid": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "waiver_priority": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "draft_picks": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {}
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "additionalProperties": true
          }
        },
        "teams": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "ESPN team ID to display name map"
        },
        "warning": {
          "type": "string"
        },
        "dropped_invalid_timestamp_count": {
          "type": "number"
        }
      },
      "additionalProperties": true,
      "description": "Platform envelope. Field availability varies by platform (ESPN, Yahoo, Sleeper); absent fields are not provided by that platform."
    }
  },
  "required": [
    "success",
    "data"
  ],
  "additionalProperties": true,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

Prompts recomendados

retrieve_data
Get details about [item] from Flaim Fantasy
Herramientas esperadas: get_user_session
fetch_info
Fetch [information type] using Flaim Fantasy
Herramientas esperadas: get_user_session

Comunidad

Califica este servidor

Evidencia

Observaciones recientes

verificadoversión no registrada11 herramientas
verificadoversión no registrada11 herramientas