{
  "notice": "bxzxxr MCP archive: a record of what public MCP servers declared when we listed them (we never call their tools). It is data, not a rating: nothing here says a server is safe, secure, verified or trustworthy, and a server can change after we looked. Secrets we detected are redacted; redacted tool lists are withheld and only their hash is shown.",
  "infrastructure": {
    "host": "api.flaim.app",
    "site": "flaim.app",
    "addresses": [
      {
        "address": "104.21.60.41",
        "endpoints": 1,
        "shared_infrastructure": false,
        "network": {
          "asn": 13335,
          "prefix": "104.21.48.0/20",
          "country": "US",
          "name": "CLOUDFLARENET - Cloudflare, Inc."
        }
      },
      {
        "address": "172.67.191.115",
        "endpoints": 1,
        "shared_infrastructure": false,
        "network": {
          "asn": 13335,
          "prefix": "172.67.176.0/20",
          "country": "US",
          "name": "CLOUDFLARENET - Cloudflare, Inc."
        }
      },
      {
        "address": "2606:4700:3033::ac43:bf73",
        "endpoints": 1,
        "shared_infrastructure": false,
        "network": {
          "asn": 13335,
          "prefix": "2606:4700:3033::/48",
          "country": "US",
          "name": "CLOUDFLARENET - Cloudflare, Inc."
        }
      },
      {
        "address": "2606:4700:3035::6815:3c29",
        "endpoints": 1,
        "shared_infrastructure": false,
        "network": {
          "asn": 13335,
          "prefix": "2606:4700:3035::/48",
          "country": "US",
          "name": "CLOUDFLARENET - Cloudflare, Inc."
        }
      }
    ],
    "addresses_recorded": true,
    "address_history": [
      {
        "addresses": [
          "104.21.60.41",
          "172.67.191.115",
          "2606:4700:3033::ac43:bf73",
          "2606:4700:3035::6815:3c29"
        ],
        "first_seen": "2026-11-22T07:00:01.662Z",
        "last_seen": "2026-11-22T07:00:01.662Z",
        "checks": 1
      }
    ],
    "hosting": [
      {
        "value": "Cloudflare",
        "evidence": "Server header \"cloudflare\""
      }
    ],
    "software": [],
    "server_info": {
      "name": "fantasy-mcp",
      "version": "1.0.0",
      "protocol_version": "2025-06-18"
    },
    "headers": {
      "server": "cloudflare"
    },
    "auth": null
  },
  "related": {
    "same_address": {
      "total": 0,
      "sample": []
    },
    "same_site": {
      "total": 0,
      "sample": []
    },
    "same_tool_list": {
      "total": 0,
      "sample": []
    },
    "same_publisher": {
      "publisher": "app.flaim",
      "total": 0,
      "sample": []
    },
    "same_repository": {
      "repository_url": "https://github.com/jdguggs10/flaim-fantasy",
      "total": 0,
      "sample": []
    },
    "note": "Shared addresses on big platforms (Cloudflare, Vercel and the like) put unrelated servers together; those are marked shared_infrastructure. A match is a pivot, not a link between operators."
  },
  "endpoint": {
    "id": "3298",
    "server_name": "app.flaim/mcp",
    "url": "https://api.flaim.app/mcp",
    "host": "api.flaim.app",
    "transport": "streamable-http",
    "last_checked_at": "2026-11-22T07:00:01.662Z",
    "last_state": "listed",
    "last_detail": null,
    "consecutive_failures": 0,
    "current_sha": "b9ec73d4505c5095c505b2f8d1229d20031ccfc839414ac82462347d142af7ea",
    "first_listed_at": "2026-11-21T05:44:02.713Z",
    "created_at": "2026-11-21T04:45:11.902Z",
    "resolved_addresses": [
      "104.21.60.41",
      "172.67.191.115",
      "2606:4700:3033::ac43:bf73",
      "2606:4700:3035::6815:3c29"
    ]
  },
  "server": {
    "name": "app.flaim/mcp",
    "title": "Flaim Fantasy",
    "description": "Fantasy analysis for your ESPN, Yahoo, and Sleeper leagues. Reads your leagues, never changes them.",
    "version": "1.0.3",
    "registry_status": "active",
    "repository_url": "https://github.com/jdguggs10/flaim-fantasy",
    "website_url": "https://flaim.app",
    "published_at": "2026-10-05T14:12:00.869Z",
    "updated_at": "2026-10-05T14:12:00.869Z",
    "first_seen": "2026-11-21T04:45:11.257Z"
  },
  "other_endpoints": [],
  "intel": {
    "capabilities": [
      "reads-chain",
      "runs-agents"
    ],
    "evm_addresses": [],
    "chains": [],
    "tokens": [],
    "computed_at": "2026-11-22T15:58:14.094Z"
  },
  "operator": {
    "key": "flaim.app",
    "name": "flaim.app",
    "platform": false,
    "marketplace": false
  },
  "needs_sign_in": false,
  "reachability": {
    "window_days": 30,
    "checks": 2,
    "answered": 2,
    "answered_percent": 100,
    "avg_listing_latency_ms": 270,
    "first_check_in_window": "2026-11-21T05:44:02.713Z",
    "consecutive_failures_now": 0,
    "days": [
      {
        "day": "2026-11-21",
        "checks": 1,
        "answered": 1,
        "last_state": "listed"
      },
      {
        "day": "2026-11-22",
        "checks": 1,
        "answered": 1,
        "last_state": "listed"
      }
    ]
  },
  "tool_list": {
    "sha256": "b9ec73d4505c5095c505b2f8d1229d20031ccfc839414ac82462347d142af7ea",
    "tools": 17,
    "resources": 8,
    "prompts": 0,
    "first_seen": "2026-11-22T07:00:02.103Z",
    "tool_names": [
      "get_user_session",
      "refresh_leagues",
      "get_ancient_history",
      "get_league_info",
      "get_draft",
      "get_standings",
      "get_matchups",
      "get_roster",
      "get_free_agents",
      "get_players",
      "get_transactions",
      "open_flaim_home",
      "open_flaim_home_tab",
      "save_flaim_home_ask",
      "delete_flaim_home_ask",
      "reorder_flaim_home_asks",
      "get_flaim_home_league"
    ],
    "declared": {
      "tools": [
        {
          "name": "get_user_session",
          "title": "User Session",
          "description": "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.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {}
          },
          "outputSchema": {
            "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": {}
              },
              "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": {}
                }
              },
              "currentDate": {
                "type": "string",
                "description": "Server time when this session was read. Treat it as today for season, week, and recency judgments instead of training knowledge, and verify player status against current reporting rather than memory"
              },
              "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": {}
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "currentSeasons": {
                "type": "object",
                "required": [
                  "football",
                  "baseball",
                  "basketball",
                  "hockey"
                ],
                "properties": {
                  "hockey": {
                    "type": "object",
                    "required": [
                      "year",
                      "label"
                    ],
                    "properties": {
                      "year": {
                        "type": "number"
                      },
                      "label": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": {}
                  },
                  "baseball": {
                    "type": "object",
                    "required": [
                      "year",
                      "label"
                    ],
                    "properties": {
                      "year": {
                        "type": "number"
                      },
                      "label": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": {}
                  },
                  "football": {
                    "type": "object",
                    "required": [
                      "year",
                      "label"
                    ],
                    "properties": {
                      "year": {
                        "type": "number"
                      },
                      "label": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": {}
                  },
                  "basketball": {
                    "type": "object",
                    "required": [
                      "year",
                      "label"
                    ],
                    "properties": {
                      "year": {
                        "type": "number"
                      },
                      "label": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": {}
              },
              "defaultLeagues": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {
                  "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": {}
                }
              },
              "leaguesBySport": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {
                  "type": "number"
                }
              },
              "totalLeaguesFound": {
                "type": "number"
              },
              "unavailablePlatforms": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "additionalProperties": {}
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "refresh_leagues",
          "title": "Refresh Leagues",
          "description": "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. Refresh can update Flaim registry timestamps and provider metadata, remove saved current-season Sleeper league associations after complete provider evidence confirms the user is no longer an owner or co-owner, and clear defaults that still point to removed associations. It preserves historical seasons and 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.",
          "inputSchema": {
            "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
          },
          "outputSchema": {
            "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",
                "propertyNames": {
                  "type": "string"
                },
                "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": {}
                }
              },
              "success": {
                "type": "boolean"
              },
              "requestedPlatforms": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "additionalProperties": {}
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "get_ancient_history",
          "title": "Ancient History",
          "description": "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. Sleeper coverage floor: Flaim follows the previous_league_id chain of each Sleeper league back at most 15 seasons including the current one and saves every season Sleeper still serves on it; Sleeper has run since 2017, so today that is the entire history of any Sleeper league. Sleeper seasons are discovered on connect and on refresh_leagues, so a league last synced under the earlier five-season limit needs one refresh before its older seasons appear here, and a season still missing after a refresh means Sleeper did not serve it on that walk, not that Flaim capped the history. thresholdYear is display bucketing, not a retrieval floor. Read-only.",
          "inputSchema": {
            "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
          },
          "outputSchema": {
            "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": {}
                }
              },
              "instructions": {
                "type": "string"
              },
              "thresholdYear": {
                "type": "number"
              },
              "totalOldLeagues": {
                "type": "number"
              },
              "totalOldSeasons": {
                "type": "number"
              },
              "unavailablePlatforms": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "oldSeasonsFromActiveLeagues": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {
                  "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": {}
                  }
                }
              }
            },
            "additionalProperties": {}
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_league_info",
          "title": "League Context",
          "description": "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. When its settings request succeeds, Yahoo may add draftType, isAuctionDraft, canTradeDraftPicks, waiverType, waiverRule, waiverTime (days), postDraftPlayers, cantCutList, and maxWeeklyAdds; it also adds weeklyDeadline from league metadata. Yahoo statModifiers returns configured per-stat scoring values and may add bonuses as Yahoo's configured target/points rule pairs. These are league rules, not calculated player awards; do not infer whether a target is inclusive or whether multiple tiers stack. Yahoo's rule and deadline codes are raw provider values with no complete published code list: do not decode them, call weeklyDeadline a lock time, or infer that a particular move is legal. The settings fields are omitted, with a warning, when Yahoo's settings request fails. Yahoo 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.",
          "inputSchema": {
            "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), passed whole, exactly as returned; Yahoo IDs include a season prefix, like 449.l.12345"
              },
              "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)."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "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": {}
                    },
                    "description": "Team/owner context; exact team fields vary by platform but all include ownerName"
                  },
                  "roster": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  },
                  "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": {}
                  },
                  "seasonId": {
                    "type": "number"
                  },
                  "leagueKey": {
                    "type": "string"
                  },
                  "segmentId": {
                    "type": "number"
                  },
                  "startWeek": {
                    "type": [
                      "number",
                      "string"
                    ]
                  },
                  "isFinished": {
                    "type": "boolean"
                  },
                  "waiverRule": {
                    "type": "string",
                    "description": "Yahoo raw waiver-rule code; Yahoo does not publish a complete code list, so do not decode or infer a rule from it alone"
                  },
                  "waiverTime": {
                    "type": "number",
                    "description": "Yahoo waiver delay in days when Yahoo reports a usable value"
                  },
                  "waiverType": {
                    "type": "string",
                    "description": "Yahoo raw waiver-system code; Yahoo does not publish a complete code list, so do not decode or infer a rule from it alone"
                  },
                  "cantCutList": {
                    "type": "string",
                    "description": "Yahoo raw undroppable-list setting code; it does not itself identify every player that cannot be dropped"
                  },
                  "currentWeek": {
                    "type": [
                      "number",
                      "string"
                    ]
                  },
                  "draftStatus": {
                    "type": "string"
                  },
                  "scoringType": {
                    "type": "string"
                  },
                  "totalRosters": {
                    "type": "number"
                  },
                  "maxWeeklyAdds": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "description": "Yahoo maximum weekly adds when Yahoo reports a non-negative integer; absent does not establish no limit"
                  },
                  "scoringFormat": {
                    "enum": [
                      "points",
                      "categories",
                      "roto",
                      "unknown"
                    ],
                    "type": "string",
                    "description": "Yahoo: sport-aware reading of scoringType. Yahoo's raw \"head\" means points in football and categories in other sports"
                  },
                  "statModifiers": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "statId",
                        "value",
                        "name",
                        "displayName"
                      ],
                      "properties": {
                        "name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "value": {
                          "type": "number"
                        },
                        "statId": {
                          "type": "string"
                        },
                        "bonuses": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "target",
                              "points"
                            ],
                            "properties": {
                              "points": {
                                "type": "number"
                              },
                              "target": {
                                "type": "number"
                              }
                            },
                            "additionalProperties": {}
                          },
                          "description": "Yahoo configured bonus threshold and point pairs for this stat; league rules, not calculated awards"
                        },
                        "displayName": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "additionalProperties": {}
                    },
                    "description": "Yahoo configured per-stat scoring values, with optional configured bonus threshold and point rules when Yahoo reports a fully usable bonus list"
                  },
                  "weeklyDeadline": {
                    "type": "string",
                    "description": "Yahoo raw weekly-deadline code. It is not a lineup lock time and does not establish whether a particular move is legal"
                  },
                  "rosterPositions": {
                    "type": "array",
                    "items": {}
                  },
                  "scoringPeriodId": {
                    "type": "number"
                  },
                  "scoringSettings": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  },
                  "postDraftPlayers": {
                    "type": "string",
                    "description": "Yahoo raw post-draft player-acquisition code; do not decode it without Yahoo evidence"
                  },
                  "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": {}
              },
              "success": {
                "type": "boolean"
              }
            },
            "additionalProperties": {}
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_draft",
          "title": "Draft Results and Pick Ownership",
          "description": "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.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "platform",
              "sport",
              "league_id"
            ],
            "properties": {
              "round": {
                "type": "integer",
                "maximum": 9007199254740991,
                "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), passed whole, exactly as returned; Yahoo IDs include a season prefix, like 449.l.12345"
              },
              "season_year": {
                "type": "integer",
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "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
          },
          "outputSchema": {
            "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",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      "rounds": {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "exclusiveMinimum": 0
                      },
                      "status": {
                        "enum": [
                          "pre_draft",
                          "in_progress",
                          "complete",
                          "unavailable",
                          "unknown"
                        ],
                        "type": "string"
                      },
                      "playerPool": {
                        "type": "object",
                        "properties": {},
                        "additionalProperties": {}
                      }
                    },
                    "additionalProperties": {}
                  },
                  "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": {}
                        },
                        "round": {
                          "type": "integer",
                          "maximum": 9007199254740991,
                          "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": {}
                        },
                        "playerName": {
                          "type": "string"
                        },
                        "draftColumn": {
                          "type": "integer",
                          "maximum": 9007199254740991,
                          "exclusiveMinimum": 0
                        },
                        "overallPick": {
                          "type": "integer",
                          "maximum": 9007199254740991,
                          "exclusiveMinimum": 0
                        },
                        "playerProTeam": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "originalTeamId": {
                          "type": [
                            "string",
                            "number"
                          ]
                        },
                        "playerPosition": {
                          "type": "string"
                        },
                        "selectionTeamId": {
                          "type": [
                            "string",
                            "number"
                          ]
                        },
                        "selectionInRound": {
                          "type": "integer",
                          "maximum": 9007199254740991,
                          "exclusiveMinimum": 0
                        }
                      },
                      "additionalProperties": {}
                    }
                  },
                  "sport": {
                    "type": "string"
                  },
                  "teams": {
                    "type": "object",
                    "description": "Team names keyed by provider team ID",
                    "propertyNames": {
                      "type": "string"
                    },
                    "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",
                              "maximum": 9007199254740991,
                              "exclusiveMinimum": 0
                            },
                            "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": {}
                            },
                            "seasonYear": {
                              "type": "number"
                            },
                            "draftColumn": {
                              "type": "integer",
                              "maximum": 9007199254740991,
                              "exclusiveMinimum": 0
                            },
                            "overallPick": {
                              "type": "integer",
                              "maximum": 9007199254740991,
                              "exclusiveMinimum": 0
                            },
                            "originalTeamId": {
                              "type": [
                                "string",
                                "number"
                              ]
                            },
                            "selectionInRound": {
                              "type": "integer",
                              "maximum": 9007199254740991,
                              "exclusiveMinimum": 0
                            },
                            "currentOwnerTeamId": {
                              "type": [
                                "string",
                                "number"
                              ]
                            }
                          },
                          "additionalProperties": {}
                        }
                      },
                      "scope": {
                        "enum": [
                          "complete",
                          "changed_picks_only",
                          "unavailable"
                        ],
                        "type": "string"
                      }
                    },
                    "additionalProperties": {}
                  },
                  "seasonYear": {
                    "type": "number"
                  },
                  "teamOwners": {
                    "type": "object",
                    "description": "Owner names keyed by provider team ID",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {
                      "type": "string"
                    }
                  }
                },
                "description": "Platform envelope. Field availability varies by platform (ESPN, Yahoo, Sleeper); absent fields are not provided by that platform.",
                "additionalProperties": {}
              },
              "success": {
                "type": "boolean"
              }
            },
            "additionalProperties": {}
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_standings",
          "title": "League Standings",
          "description": "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 follows ESPN's playoffSeed order when every team has a unique valid seed; otherwise Flaim computes it from win percentage (a tie counts as half a win), 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. Every platform also returns 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 Yahoo and Sleeper add 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 faabBalance entirely rather than returning null. Yahoo basketball Roto additionally returns each team's roto block: season stat values, Yahoo-reported per-category points, a separate overall totalPoints, and independent statsCoverage/pointsCoverage. These are season totals, not current-week or date scores. Raw ratio and percentage strings retain Yahoo's precision. Null means unknown, never zero; genuine zero and decimal points are preserved. The category rows can include display-only or unscored stats: do not infer the configured scoring categories from row counts, numeric point counts, or isDisplayOnly:false. Missing labels or metadata stay unknown. Category points are not category ranks; no category ranks, neighbor gaps or attainable gains are supplied or guaranteed. 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.",
          "inputSchema": {
            "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), passed whole, exactly as returned; Yahoo IDs include a season prefix, like 449.l.12345"
              },
              "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)."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "success",
              "data"
            ],
            "properties": {
              "data": {
                "type": "object",
                "properties": {
                  "warning": {
                    "type": "string",
                    "description": "Present when part of the response is a fallback rather than the platform's answer, such as a seasonPhase Flaim could not confirm from the playoff bracket."
                  },
                  "leagueId": {
                    "type": "string"
                  },
                  "leagueKey": {
                    "type": "string"
                  },
                  "standings": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "roto": {
                          "type": "object",
                          "required": [
                            "statsCoverage",
                            "pointsCoverage",
                            "totalPoints",
                            "categories"
                          ],
                          "properties": {
                            "categories": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "required": [
                                  "statId",
                                  "name",
                                  "displayName",
                                  "isDisplayOnly",
                                  "value",
                                  "points"
                                ],
                                "properties": {
                                  "name": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "value": {
                                    "type": [
                                      "number",
                                      "string",
                                      "null"
                                    ],
                                    "description": "Reported season stat value, preserving raw ratio and percentage strings; null means unknown"
                                  },
                                  "points": {
                                    "type": [
                                      "number",
                                      "null"
                                    ],
                                    "description": "Yahoo-reported category Roto points, not rank or a derived award; zero is preserved and null means unknown"
                                  },
                                  "statId": {
                                    "type": "string"
                                  },
                                  "displayName": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "isDisplayOnly": {
                                    "type": [
                                      "boolean",
                                      "null"
                                    ],
                                    "description": "Yahoo metadata marks display-only; false means not marked, not proof the stat scores; null means metadata unavailable"
                                  }
                                },
                                "additionalProperties": {}
                              },
                              "description": "Union of reported season stat/point IDs, including display-only or unscored rows; not the configured scored-category set"
                            },
                            "totalPoints": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "description": "Yahoo overall Roto team-point total, distinct from each stat row's category points and from legacy pointsFor"
                            },
                            "statsCoverage": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "required": [
                                    "type",
                                    "season"
                                  ],
                                  "properties": {
                                    "type": {
                                      "type": "string",
                                      "const": "season"
                                    },
                                    "season": {
                                      "type": "integer",
                                      "maximum": 9999,
                                      "exclusiveMinimum": 0
                                    }
                                  },
                                  "additionalProperties": false
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "Echoed season coverage matching the requested league season, or null; identifies period, not category completeness"
                            },
                            "pointsCoverage": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "required": [
                                    "type",
                                    "season"
                                  ],
                                  "properties": {
                                    "type": {
                                      "type": "string",
                                      "const": "season"
                                    },
                                    "season": {
                                      "type": "integer",
                                      "maximum": 9999,
                                      "exclusiveMinimum": 0
                                    }
                                  },
                                  "additionalProperties": false
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "Independent coverage for the provider point rows and total; null prevents mixing another period into season data"
                            }
                          },
                          "description": "Yahoo basketball Roto only; additive provider-reported season statistics and category points",
                          "additionalProperties": {}
                        },
                        "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": "All platforms: 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 (ESPN reports 0 for no order). 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": {}
                    }
                  },
                  "leagueName": {
                    "type": "string"
                  },
                  "seasonYear": {
                    "type": "number"
                  },
                  "scoringType": {
                    "type": "string",
                    "description": "Yahoo basketball Roto reports roto; other standings formats currently omit this field"
                  },
                  "seasonPhase": {
                    "type": "string",
                    "description": "regular_season, playoffs_in_progress, or season_complete"
                  },
                  "scoringTypeRaw": {
                    "type": "string",
                    "description": "Provider scoring code for Yahoo basketball Roto"
                  },
                  "seasonComplete": {
                    "type": "boolean"
                  }
                },
                "description": "Platform envelope. Field availability varies by platform (ESPN, Yahoo, Sleeper); absent fields are not provided by that platform.",
                "additionalProperties": {}
              },
              "success": {
                "type": "boolean"
              }
            },
            "additionalProperties": {}
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_matchups",
          "title": "League Matchups",
          "description": "Get matchups/scoreboard for a specific week or the current week. Yahoo and ESPN head-to-head category leagues (Each Category and Most Categories), in baseball, basketball, and hockey, return per-category rows and a categoryScore of wins/losses/ties per side. On those leagues the side total is a category count or null rather than fantasy points. In a Most Categories league, categoryScore stays the per-category tally. On Yahoo (scoringTypeRaw \"headone\"), the side that wins more categories takes the single weekly result, and equal category wins is a tie. On ESPN (scoringType \"H2H_MOST_CATEGORIES\"), use the provider-reported matchup winner for that weekly result rather than deriving it; it can stay UNDECIDED mid-period. Before the provider reports a final winner, describe categoryScore and categories only as the current category lead, not the final weekly result. ESPN category rows include only the stats that league scores. For an undecided current ESPN category matchup, the tally and rows use live data when ESPN provides it for both sides; otherwise they may reflect only scoring periods ESPN has processed. ESPN football and Sleeper stay on fantasy points and do not return category rows. A null categoryScore, value, or result means the provider did not report it; never infer one. ESPN points matchups: totalPoints stays 0 until ESPN decides the matchup, so read each side's currentPoints for the score so far; winner stays UNDECIDED until then. Yahoo matchups: projectedPoints is the sum of each starter's pregame projection for the period. It does not add points as they are scored, so mid-period it routinely differs from points and can sit below the current score; that gap is expected and does not mean the data is stale or inconsistent. When liveProjectedPoints is present it is Yahoo's live projected final; prefer it. winProbability, when present, is Yahoo's estimated chance (0 to 1) that side wins. status reports upcoming, in_progress, or final; Yahoo's winner appears only when status is final. A missing optional field means Yahoo did not provide a usable value; never infer one. Sleeper returns no projection. Sleeper status reports upcoming, in_progress, or final for the requested week; in_progress lasts from before kickoff until Sleeper rolls to the next week, so it does not prove games have started. Sleeper's winner appears only when status is final; mid-week, points are the live score, not a result. Sleeper keeps every provider matchup record: scheduleShape reports \"no_h2h_pairings\" with reason \"unknown\" when numeric groups are present but none form an H2H pair, and \"unpublished_or_unavailable\" when there are no usable pairing IDs. When it has both pairs and unpaired records, it reports the unpaired count. A singleton has away:null and is never labelled a bye or used to infer league format. 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. Set include_projections: true with player detail to add each player's nullable ESPN weekly projectedPoints. These are provider values retrieved now for the selected week; historical values are not verified original pregame snapshots and cannot be used as an accuracy backtest. 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.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "platform",
              "sport",
              "league_id",
              "season_year"
            ],
            "properties": {
              "week": {
                "type": "integer",
                "maximum": 9007199254740991,
                "minimum": 1,
                "description": "Week number (optional, must be ≥ 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), passed whole, exactly as returned; Yahoo IDs include a season prefix, like 449.l.12345"
              },
              "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)."
              },
              "include_projections": {
                "type": "boolean",
                "description": "With detail: players only, add nullable ESPN weekly player projectedPoints. Historical values are retrieved now, not verified original pregame snapshots."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "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": [
                            {
                              "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"
                                      },
                                      "projectedPoints": {
                                        "type": [
                                          "number",
                                          "null"
                                        ],
                                        "description": "ESPN football: provider projection retrieved now for the selected week; null when unavailable. Historical values are not verified pregame snapshots and cannot establish projection accuracy."
                                      }
                                    },
                                    "additionalProperties": {}
                                  }
                                },
                                "currentPoints": {
                                  "type": [
                                    "number",
                                    "null"
                                  ],
                                  "description": "ESPN points matchups: the score so far. ESPN's totalPoints stays 0 until the matchup is decided, so read this instead; it equals totalPoints once decided. Null on ESPN category leagues"
                                },
                                "gamesRemaining": {
                                  "type": "number",
                                  "description": "Yahoo, when sent: games this side has left in the period"
                                },
                                "winProbability": {
                                  "type": "number",
                                  "description": "Yahoo, when sent: estimated chance (0-1) that this side wins"
                                },
                                "projectedPoints": {
                                  "type": "number",
                                  "description": "Yahoo: sum of the starters' pregame projections for the period; it does not add points as they are scored, so a gap from points mid-period is expected, not stale data"
                                },
                                "liveProjectedPoints": {
                                  "type": "number",
                                  "description": "Yahoo, when sent: live projected final for the period; prefer it over projectedPoints"
                                }
                              },
                              "additionalProperties": {}
                            },
                            {
                              "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"
                                      },
                                      "projectedPoints": {
                                        "type": [
                                          "number",
                                          "null"
                                        ],
                                        "description": "ESPN football: provider projection retrieved now for the selected week; null when unavailable. Historical values are not verified pregame snapshots and cannot establish projection accuracy."
                                      }
                                    },
                                    "additionalProperties": {}
                                  }
                                },
                                "currentPoints": {
                                  "type": [
                                    "number",
                                    "null"
                                  ],
                                  "description": "ESPN points matchups: the score so far. ESPN's totalPoints stays 0 until the matchup is decided, so read this instead; it equals totalPoints once decided. Null on ESPN category leagues"
                                },
                                "gamesRemaining": {
                                  "type": "number",
                                  "description": "Yahoo, when sent: games this side has left in the period"
                                },
                                "winProbability": {
                                  "type": "number",
                                  "description": "Yahoo, when sent: estimated chance (0-1) that this side wins"
                                },
                                "projectedPoints": {
                                  "type": "number",
                                  "description": "Yahoo: sum of the starters' pregame projections for the period; it does not add points as they are scored, so a gap from points mid-period is expected, not stale data"
                                },
                                "liveProjectedPoints": {
                                  "type": "number",
                                  "description": "Yahoo, when sent: live projected final for the period; prefer it over projectedPoints"
                                }
                              },
                              "additionalProperties": {}
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "status": {
                          "enum": [
                            "upcoming",
                            "in_progress",
                            "final"
                          ],
                          "type": "string",
                          "description": "Yahoo: matchup state; absent when Yahoo did not report a recognized one. Sleeper: state of the requested week; absent when it could not be determined from Sleeper's league and season state. Sleeper's in_progress covers its whole current week, from before kickoff until Sleeper rolls to the next week"
                        },
                        "winner": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Yahoo and Sleeper: home, away, or tie, present only when status is final. ESPN: its own HOME, AWAY, TIE, or UNDECIDED, which stays UNDECIDED until the matchup is decided"
                        },
                        "matchupId": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "description": "Provider matchup grouping id, or null when Sleeper did not publish a usable id"
                        }
                      },
                      "additionalProperties": {}
                    }
                  },
                  "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": {}
                  },
                  "currentScoringPeriod": {
                    "type": "number"
                  }
                },
                "description": "Platform envelope. Field availability varies by platform (ESPN, Yahoo, Sleeper); absent fields are not provided by that platform.",
                "additionalProperties": {}
              },
              "success": {
                "type": "boolean"
              }
            },
            "additionalProperties": {}
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_roster",
          "title": "Team Roster",
          "description": "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. On a current Yahoo roster only, entries may also add isUndroppable and isEditable. These are Yahoo player flags, not comprehensive transaction or lineup-lock rules: isEditable does not provide a lock time or guarantee that an add, drop, or lineup move is legal. Current Yahoo entries may also add eligiblePositions from Yahoo metadata, preserving provider-native codes and order without filtering or mapping to another platform's labels. This is separate from the assigned slot and does not prove that a move is legal. Honor codes Yahoo explicitly lists, including flex codes; do not infer additional eligibility. Missing, empty, or malformed eligibility is omitted; an absent eligiblePositions means unknown, not ineligible. Historical Yahoo snapshots omit eligiblePositions and both flags. 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, except that a positive whole-number week on ESPN or Yahoo baseball, basketball, or hockey returns the current roster, with snapshot.requested_week and snapshot.note saying the week was ignored. 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. A current Sleeper roster sets limitations.playerStatusAvailable false when it could not confirm the league is live this season and so withheld injury designations; a missing injuryStatus then does not mean the player is healthy. 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.",
          "inputSchema": {
            "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 — 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), passed whole, exactly as returned; Yahoo IDs include a season prefix, like 449.l.12345"
              },
              "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."
              },
              "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)."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "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": {}
                  },
                  "roster": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {},
                      "additionalProperties": {}
                    },
                    "description": "ESPN roster entries"
                  },
                  "teamId": {
                    "type": [
                      "string",
                      "number"
                    ]
                  },
                  "ownerId": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "players": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "isEditable": {
                          "type": "boolean",
                          "description": "Yahoo current-roster player flag for whether Yahoo reports the player as editable. It is not a lock time and does not guarantee a particular add, drop, or lineup move is legal"
                        },
                        "isUndroppable": {
                          "type": "boolean",
                          "description": "Yahoo current-roster player flag. It reports Yahoo's undroppable status for this player, not every condition that may affect a transaction"
                        },
                        "eligiblePositions": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "description": "Yahoo current-roster provider-native eligible position codes, unfiltered and in provider order. Omitted when missing, empty, malformed, or historical; absence means unknown, not ineligible. Honor codes Yahoo explicitly lists, including flex codes; do not infer additional eligibility or move legality. Separate from the assigned slot"
                        }
                      },
                      "additionalProperties": {}
                    },
                    "description": "Yahoo roster entries. eligiblePositions, isUndroppable and isEditable, when present, apply only to a current roster; historical snapshots omit them"
                  },
                  "reserve": {
                    "type": "array",
                    "items": {}
                  },
                  "rosters": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {},
                      "additionalProperties": {}
                    },
                    "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": {}
                  },
                  "starters": {
                    "type": "array",
                    "items": {}
                  },
                  "teamName": {
                    "type": "string"
                  },
                  "ownerName": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "limitations": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  },
                  "playersPoints": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  }
                },
                "description": "Platform envelope. Field availability varies by platform (ESPN, Yahoo, Sleeper); absent fields are not provided by that platform.",
                "additionalProperties": {}
              },
              "success": {
                "type": "boolean"
              }
            },
            "additionalProperties": {}
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_free_agents",
          "title": "Available Players",
          "description": "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 a request above 100, start compact inventory paging with offset 0 and count up to 100, then pass each returned pagination.nextOffset until the requested number is reached, endReached is true, or no nextOffset is returned. Inventory pages are live best-effort, not a point-in-time snapshot: availability can change while pages are fetched, so never promise an exact complete inventory, no duplicates, or no omissions. Inventory pages preserve provider order: ESPN roster rate, Yahoo overall rank, Sleeper trending then rank; Yahoo inventory pages are not globally market-rate sorted. 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, ESPN and Yahoo entries add acquisitionState (\"free_agent\", \"waivers\", or null when the platform cannot determine the subtype), and ESPN waiver rows may also add waiverClearsAt (ISO time). Yahoo waiver rows may instead add waiverDate as a YYYY-MM-DD calendar date with no time or timezone; never turn it into an exact clearance time. Legacy platform fields remain alongside for compatibility on ordinary ranked calls, while inventory pages return compact fields by default. For ESPN football inventory requests asking for scoring or injury details, set include_inventory_details true on every offset page. These are season totals and averages, not weekly projections; an absent injury status means unknown, not healthy. Refer to leagues, teams, and players by name in answers; IDs are for tool calls only and must not be printed. ESPN always marks capabilities.acquisitionState true. Yahoo marks it true only when at least one returned entry has a known state; Yahoo entries still carry acquisitionState null when the flag is false. 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. acquisitionState is the provider-reported subtype, not a guarantee that a specific roster move is legal; do not promise an immediate add from it alone. 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_lea",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "platform",
              "sport",
              "league_id",
              "season_year"
            ],
            "properties": {
              "count": {
                "type": "number",
                "description": "Maximum players in this response (max: 100). For requests up to 100, pass the requested number exactly. For larger inventory requests, use at most 100 per offset page and reduce the final page to the remaining requested rows. Omit only when no number was requested (default: 25)."
              },
              "sport": {
                "enum": [
                  "football",
                  "baseball",
                  "basketball",
                  "hockey"
                ],
                "type": "string",
                "description": "Sport type (e.g., \"football\", \"baseball\")"
              },
              "offset": {
                "type": "integer",
                "maximum": 9007199254740991,
                "minimum": 0,
                "description": "Opt in to inventory paging at this zero-based offset. Omit for the ordinary ranked list; use returned pagination.nextOffset to continue. Inventory pages are live best-effort, not a snapshot."
              },
              "platform": {
                "enum": [
                  "espn",
                  "yahoo",
                  "sleeper"
                ],
                "type": "string",
                "description": "Fantasy platform — \"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), passed whole, exactly as returned; Yahoo IDs include a season prefix, like 449.l.12345"
              },
              "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)."
              },
              "include_inventory_details": {
                "type": "boolean",
                "description": "ESPN football inventory pages (explicit offset) only: include league-scored actual season points and points per game, projected season points (not weekly projections), and recognized injury status. Ignored elsewhere; ordinary ranked ESPN lists already carry these fields. Missing injury status means unknown, not healthy."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "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": {
                      "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"
                        },
                        "waiverDate": {
                          "type": "string",
                          "description": "Yahoo only: waiver clear calendar date in YYYY-MM-DD form, only on waiver rows. Yahoo provides no time or timezone, so do not treat it as an exact clearance instant"
                        },
                        "injuryStatus": {
                          "type": "string",
                          "description": "Current injury designation where the platform reports one. ESPN sends mapped words (e.g. Questionable, Out, IR) and may send Active for a healthy player. Sleeper sends its own code verbatim (e.g. Questionable, Doubtful, Out, IR, PUP, Sus, GTD, DTD) and omits the field when the player has no designation. Translate codes into plain language. Yahoo reports its designation in status instead. Present-day only; it can lag breaking news"
                        },
                        "percentOwned": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "description": "ESPN-wide roster rate or Yahoo-wide market rate; null/absent when the provider reports none"
                        },
                        "seasonPoints": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "description": "ESPN league-scored actual season total; null when unavailable"
                        },
                        "ownershipType": {
                          "anyOf": [
                            {
                              "enum": [
                                "freeagents",
                                "waivers"
                              ],
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Yahoo provider-native ownership subtype (prefer acquisitionState); null when Yahoo omitted it or returned an unsupported value"
                        },
                        "pointsPerGame": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "description": "ESPN league-scored actual season average; null when unavailable"
                        },
                        "injuryBodyPart": {
                          "type": "string",
                          "description": "Sleeper only: the injured body part (e.g. Knee), present only alongside injuryStatus"
                        },
                        "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: \"free_agent\", \"waivers\", or null when the platform could not determine the subtype. ESPN and Yahoo entries carry this field; Yahoo keeps null rows even when capabilities.acquisitionState is false. Sleeper omits it"
                        },
                        "eligiblePositions": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "description": "Positions the player is eligible at. ESPN: lineup-slot labels, which can include flex labels such as UTIL, and an empty array when ESPN lists no usable slot. Sleeper: its fantasy positions, such as [\"RB\", \"WR\"], omitted when Sleeper sends none"
                        },
                        "waiverProcessDate": {
                          "type": [
                            "string",
                            "number",
                            "null"
                          ],
                          "description": "Legacy epoch-ms form of waiverClearsAt"
                        },
                        "projectedSeasonPoints": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "description": "ESPN league-scored projected season total, not a weekly projection; null when unavailable"
                        }
                      },
                      "additionalProperties": {}
                    },
                    "description": "Sleeper available-player entries"
                  },
                  "warning": {
                    "type": "string"
                  },
                  "leagueId": {
                    "type": "string",
                    "description": "Canonical league identity for every platform"
                  },
                  "ordering": {
                    "enum": [
                      "platform_rostered_rate_desc",
                      "platform_overall_rank",
                      "alphabetical",
                      "platform_trending_then_rank"
                    ],
                    "type": "string",
                    "description": "List ranking: \"platform_rostered_rate_desc\" (ESPN provider-side with draft-rank tiebreak; ordinary Yahoo calls re-rank by market rate only the players fetched, Yahoo's best available by overall rank, fetched in pages of 25 until count is covered (rankingPool.scannedPlayers is the pool size and count the number returned), nulls last, name/id tiebreak; when rankingPool.complete is false, lower-ranked but widely owned players, in football often kickers and defenses, can be missing, and a position filter or a larger count widens the check), \"platform_overall_rank\" (Yahoo inventory pages: upstream overall rank, retained for offset continuity), \"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"
                        },
                        "waiverDate": {
                          "type": "string",
                          "description": "Yahoo only: waiver clear calendar date in YYYY-MM-DD form, only on waiver rows. Yahoo provides no time or timezone, so do not treat it as an exact clearance instant"
                        },
                        "injuryStatus": {
                          "type": "string",
                          "description": "Current injury designation where the platform reports one. ESPN sends mapped words (e.g. Questionable, Out, IR) and may send Active for a healthy player. Sleeper sends its own code verbatim (e.g. Questionable, Doubtful, Out, IR, PUP, Sus, GTD, DTD) and omits the field when the player has no designation. Translate codes into plain language. Yahoo reports its designation in status instead. Present-day only; it can lag breaking news"
                        },
                        "percentOwned": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "description": "ESPN-wide roster rate or Yahoo-wide market rate; null/absent when the provider reports none"
                        },
                        "seasonPoints": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "description": "ESPN league-scored actual season total; null when unavailable"
                        },
                        "ownershipType": {
                          "anyOf": [
                            {
                              "enum": [
                                "freeagents",
                                "waivers"
                              ],
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Yahoo provider-native ownership subtype (prefer acquisitionState); null when Yahoo omitted it or returned an unsupported value"
                        },
                        "pointsPerGame": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "description": "ESPN league-scored actual season average; null when unavailable"
                        },
                        "injuryBodyPart": {
                          "type": "string",
                          "description": "Sleeper only: the injured body part (e.g. Knee), present only alongside injuryStatus"
                        },
                        "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: \"free_agent\", \"waivers\", or null when the platform could not determine the subtype. ESPN and Yahoo entries carry this field; Yahoo keeps null rows even when capabilities.acquisitionState is false. Sleeper omits it"
                        },
                        "eligiblePositions": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "description": "Positions the player is eligible at. ESPN: lineup-slot labels, which can include flex labels such as UTIL, and an empty array when ESPN lists no usable slot. Sleeper: its fantasy positions, such as [\"RB\", \"WR\"], omitted when Sleeper sends none"
                        },
                        "waiverProcessDate": {
                          "type": [
                            "string",
                            "number",
                            "null"
                          ],
                          "description": "Legacy epoch-ms form of waiverClearsAt"
                        },
                        "projectedSeasonPoints": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "description": "ESPN league-scored projected season total, not a weekly projection; null when unavailable"
                        }
                      },
                      "additionalProperties": {}
                    },
                    "description": "ESPN/Yahoo available-player entries"
                  },
                  "leagueName": {
                    "type": "string"
                  },
                  "pagination": {
                    "type": "object",
                    "required": [
                      "offset",
                      "returnedRows",
                      "endReached",
                      "consistency"
                    ],
                    "properties": {
                      "offset": {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "description": "Requested inventory-page offset"
                      },
                      "endReached": {
                        "type": "boolean",
                        "description": "Whether this live provider scan reached its current end; not a snapshot-completeness guarantee"
                      },
                      "nextOffset": {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "description": "Use as offset for the next inventory page when present"
                      },
                      "consistency": {
                        "type": "string",
                        "const": "live_best_effort",
                        "description": "Available-player pools can change while pages are fetched"
                      },
                      "returnedRows": {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "description": "Rows actually returned in this page"
                      }
                    },
                    "description": "Present only when offset opts into compact inventory paging",
                    "additionalProperties": {}
                  },
                  "seasonYear": {
                    "type": "number"
                  },
                  "rankingPool": {
                    "type": "object",
                    "required": [
                      "basis",
                      "scannedPlayers",
                      "complete"
                    ],
                    "properties": {
                      "basis": {
                        "type": "string"
                      },
                      "complete": {
                        "type": "boolean"
                      },
                      "scannedPlayers": {
                        "type": "number"
                      }
                    },
                    "description": "Yahoo ranked calls only: the players the market-rate order covers, scannedPlayers fetched by Yahoo overall rank in pages of 25 (basis yahoo_overall_rank), so it can exceed count; complete is true only when Yahoo signaled its list ended inside them",
                    "additionalProperties": {}
                  },
                  "season_year": {
                    "type": "number"
                  },
                  "capabilities": {
                    "type": "object",
                    "required": [
                      "acquisitionState",
                      "rosteredRate",
                      "startedRate"
                    ],
                    "properties": {
                      "startedRate": {
                        "type": "boolean"
                      },
                      "rosteredRate": {
                        "type": "boolean"
                      },
                      "acquisitionState": {
                        "type": "boolean"
                      }
                    },
                    "description": "Capability and response-coverage flags. ESPN acquisitionState is always true; Yahoo acquisitionState is true only when at least one returned entry has a known state, though unknown Yahoo rows still carry null; Sleeper acquisitionState is false and omits the field",
                    "additionalProperties": {}
                  },
                  "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": {}
              },
              "success": {
                "type": "boolean"
              }
            },
            "additionalProperties": {}
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_players",
          "title": "Search Players",
          "description": "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. ESPN football also adds seasonPoints and pointsPerGame when a selected league is available: these are ESPN's actual-season applied values under that league's scoring, never a Flaim calculation. A real 0 is retained. Null means league scoring was unavailable or ESPN did not return an applied value; for unrostered results it can also mean the player was outside ESPN's bounded 100-player availability pool, so use get_free_agents before treating a null as a scoring fact. 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.",
          "inputSchema": {
            "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), passed whole, exactly as returned; Yahoo IDs include a season prefix, like 449.l.12345"
              },
              "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)."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "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"
                          ]
                        },
                        "injuryStatus": {
                          "type": "string",
                          "description": "Sleeper only: current injury designation, Sleeper's own code verbatim (e.g. Questionable, Doubtful, Out, IR, PUP, Sus, GTD, DTD), absent when the player has none; translate codes into plain language. Present-day only; it can lag breaking news"
                        },
                        "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"
                        },
                        "injuryBodyPart": {
                          "type": "string",
                          "description": "Sleeper only: the injured body part (e.g. Knee), present only alongside injuryStatus"
                        },
                        "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"
                          ]
                        },
                        "eligiblePositions": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "description": "Sleeper only: the player's fantasy-eligible positions, such as [\"RB\", \"WR\"]; absent when Sleeper sends none"
                        },
                        "league_owner_name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "market_percent_owned": {
                          "type": [
                            "number",
                            "null"
                          ]
                        }
                      },
                      "additionalProperties": {}
                    }
                  },
                  "warning": {
                    "type": "string"
                  },
                  "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": {}
              },
              "success": {
                "type": "boolean"
              }
            },
            "additionalProperties": {}
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_transactions",
          "title": "League Transactions",
          "description": "Get league transaction activity: adds, drops, waivers, and trades. ESPN football released_since finds explicit DROP items in completed structured events strictly after a caller-supplied timestamp within the existing bounded matchup window; it does not remember checks or notify users. Releases are historical, so check current acquisition state before recommending a pickup. Missing completion times are omitted and reported; the structured source is required. Completed activity is league-wide unless team_id is provided. For \"my moves,\" pass the selected league's user team ID from get_user_session; session context alone does not filter completed activity. Use get_league_info when team and owner names are needed. Rows are newest first and capped by count; before claiming completeness, check window, limitations, warning, truncated (ESPN only), and dropped_invalid_timestamp_count (ESPN and Yahoo). ESPN week selects a matchup period, and its structured source covers failed bids, failed waiver claims with ESPN's failure_reason, withdrawn waiver claims and trade proposals (status canceled, from any team in the league, filed in the period they were made), standalone drops, and the trade lifecycle; a fallback can limit those types. For a historical ESPN pending waiver event, use claim_outcome for an explicitly linked result in the observed history. An unknown outcome does not establish that the claim is still pending. Sleeper week selects a matchup week. Yahoo completed activity defaults to Flaim's rolling 30-day timestamp lookup. For older Yahoo completed activity only, pass both start_date and end_date as inclusive UTC calendar days, covering at most 366 days; use the Yahoo league_id for the requested season, since a range does not cross league seasons, and do not combine it with week, waiver, or pending_trade. Yahoo explicit ranges use one no-count collection response and filter locally, with a 2 MiB bounded read; limitations.upstream_completeness_unverified is always true because Yahoo does not guarantee that response is complete history. Default Yahoo team-filtered requests fetch one page of up to 100 league transactions before filtering; limitations.upstream_bound_reached means older matching rows inside the default window may be missing, and raising count will not recover them. Yahoo type=waiver and type=pending_trade return the authenticated user's own pending items with no timestamp window; team_id only narrows those items. Yahoo pending rows can omit timestamp and date until Yahoo stamps them. Read-only.",
          "inputSchema": {
            "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",
                "maximum": 9007199254740991,
                "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, or, for football before the regular season, week 1 alone, where Sleeper tags preseason activity (window.mode is preseason). Yahoo ignores week on the default recent lookup; an explicit Yahoo start_date/end_date range rejects week."
              },
              "count": {
                "type": "number",
                "description": "Maximum transactions to return, newest first (default: 25, max: 100). Check window and limitations before claiming completeness."
              },
              "sport": {
                "enum": [
                  "football",
                  "baseball",
                  "basketball",
                  "hockey"
                ],
                "type": "string",
                "description": "Sport type (e.g., \"football\", \"baseball\")"
              },
              "team_id": {
                "type": "string",
                "description": "Optional team filter, applied before count and echoed as window.team_id. For \"my moves,\" pass the selected league's user team ID from get_user_session; omit for league-wide activity. ESPN team ID; Sleeper roster ID; Yahoo full team key or session team ID. limitations.team_filter_unattributed_rows reports rows without team_ids that could not match. An ESPN trade without trade_sides may identify only one side, so filtering for the other side can miss it; limitations.team_filter_sideless_trade_rows counts such rows the filter left out. In Yahoo's default recent mode, the filter uses one upstream page of up to 100 and limitations.upstream_bound_reached can mean older matching rows are missing. Explicit Yahoo date ranges instead use the bounded no-count response and always report limitations.upstream_completeness_unverified."
              },
              "end_date": {
                "type": "string",
                "description": "Yahoo completed transactions only: inclusive UTC calendar-day end in YYYY-MM-DD form. Requires start_date and the Yahoo league_id for that season, covers at most 366 days, and cannot be combined with week, waiver, or pending_trade. ESPN and Sleeper reject this selector."
              },
              "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), passed whole, exactly as returned; Yahoo IDs include a season prefix, like 449.l.12345"
              },
              "start_date": {
                "type": "string",
                "description": "Yahoo completed transactions only: inclusive UTC calendar-day start in YYYY-MM-DD form. Requires end_date and the Yahoo league_id for that season, covers at most 366 days, and cannot be combined with week, waiver, or pending_trade. ESPN and Sleeper reject this selector."
              },
              "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)."
              },
              "released_since": {
                "type": "string",
                "description": "League-wide ESPN football only, without type or team_id: caller-supplied last-check ISO timestamp with seconds and UTC offset. Returns explicit DROP items in completed structured events strictly after it within the selected ESPN matchup window, before count. This is not a saved cursor or notification; check current acquisition state before recommending a player. Check window and limitations. This bounded lookup cannot verify complete release history since that time."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "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",
                    "propertyNames": {
                      "type": "string"
                    },
                    "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",
                          "recent_30_days_timestamp",
                          "explicit_date_range",
                          "pending",
                          "preseason"
                        ],
                        "type": "string"
                      },
                      "unit": {
                        "type": "string",
                        "const": "matchup_period"
                      },
                      "weeks": {
                        "type": "array",
                        "items": {
                          "type": "number"
                        }
                      },
                      "team_id": {
                        "type": "string",
                        "description": "The team filter applied, normalized to the ID form rows carry in team_ids"
                      },
                      "end_date": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "Inclusive calendar-day end. Yahoo explicit date ranges use UTC."
                      },
                      "timezone": {
                        "enum": [
                          "America/New_York",
                          "UTC"
                        ],
                        "type": "string"
                      },
                      "start_date": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "Inclusive calendar-day start. Yahoo explicit date ranges use UTC."
                      },
                      "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"
                      },
                      "upstream_fetch_limit": {
                        "type": "number",
                        "description": "Yahoo team-filtered requests only: the upstream page size the team filter was applied to"
                      },
                      "provider_scoring_period_ids": {
                        "type": "array",
                        "items": {
                          "type": "number"
                        }
                      }
                    },
                    "additionalProperties": {}
                  },
                  "warning": {
                    "type": "string"
                  },
                  "platform": {
                    "type": "string"
                  },
                  "league_id": {
                    "type": "string"
                  },
                  "truncated": {
                    "type": "boolean",
                    "description": "ESPN only: true when the count cap cut matching rows or, on the activity_feed source, the time budget or page limit kept Flaim from proving the whole window was read. Yahoo and Sleeper do not send this field; use limitations.possibly_truncated."
                  },
                  "limitations": {
                    "type": "object",
                    "properties": {
                      "possibly_truncated": {
                        "type": "boolean",
                        "description": "More matching rows may exist than were returned. ESPN and Sleeper: the count cap cut matching rows. Yahoo: the count cap cut matching rows, or Yahoo's upstream page was full and (for completed activity) did not reach back to the start of the 30-day window, so older matching rows may not have been fetched. On ESPN, also check top-level truncated, which covers activity-feed coverage as well."
                      },
                      "omitted_unscoped_rows": {
                        "type": "number",
                        "description": "ESPN activity_feed source only: a best-effort count of rows left out because Flaim could not place them in the requested window. Undated rows may be counted here as well as in dropped_invalid_timestamp_count. A nonzero value means rows may have been left out, so a caller should fail closed; the number can over- or under-count and is not a reconciliation, and 0 does not prove completeness."
                      },
                      "upstream_bound_reached": {
                        "type": "boolean",
                        "const": true
                      },
                      "omitted_conflicting_rows": {
                        "type": "number",
                        "description": "ESPN activity_feed source only: a best-effort count of rows left out because their period evidence was contradictory, such as a message and its topic naming different periods, a matchup period and scoring period that disagree, or trade legs in different matchup periods. Undated rows may be counted here as well as in dropped_invalid_timestamp_count. A nonzero value means rows may have been left out, so a caller should fail closed; the number can over- or under-count and is not a reconciliation, and 0 does not prove completeness."
                      },
                      "omitted_unrecognized_rows": {
                        "type": "number",
                        "description": "ESPN structured sources and Yahoo: a best-effort count of rows the provider returned that Flaim could not recognize or place. On ESPN that is an unknown type, a missing scoring period, or a row without an ESPN ID that could not be told apart from another; on Yahoo it is an unrecognized or malformed row (a transaction type Flaim does not recognize, or an entry with no transaction data), counted before the type, team, and timestamp filters. Those rows are missing from transactions. A nonzero value means rows may have been left out, so a caller should fail closed; the number can over- or under-count and is not a reconciliation, and 0 does not prove completeness."
                      },
                      "window_coverage_incomplete": {
                        "type": "boolean",
                        "const": true
                      },
                      "exact_date_bounds_unavailable": {
                        "type": "boolean",
                        "const": true
                      },
                      "structured_details_incomplete": {
                        "type": "boolean",
                        "const": true,
                        "description": "ESPN only: some returned rows lack detail ESPN normally provides, or the team filter may have excluded trades it could not attribute (team_filter_sideless_trade_rows). Rows marked trade_details_unavailable lack their complete player exchange (or, for a proposal, its sender); the activity-feed fallback also lacks failed bids, FAAB amounts, and the trade lifecycle."
                      },
                      "team_filter_unattributed_rows": {
                        "type": "number"
                      },
                      "release_status_unverified_rows": {
                        "type": "number",
                        "description": "ESPN released_since: rows with release items omitted because ESPN did not establish completion status or reported conflicting signals."
                      },
                      "release_timing_unverified_rows": {
                        "type": "number",
                        "description": "ESPN released_since: completed release rows omitted because ESPN supplied no usable completion time. Other invalid timestamps may also be counted separately."
                      },
                      "team_filter_sideless_trade_rows": {
                        "type": "number",
                        "description": "ESPN team-filtered requests only: trade-lifecycle rows that matched the type filter, had no trade_sides, and did not list the requested team. Their team_ids name only the acting team (possibly a commissioner or vetoing team), so the requested team may have been the other party. When present, structured_details_incomplete is set."
                      },
                      "upstream_completeness_unverified": {
                        "type": "boolean",
                        "const": true,
                        "description": "Yahoo explicit date ranges only: Flaim used Yahoo's no-count transaction collection and filtered it locally. Yahoo does not document that response as complete history, so returned rows do not prove complete coverage."
                      },
                      "release_history_completeness_unverified": {
                        "type": "boolean",
                        "const": true,
                        "description": "ESPN released_since only. The bounded matchup window and explicit structured DROP items do not establish complete release history since the requested timestamp."
                      }
                    },
                    "additionalProperties": {}
                  },
                  "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"
                          ],
                          "description": "complete, failed, pending, canceled, or unknown. canceled is ESPN only and means ESPN reported the row as canceled: seen live on waiver claims a team withdrew before the waiver run and on trade proposals their sender took back. Those rows had no process date, so timestamp_source was proposedDate, and they stay in the scoring period they were filed in, which can be weeks old; ESPN served withdrawn claims from every team in the league, not only the user's. On ESPN, unknown means ESPN sent a status Flaim does not map (carried in provider_status) or no status at all."
                        },
                        "faab_bid": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "team_ids": {
                          "type": "array",
                          "items": {
                            "type": [
                              "string",
                              "number"
                            ]
                          },
                          "description": "Teams involved in the row. Do not infer which team acted or proposed a trade from their order."
                        },
                        "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": {}
                                    }
                                  },
                                  "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": {}
                                    }
                                  }
                                },
                                "additionalProperties": {}
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "claim_outcome": {
                          "oneOf": [
                            {
                              "type": "object",
                              "required": [
                                "status"
                              ],
                              "properties": {
                                "status": {
                                  "type": "string",
                                  "const": "unknown"
                                }
                              },
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "required": [
                                "status",
                                "outcome_event_id"
                              ],
                              "properties": {
                                "status": {
                                  "enum": [
                                    "complete",
                                    "failed",
                                    "canceled"
                                  ],
                                  "type": "string"
                                },
                                "outcome_event_id": {
                                  "type": "object",
                                  "required": [
                                    "kind",
                                    "value"
                                  ],
                                  "properties": {
                                    "kind": {
                                      "enum": [
                                        "number",
                                        "string"
                                      ],
                                      "type": "string"
                                    },
                                    "value": {
                                      "type": "string"
                                    }
                                  },
                                  "description": "ESPN structured rows only: provider event ID with its original JSON kind and exact text. A numeric ID and a string ID with the same text are distinct. A generated transaction_id has no provider event ID.",
                                  "additionalProperties": false
                                }
                              },
                              "additionalProperties": false
                            }
                          ],
                          "description": "ESPN structured pending waiver events only. Outcome observed through one exact typed link from a same-team terminal event in the bounded provider history. unknown means evidence was absent, unproven, or conflicting. The row’s status is the original event status. Neither pending nor unknown establishes current waiver queue membership."
                        },
                        "espn_event_id": {
                          "type": "object",
                          "required": [
                            "kind",
                            "value"
                          ],
                          "properties": {
                            "kind": {
                              "enum": [
                                "number",
                                "string"
                              ],
                              "type": "string"
                            },
                            "value": {
                              "type": "string"
                            }
                          },
                          "description": "ESPN structured rows only: provider event ID with its original JSON kind and exact text. A numeric ID and a string ID with the same text are distinct. A generated transaction_id has no provider event ID.",
                          "additionalProperties": false
                        },
                        "players_added": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "id"
                            ],
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "name": {
                                "type": "string"
                              },
                              "team": {
                                "type": "string"
                              },
                              "position": {
                                "type": "string"
                              }
                            },
                            "additionalProperties": {}
                          }
                        },
                        "failure_reason": {
                          "type": "string",
                          "description": "ESPN structured rows with status failed: ESPN's own reason code for why the claim did not go through, such as FAILED_POSITIONLIMIT, FAILED_ROSTERLIMIT, FAILED_INVALIDPLAYERSOURCE, or FAILED_PLAYERALREADYDROPPED. ESPN reports it on waiver rows as well as failed_bid rows. Absent when the row did not fail or ESPN gave no reason."
                        },
                        "transaction_id": {
                          "type": "string",
                          "description": "Row ID. On ESPN it depends on source: structured rows (mTransactions2 and mTransactions2_with_activity_trade_details) use ESPN's transaction ID, while activity_feed rows use activity message or topic IDs, so the same transaction has a different ID when source changes. When ESPN supplies no ID, Flaim generates a key (on structured rows it starts with \"mtx-\"); a generated key is not an ESPN ID and is not guaranteed to be unique or stable across calls. Do not match ESPN rows across responses with different source values, or by a generated key, using this ID."
                        },
                        "players_dropped": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "id"
                            ],
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "name": {
                                "type": "string"
                              },
                              "team": {
                                "type": "string"
                              },
                              "position": {
                                "type": "string"
                              }
                            },
                            "additionalProperties": {}
                          }
                        },
                        "provider_status": {
                          "type": "string",
                          "description": "ESPN structured rows with status unknown: the status string ESPN sent, verbatim, when Flaim has no mapping for it. Absent when the status mapped or ESPN sent none (seen on some completed trade rows)."
                        },
                        "waiver_priority": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "timestamp_source": {
                          "enum": [
                            "processDate",
                            "proposedDate",
                            "activity"
                          ],
                          "type": "string",
                          "description": "ESPN only: where timestamp came from. processDate is when ESPN processed a structured row; proposedDate is a structured row's proposal time, used when it has no valid processDate; activity is the activity feed's message or topic date."
                        },
                        "proposed_by_team_id": {
                          "type": "string",
                          "description": "ESPN trade_proposal rows only: the team ID that sent the proposal. Present only when trade_sides are complete, and then always one of the row's team_ids. When this field is present and trade_details_unavailable is absent, a team sent the proposal if this matches its ID, is a recipient if it is in team_ids but does not match (trade_sides shows who receives which players), and is not involved if it is not in team_ids. When trade_details_unavailable is set, team_ids may be missing the other party, so a team's absence from team_ids does not mean the proposal is between other teams, and the direction is unknown."
                        },
                        "espn_related_event_id": {
                          "type": "object",
                          "required": [
                            "kind",
                            "value"
                          ],
                          "properties": {
                            "kind": {
                              "enum": [
                                "number",
                                "string"
                              ],
                              "type": "string"
                            },
                            "value": {
                              "type": "string"
                            }
                          },
                          "description": "ESPN structured rows only: exact typed event ID named by ESPN’s relationship pointer. The referenced event may be outside the available history or returned row count.",
                          "additionalProperties": false
                        },
                        "trade_details_unavailable": {
                          "type": "boolean",
                          "const": true,
                          "description": "ESPN trade, proposal, decline, veto, and uphold rows only: the complete player exchange, and for a proposal its sender, could not be determined from ESPN's data. The row is real, but its trade cannot be described in full; any players_added or players_dropped entries may be partial and are not the whole trade."
                        },
                        "provider_scoring_period_id": {
                          "type": "number"
                        }
                      },
                      "additionalProperties": {}
                    }
                  },
                  "dropped_invalid_timestamp_count": {
                    "type": "number",
                    "description": "ESPN and Yahoo: a best-effort count of rows left out because the provider gave no valid date, counted before the type and team filters. A nonzero value means rows may have been left out, so a caller should fail closed; the number can over- or under-count and is not a reconciliation, and 0 does not prove completeness. On ESPN these rows may also be counted in limitations.omitted_unscoped_rows or omitted_conflicting_rows. Yahoo reports it on completed-activity requests; type=waiver and type=pending_trade return undated pending rows without timestamp and date instead and report 0. Sleeper does not send this field."
                  }
                },
                "description": "Platform envelope. Field availability varies by platform (ESPN, Yahoo, Sleeper); absent fields are not provided by that platform.",
                "additionalProperties": {}
              },
              "success": {
                "type": "boolean"
              }
            },
            "additionalProperties": {}
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "open_flaim_home",
          "title": "My Leagues",
          "description": "Opens the Flaim home: a full-page view of the user's connected current-season fantasy leagues (sport, league name, and team name) with starter questions. It is a UI entrypoint the user opens from the ChatGPT sidebar, hidden from the model on hosts that support MCP Apps. For league questions or the user's league list, use get_user_session instead. Read-only: it reads the same Flaim league records and saved defaults as get_user_session, and the asks the user kept, plus which Flaim home features are turned on for them, for the page to show (the asks are not part of this result's text), and changes nothing.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {}
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "success",
              "leagues"
            ],
            "properties": {
              "leagues": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "platform",
                    "sport",
                    "leagueId",
                    "seasonYear",
                    "season",
                    "leagueName",
                    "teamName",
                    "teamId",
                    "isDefault"
                  ],
                  "properties": {
                    "sport": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "season": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "teamId": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "leagueId": {
                      "type": "string"
                    },
                    "platform": {
                      "type": "string"
                    },
                    "teamName": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "isDefault": {
                      "type": "boolean"
                    },
                    "leagueName": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "seasonYear": {
                      "type": [
                        "number",
                        "null"
                      ]
                    }
                  },
                  "additionalProperties": {}
                }
              },
              "success": {
                "type": "boolean"
              },
              "timezone": {
                "type": "string"
              },
              "unavailablePlatforms": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "additionalProperties": {}
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "open_flaim_home_tab",
          "title": "My Leagues in Chat",
          "description": "Opens the Flaim home as a tab in the current chat: the user's connected current-season fantasy leagues, each team's matchup, roster, standings, and moves, and starter questions, which post into that chat when tapped. It is a UI entrypoint the user opens from a chat, hidden from the model on hosts that support MCP Apps. For league questions or the user's league list, use get_user_session instead. Read-only: it reads the same Flaim league records and saved defaults as get_user_session, and the asks the user kept, plus which Flaim home features are turned on for them, for the page to show (the asks are not part of this result's text), and changes nothing.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "prefetch": {
                "type": "boolean",
                "description": "Set only by the Flaim page when it prepares the home in the background before the user opens it, so the call is counted apart from a home open. Leave it out."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "success",
              "leagues"
            ],
            "properties": {
              "leagues": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "platform",
                    "sport",
                    "leagueId",
                    "seasonYear",
                    "season",
                    "leagueName",
                    "teamName",
                    "teamId",
                    "isDefault"
                  ],
                  "properties": {
                    "sport": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "season": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "teamId": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "leagueId": {
                      "type": "string"
                    },
                    "platform": {
                      "type": "string"
                    },
                    "teamName": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "isDefault": {
                      "type": "boolean"
                    },
                    "leagueName": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "seasonYear": {
                      "type": [
                        "number",
                        "null"
                      ]
                    }
                  },
                  "additionalProperties": {}
                }
              },
              "success": {
                "type": "boolean"
              },
              "timezone": {
                "type": "string"
              },
              "unavailablePlatforms": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "additionalProperties": {}
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "save_flaim_home_ask",
          "title": "Keep an Ask",
          "description": "Saves one of the user's kept asks (\"Your asks\") from the Flaim home page: adds a new ask, or edits the name and wording of one the user already kept, on the user's Flaim account. It is called by the Flaim home page and hidden from the model on hosts that support MCP Apps. It changes only the user's saved asks, never league data or anything on ESPN, Yahoo, or Sleeper.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "label",
              "text"
            ],
            "properties": {
              "id": {
                "type": "string",
                "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
                "description": "The kept ask to edit. Leave it out to add a new ask."
              },
              "text": {
                "type": "string",
                "maxLength": 600,
                "minLength": 1,
                "description": "The ask as the user wants it sent, without the \"Using Flaim, \" lead-in the page adds back."
              },
              "label": {
                "type": "string",
                "maxLength": 80,
                "minLength": 1,
                "description": "The name the ask shows under in Your asks."
              },
              "source_key": {
                "type": "string",
                "maxLength": 200,
                "minLength": 1,
                "description": "The Try asking prompt this ask replaces, as prompt:<n>, when it replaces one. Ignored on an edit."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "success",
              "max"
            ],
            "properties": {
              "max": {
                "type": "number"
              },
              "code": {
                "enum": [
                  "ASKS_FULL",
                  "ASK_NOT_FOUND",
                  "INVALID",
                  "UNAVAILABLE"
                ],
                "type": "string"
              },
              "count": {
                "type": "number"
              },
              "success": {
                "type": "boolean"
              }
            },
            "additionalProperties": {}
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "delete_flaim_home_ask",
          "title": "Remove a Kept Ask",
          "description": "Deletes one of the user's kept asks (\"Your asks\") from their Flaim account, when the user removes it in the Flaim home page. It is called by the Flaim home page and hidden from the model on hosts that support MCP Apps. Deleting an ask that is already gone changes nothing.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
                "description": "The kept ask to delete."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "success",
              "max"
            ],
            "properties": {
              "max": {
                "type": "number"
              },
              "code": {
                "enum": [
                  "ASKS_FULL",
                  "ASK_NOT_FOUND",
                  "INVALID",
                  "UNAVAILABLE"
                ],
                "type": "string"
              },
              "count": {
                "type": "number"
              },
              "success": {
                "type": "boolean"
              }
            },
            "additionalProperties": {}
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "reorder_flaim_home_asks",
          "title": "Reorder Kept Asks",
          "description": "Puts the user's kept asks (\"Your asks\") in a new order on their Flaim account, when the user moves one up or down in the Flaim home page. It is called by the Flaim home page and hidden from the model on hosts that support MCP Apps. It takes every kept ask's id, in the new order, and changes nothing but the order.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "ids"
            ],
            "properties": {
              "ids": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
                },
                "maxItems": 12,
                "minItems": 1,
                "description": "Every one of the user's kept asks, by id, in the new order."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "success",
              "max"
            ],
            "properties": {
              "max": {
                "type": "number"
              },
              "code": {
                "enum": [
                  "ORDER_MISMATCH",
                  "INVALID",
                  "UNAVAILABLE"
                ],
                "type": "string"
              },
              "count": {
                "type": "number"
              },
              "success": {
                "type": "boolean"
              }
            },
            "additionalProperties": {}
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_flaim_home_league",
          "title": "League Details",
          "description": "Loads sections of one league for the Flaim home page: standings, the user's current roster, the user's matchup for the current period, or the league's latest transactions, each as a small summary, plus the fuller matchup (both lineups or category rows, where the platform reports them) and full roster its team card shows. It is called by the Flaim home page and hidden from the model on hosts that support MCP Apps; for analysis use get_standings, get_roster, get_matchups, and get_transactions instead. Read-only: it reads from ESPN, Yahoo, or Sleeper through the same paths as those tools (football also reads ESPN's public NFL schedule for bye weeks and kickoff times), and results may be cached for a few minutes.",
          "inputSchema": {
            "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"
              },
              "section": {
                "enum": [
                  "standings",
                  "roster",
                  "matchup",
                  "transactions",
                  "matchupDetail",
                  "rosterFull"
                ],
                "type": "string",
                "description": "One section to load. Give this or sections."
              },
              "team_id": {
                "type": "string",
                "description": "The user's team ID in this league, from the Flaim home. Required for the roster, rosterFull, and matchupDetail sections."
              },
              "platform": {
                "enum": [
                  "espn",
                  "yahoo",
                  "sleeper"
                ],
                "type": "string",
                "description": "Fantasy platform"
              },
              "sections": {
                "type": "array",
                "items": {
                  "enum": [
                    "standings",
                    "roster",
                    "matchup",
                    "transactions",
                    "matchupDetail",
                    "rosterFull"
                  ],
                  "type": "string"
                },
                "maxItems": 6,
                "minItems": 1,
                "description": "Several sections to load in one call; the result maps each to its summary. Give this or section."
              },
              "league_id": {
                "type": "string",
                "description": "League ID from the Flaim home"
              },
              "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)."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "success"
            ],
            "properties": {
              "section": {
                "enum": [
                  "standings",
                  "roster",
                  "matchup",
                  "transactions",
                  "matchupDetail",
                  "rosterFull"
                ],
                "type": "string"
              },
              "success": {
                "type": "boolean"
              },
              "sections": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {
                  "type": "object",
                  "required": [
                    "success"
                  ],
                  "properties": {
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "additionalProperties": {}
                }
              }
            },
            "additionalProperties": {}
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        }
      ],
      "tools_omitted": 0,
      "resources": [
        {
          "name": "user-session-widget",
          "uri": "ui://widget/user-session.html",
          "mimeType": "text/html;profile=mcp-app"
        },
        {
          "name": "user-session-widget-v2",
          "uri": "ui://widget/user-session-v2.html",
          "mimeType": "text/html;profile=mcp-app"
        },
        {
          "name": "user-session-widget-v3",
          "uri": "ui://widget/user-session-v3.html",
          "mimeType": "text/html;profile=mcp-app"
        },
        {
          "name": "user-session-widget-v4",
          "uri": "ui://widget/user-session-v4.html",
          "mimeType": "text/html;profile=mcp-app"
        },
        {
          "name": "user-session-widget-v5",
          "uri": "ui://widget/user-session-v5.html",
          "mimeType": "text/html;profile=mcp-app"
        },
        {
          "name": "flaim-home",
          "uri": "ui://widget/flaim-home-v1.html",
          "mimeType": "text/html;profile=mcp-app"
        },
        {
          "name": "flaim-home-chat",
          "uri": "ui://widget/flaim-home-chat-v1.html",
          "mimeType": "text/html;profile=mcp-app"
        },
        {
          "name": "user-session-widget-v6",
          "uri": "ui://widget/user-session-v6.html",
          "mimeType": "text/html;profile=mcp-app"
        }
      ],
      "prompts": []
    },
    "instructions": "Flaim reads fantasy league data and writes only to Flaim, never ESPN, Yahoo, or Sleeper state: refresh_leagues updates connected-league records; the Flaim home saves or deletes the user's own asks. Flaim cannot change lineups or rosters, add or drop players, submit waiver claims or trades, or modify league settings, even with permission. Answer capability, permission, or generic setup how-to questions like \"Can Flaim change my lineup?\" directly and tool-free; do not call get_user_session or another tool.\n\nUse Flaim tools only for questions that need the user's connected fantasy league data or an explicit league refresh. Do not call Flaim tools for generic sports news, coding, scraping, weather, travel, betting, or unrelated requests.\n\nAnswer rules:\n- Setup: users connect and manage leagues at https://flaim.app/leagues. ESPN connects through the Flaim Chrome extension (signed in to ESPN in the same Chrome profile), Yahoo through Yahoo sign-in on that page, and Sleeper by username, with no password. Never ask the user for a password, cookie, or token.\n- Advice on a current decision in the user's league (start/sit, pickups, trades, keepers, matchups): use league data from Flaim tools first, then current web reporting on player status, role, and recent stats, then expert consensus; your own judgment comes last. Never state a player's current team, role, or health from memory. If web research is unavailable, say the advice rests on league data alone.\n- Refer to leagues, teams, and players by name, including when asking which league the user means. Pass internal IDs to tools, but never show them to the user.\n\nTool paths:\n1. Capability, permission, or generic setup how-to question: answer tool-free using the boundary and setup facts above.\n2. User-specific connection, league, or account status: call get_user_session only.\n3. Explicit refresh request: call refresh_leagues, then call get_user_session after success to show the updated leagues. Do not use refresh_leagues for provider changes.\n4. Selected-league analysis: call get_user_session 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 get_user_session merely because a new user message arrived. With session context established, call get_league_info once per league the first time this chat works with that league, before the requested league-specific data tool, then reuse it for later questions about that league. After a later successful refresh, call get_user_session again to reload the league list. Also 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. Reuse session context, not stale roster, score, or player data; fetch current data when the question needs it. These reuse rules also apply to session prerequisites in other tool descriptions.\n\nScope rules:\n- Use get_draft for completed draft results and draft-pick ownership. Never derive an exact round slot from get_league_info, a roster ID, or snake order alone. Label provider_order_derived placements as projected. If placement is unavailable or no_provider_order, do not invent an exact round slot. changed_picks_only is not a complete pick inventory.\n- In get_free_agents, \"available\" means available in the selected fantasy league. Pass a requested count exactly from 1 through 100. For more than 100, start compact inventory paging with offset 0 and count up to 100, then pass pagination.nextOffset until enough rows are returned, endReached is true, or no nextOffset is returned. Inventory pages are live best-effort rather than a point-in-time snapshot: never promise an exact complete inventory, no duplicates, or no omissions while availability can change between pages. In inventory mode, ESPN s"
  },
  "changes": {
    "total": 1,
    "latest": [
      {
        "observed_at": "2026-11-22T07:00:01.662Z",
        "from_sha": "ce3d5dc1661a646794c31285e26c26274500eea273a68cb5887cb34eedf5f6e7",
        "to_sha": "b9ec73d4505c5095c505b2f8d1229d20031ccfc839414ac82462347d142af7ea",
        "summary": {
          "tool_added": 1,
          "tool_changed": 10
        },
        "diff": [
          {
            "op": "changed",
            "kind": "tool",
            "name": "get_league_info",
            "path": "/inputSchema/properties/league_id/description",
            "after": "League ID (get from get_user_session), passed whole, exactly as returned; Yahoo IDs include a season prefix, like 449.l.12345",
            "before": "League ID (get from get_user_session)"
          },
          {
            "op": "changed",
            "kind": "tool",
            "name": "get_draft",
            "path": "/inputSchema/properties/league_id/description",
            "after": "League ID (get from get_user_session), passed whole, exactly as returned; Yahoo IDs include a season prefix, like 449.l.12345",
            "before": "League ID (get from get_user_session)"
          },
          {
            "op": "changed",
            "kind": "tool",
            "name": "get_standings",
            "path": "/inputSchema/properties/league_id/description",
            "after": "League ID (get from get_user_session), passed whole, exactly as returned; Yahoo IDs include a season prefix, like 449.l.12345",
            "before": "League ID (get from get_user_session)"
          },
          {
            "op": "changed",
            "kind": "tool",
            "name": "get_matchups",
            "path": "/inputSchema/properties/league_id/description",
            "after": "League ID (get from get_user_session), passed whole, exactly as returned; Yahoo IDs include a season prefix, like 449.l.12345",
            "before": "League ID (get from get_user_session)"
          },
          {
            "op": "changed",
            "kind": "tool",
            "name": "get_roster",
            "path": "/description",
            "after": {
              "chars": 3328,
              "truncated": true
            },
            "before": {
              "chars": 3134,
              "truncated": true
            }
          },
          {
            "op": "changed",
            "kind": "tool",
            "name": "get_roster",
            "path": "/inputSchema/properties/league_id/description",
            "after": "League ID (get from get_user_session), passed whole, exactly as returned; Yahoo IDs include a season prefix, like 449.l.12345",
            "before": "League ID (get from get_user_session)"
          },
          {
            "op": "changed",
            "kind": "tool",
            "name": "get_free_agents",
            "path": "/inputSchema/properties/league_id/description",
            "after": "League ID (get from get_user_session), passed whole, exactly as returned; Yahoo IDs include a season prefix, like 449.l.12345",
            "before": "League ID (get from get_user_session)"
          },
          {
            "op": "changed",
            "kind": "tool",
            "name": "get_free_agents",
            "path": "/outputSchema/properties/data/properties/ordering/description",
            "after": "List ranking: \"platform_rostered_rate_desc\" (ESPN provider-side with draft-rank tiebreak; ordinary Yahoo calls re-rank by market rate only the players fetched, Yahoo's best available by overall rank, fetched in pages of 25 until count is covered (rankingPool.scannedPlayers is the pool size and count the number returned), nulls last, name/id tiebreak; when rankingPool.complete is false, lower-ranked but widely owned players, in football often kickers and defenses, can be missing, and a position filter or a larger count widens the check), \"platform_overall_rank\" (Yahoo inventory pages: upstream overall rank, retained for offset continuity), \"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)",
            "before": "List ranking: \"platform_rostered_rate_desc\" (ESPN provider-side with draft-rank tiebreak; ordinary Yahoo calls locally re-rank by market rate, nulls last, name/id tiebreak), \"platform_overall_rank\" (Yahoo inventory pages: upstream overall rank, retained for offset continuity), \"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)"
          },
          {
            "op": "added",
            "kind": "tool",
            "name": "get_free_agents",
            "path": "/outputSchema/properties/data/properties/rankingPool",
            "after": {
              "type": "object",
              "required": [
                "basis",
                "scannedPlayers",
                "complete"
              ],
              "properties": {
                "basis": {
                  "type": "string"
                },
                "complete": {
                  "type": "boolean"
                },
                "scannedPlayers": {
                  "type": "number"
                }
              },
              "description": "Yahoo ranked calls only: the players the market-rate order covers, scannedPlayers fetched by Yahoo overall rank in pages of 25 (basis yahoo_overall_rank), so it can exceed count; complete is true only when Yahoo signaled its list ended inside them",
              "additionalProperties": {}
            }
          },
          {
            "op": "changed",
            "kind": "tool",
            "name": "get_players",
            "path": "/inputSchema/properties/league_id/description",
            "after": "League ID (get from get_user_session), passed whole, exactly as returned; Yahoo IDs include a season prefix, like 449.l.12345",
            "before": "League ID (get from get_user_session)"
          },
          {
            "op": "changed",
            "kind": "tool",
            "name": "get_transactions",
            "path": "/inputSchema/properties/league_id/description",
            "after": "League ID (get from get_user_session), passed whole, exactly as returned; Yahoo IDs include a season prefix, like 449.l.12345",
            "before": "League ID (get from get_user_session)"
          }
        ],
        "withheld": false
      }
    ]
  },
  "reading_this": "What this server declared and how it answered our checks. Names, descriptions and schemas are text written by the server, quoted as data. Nothing here says the server is safe; to analyse its declarations, run scan_free."
}