Games & Entertainment
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
Llama a esta herramienta desde tu código en tres lenguajes.
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"}'Envía una petición POST con tus entradas en JSON. Los parámetros de tipo archivo requieren una subida previa.
POST https://api.elysiatools.com/es/api/tools/chess-fen-pgn-elo-rating-tutor| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| mode | select | No | — |
| fen | textarea | No | — |
| pgn | textarea | No | — |
| playerRating | number | No | — |
| kFactor | number | No | — |
| games |
Añade esta herramienta a tu servidor Model Context Protocol para que los agentes de IA puedan listarla y llamarla.
Añade este bloque a la configuración de tu cliente MCP:
{
"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"
}
}
}Tras conectar al endpoint SSE, lista las herramientas expuestas:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoca la herramienta por su id; los argumentos se construyen a partir de sus parámetros:
{
"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 |
| No |
| — |
Resultado HTML
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}¿Dudas o problemas? Contacta con [email protected]