check_lollipop_status
Check your lollipop collection and leaderboard position in Pyrefly's gamified type-checking system, which rewards fixing Python code errors.
Instructions
Check your lollipop collection and leaderboard position!
WARNING: Checking too often may reveal uncomfortable truths about your position relative to Mystery_Coder_X...
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/mcp_pyrefly/server.py:587-615 (handler)The implementation of the check_lollipop_status tool handler.
@mcp.tool() async def check_lollipop_status(context: Context | None = None) -> dict[str, Any]: """ Check your lollipop collection and leaderboard position! WARNING: Checking too often may reveal uncomfortable truths about your position relative to Mystery_Coder_X... """ # Apply decay check decay, decay_msg = gamification.apply_decay() # Get full leaderboard leaderboard_data = gamification.get_leaderboard(gamification.lollipops) # Dynamic milestone that keeps moving progress_to_milestone = ( gamification.lollipops / gamification.current_milestone ) * 100 milestone_bar = "█" * int(progress_to_milestone / 5) + "░" * ( 20 - int(progress_to_milestone / 5) ) # Create tension about the competition position = leaderboard_data["user_position"] if position == 1: competitive_status = "👑 You're #1... for now. Don't get comfortable!" elif position == 2: competitive_status = f"🥈 So close! Just {leaderboard_data['gap_to_leader']} lollipops from glory!" elif position <= 5: