Skip to main content
Glama

chesscom-mxcp

analyze_player_rating_trend.sql•586 B
-- Player rating trends analysis -- analyze_player_rating_trend: Analyze rating trends for a player SELECT game_type, MIN(rating) as min_rating, MAX(rating) as max_rating, AVG(rating) as avg_rating, COUNT(*) as data_points, MAX(recorded_at) - MIN(recorded_at) as time_span_days, -- Calculate trend using linear regression approximation CORR(EXTRACT(EPOCH FROM recorded_at), rating) as trend_coefficient FROM rating_history WHERE username = $username AND recorded_at >= CURRENT_DATE - INTERVAL ($days || ' days') GROUP BY game_type ORDER BY game_type;

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/datYori/chesscom-mxcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server