Leaderboard Work Board Persistence
Created: 2/14/2026
This tool provides a native persistence layer for leaderboards using Work Boards as the backing store. It treats a specific board and column as the leaderboard database, storing player scores as cards, reading them back, and sorting them by numeric score in descending order. It accepts boardId, an operation enum (log_score, fetch_leaderboard, reset_board), and when operation=log_score it also uses playerId, score, and optional metadata as a JSON string for extra context. The implementation must handle JSON parsing of card bodies and metadata robustly and avoid malformed board paths by constructing identifiers only from provided inputs. The tool must transform these inputs into a response that strictly validates against the system-provided structured output schema (auto-produced and referenced via schemaArtifactId), with no extra fields, correct types, and adherence to any enum or range constraints.