Games & Entertainment
Analyse et valide FEN, parties PGN/SAN ; calcule le nouveau rating Elo à partir de victoires/nulles/défaites et ratings adverses ; bandes Lichess/Chess.com
Appelez cet outil depuis votre code en trois langages.
curl -X POST 'https://api.elysiatools.com/fr/api/tools/chess-fen-pgn-elo-rating-tutor' \
-H 'Content-Type: application/json' \
-d '{"mode":"fen","fen":"rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1","pgn":"PGN movetext, e.g.\n1. e4 e5 2. Nf3 Nc6 3. Bb5 a6 4. Ba4 Nf6 5. O-O Be7 1/2-1/2","playerRating":0,"kFactor":32,"games":"One per line: opponentRating then result.\n1609 loss\n1477 win\n1388 win\n1586 win\n1720 loss"}'Envoyez une requête POST avec vos entrées en JSON. Les paramètres de type fichier nécessitent un upload préalable.
POST https://api.elysiatools.com/fr/api/tools/chess-fen-pgn-elo-rating-tutor| Nom | Type | Requis | Description |
|---|---|---|---|
| mode | select | Non | — |
| fen | textarea | Non | — |
| pgn | textarea | Non | — |
| playerRating | number | Non | — |
| kFactor | number | Non | — |
| games |
Ajoutez cet outil à votre serveur Model Context Protocol pour que les agents IA puissent le lister et l'appeler.
Ajoutez ce bloc à la configuration de votre client MCP :
{
"mcpServers": {
"elysiatools-chess-fen-pgn-elo-rating-tutor": {
"name": "chess-fen-pgn-elo-rating-tutor",
"description": "Analyse et valide FEN, parties PGN/SAN ; calcule le nouveau rating Elo à partir de victoires/nulles/défaites et ratings adverses ; bandes Lichess/Chess.com",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=chess-fen-pgn-elo-rating-tutor",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Après connexion au point d'accès SSE, listez les outils exposés :
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Appelez l'outil par son id ; les arguments sont construits à partir de ses paramètres :
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "chess-fen-pgn-elo-rating-tutor",
"arguments": {
"mode": "fen",
"fen": "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1",
"pgn": "PGN movetext, e.g.\n1. e4 e5 2. Nf3 Nc6 3. Bb5 a6 4. Ba4 Nf6 5. O-O Be7 1/2-1/2",
"playerRating": 0,
"kFactor": 32,
"games": "One per line: opponentRating then result.\n1609 loss\n1477 win\n1388 win\n1586 win\n1720 loss"
}
}
}| textarea |
| Non |
| — |
Résultat HTML
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Des questions ou un problème ? Contactez [email protected]