Document Tools
Genera un PDF imprimible de entrenamiento desde JSON o CSV con tablas, casillas de progreso y QR opcionales
Llama a esta herramienta desde tu código en tres lenguajes.
# 1) Upload each file first → returns { filePath }
curl -X POST 'https://api.elysiatools.com/upload/fitness-workout-pdf-generator' \
-F 'file=@/path/to/workoutFile.ext'
# 2) Call the tool with the returned filePath values
curl -X POST 'https://api.elysiatools.com/es/api/tools/fitness-workout-pdf-generator' \
-F 'workoutData=[
{
"day": "Push Day",
"exercise": "Bench Press",
"sets": "4",
"reps": "8",
"rest": "90s",
"notes": "Pause on chest",
"videoUrl": "https://example.com/bench"
},
{
"day": "Push Day",
"exercise": "Incline Dumbbell Press",
"sets": "3",
"reps": "10",
"rest": "75s",
"notes": "Controlled eccentric",
"videoUrl": "https://example.com/incline"
},
{
"day": "Pull Day",
"exercise": "Pull-Up",
"sets": "4",
"reps": "AMRAP",
"rest": "90s",
"notes": "Full hang each rep",
"videoUrl": "https://example.com/pullup"
}
]' \
-F 'workoutFile=' \
-F 'programTitle=Client Strength Block' \
-F 'subtitle=Week 1-4 printable training sheet' \
-F 'includeProgressBoxes=true' \
-F 'includeQrCodes=true' \
-F 'pageSize=A4'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/fitness-workout-pdf-generator| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| workoutData | textarea | No | — |
| workoutFile | filesubida requerida | No | — |
| programTitle | text | No | — |
| subtitle | text | No | — |
| includeProgressBoxes | checkbox | No | — |
| includeQrCodes | checkbox | No | — |
| pageSize | select | No | — |
Resultado de archivo
{
"filePath": "/public/processing/randomid.ext",
"fileName": "output.ext",
"contentType": "application/octet-stream",
"size": 1024,
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}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-fitness-workout-pdf-generator": {
"name": "fitness-workout-pdf-generator",
"description": "Genera un PDF imprimible de entrenamiento desde JSON o CSV con tablas, casillas de progreso y QR opcionales",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=fitness-workout-pdf-generator",
"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": "fitness-workout-pdf-generator",
"arguments": {
"workoutData": "[\n {\n \"day\": \"Push Day\",\n \"exercise\": \"Bench Press\",\n \"sets\": \"4\",\n \"reps\": \"8\",\n \"rest\": \"90s\",\n \"notes\": \"Pause on chest\",\n \"videoUrl\": \"https://example.com/bench\"\n },\n {\n \"day\": \"Push Day\",\n \"exercise\": \"Incline Dumbbell Press\",\n \"sets\": \"3\",\n \"reps\": \"10\",\n \"rest\": \"75s\",\n \"notes\": \"Controlled eccentric\",\n \"videoUrl\": \"https://example.com/incline\"\n },\n {\n \"day\": \"Pull Day\",\n \"exercise\": \"Pull-Up\",\n \"sets\": \"4\",\n \"reps\": \"AMRAP\",\n \"rest\": \"90s\",\n \"notes\": \"Full hang each rep\",\n \"videoUrl\": \"https://example.com/pullup\"\n }\n]",
"workoutFile": "",
"programTitle": "Client Strength Block",
"subtitle": "Week 1-4 printable training sheet",
"includeProgressBoxes": true,
"includeQrCodes": true,
"pageSize": "A4"
}
}
}¿Dudas o problemas? Contacta con [email protected]