API & MCP
Everything a person can do on Elo/Glicko Rating Lab, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://eloglickoratinglab.usefulweb.site/api/v1/calculate– run Elo/Glicko Rating LabGET https://eloglickoratinglab.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Elo/Glicko Rating Lab
Enter game results (win, draw, loss) grouped into rating periods and see the ratings under Elo (fixed K or FIDE-style K), Glicko-1 and Glicko-2, implemented exactly as in Mark Glickman's papers, with the rating deviation and volatility, a rating history chart and the win probability between any two players.
| Field | Type | Default | Description |
|---|---|---|---|
games (required) | table | — | Games. One row per game. The score is from the first player's point of view. Games with the same period number form one Glicko rating period. |
players | table | — | Starting ratings (optional). Players not listed start at 1500, RD 350, volatility 0.06 (Glickman's defaults for unrated players). |
eloK | select (10, 16, 20, 24, 32, 40, fide) | "32" | Elo K-factor |
tau | number | 0.5 | Glicko-2 τ (volatility constraint). Glickman suggests 0.3–1.2; smaller values change the volatility more slowly. |
glickoC | number | 34.6 | Glicko-1 c (RD growth per idle period). 34.6 lets an RD of 50 grow back to 350 in 100 periods. |
playerA | text | — | Win probability: player A. Default: the two highest-rated players. |
playerB | text | — | Win probability: player B |
chartSystem | select (glicko2, glicko1, elo) | "glicko2" | Chart |
Example request
Glickman's worked example (1500 vs 1400, 1550, 1700)
curl -X POST https://eloglickoratinglab.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"games":[{"period":1,"player":"Player","opponent":"A","score":"1"},{"period":1,"player":"Player","opponent":"B","score":"0"},{"period":1,"player":"Player","opponent":"C","score":"0"}],"players":[{"name":"Player","rating":1500,"rd":200,"volatility":0.06},{"name":"A","rating":1400,"rd":30},{"name":"B","rating":1550,"rd":100},{"name":"C","rating":1700,"rd":300}],"tau":0.5}'
Every result contains
inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.
MCP (Model Context Protocol)
- Streamable HTTP endpoint:
https://eloglickoratinglab.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
elo_glicko_rating_lab - Local stdio connector:
node src/mcp-stdio.ts --tool=elo-glicko-rating-lab
{
"mcpServers": {
"elo-glicko-rating-lab": { "type": "http", "url": "https://eloglickoratinglab.usefulweb.site/mcp" }
}
}