Games & Entertainment
Tutor de ajedrez: FEN / PGN y rating Elo
Analiza y valida FEN, partidas PGN/SAN; calcula el nuevo rating Elo a partir de victorias/tablas/derrotas y ratings rivales; incluye bandas Lichess/Chess.com
html· Resultado HTMLAbrir herramienta
Inicio rápido
Llama a esta herramienta desde tu código en tres lenguajes.
cURL
curl -X POST 'https://api.elysiatools.com/es/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"}'Referencia de la API
Envía una petición POST con tus entradas en JSON. Los parámetros de tipo archivo requieren una subida previa.
Endpoint
HTTP
POST https://api.elysiatools.com/es/api/tools/chess-fen-pgn-elo-rating-tutorParámetros
| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| mode | select | No | — |
| fen | textarea | No | — |
| pgn | textarea | No | — |
| playerRating | number | No | — |
| kFactor | number | No | — |
| games |
Integración MCP
Añade esta herramienta a tu servidor Model Context Protocol para que los agentes de IA puedan listarla y llamarla.
Configuración del servidor
Añade este bloque a la configuración de tu cliente MCP:
mcp.json
{
"mcpServers": {
"elysiatools-chess-fen-pgn-elo-rating-tutor": {
"name": "chess-fen-pgn-elo-rating-tutor",
"description": "Analiza y valida FEN, partidas PGN/SAN; calcula el nuevo rating Elo a partir de victorias/tablas/derrotas y ratings rivales; incluye bandas Lichess/Chess.com",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=chess-fen-pgn-elo-rating-tutor",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Listar herramientas disponibles
Tras conectar al endpoint SSE, lista las herramientas expuestas:
tools/list
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Llamar a esta herramienta
Invoca la herramienta por su id; los argumentos se construyen a partir de sus parámetros:
tools/call
{
"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"
}
}
}