Document Tools
Создает печатный PDF-план тренировок из JSON или CSV с таблицами, ячейками прогресса и QR-кодами
Вызовите этот инструмент из своего кода на трёх языках.
# 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/ru/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'Отправьте POST-запрос с входными данными в JSON. Параметры типа «файл» требуют предварительной загрузки.
POST https://api.elysiatools.com/ru/api/tools/fitness-workout-pdf-generator| Имя | Тип | Обязательный | Описание |
|---|---|---|---|
| workoutData | textarea | Нет | — |
| workoutFile | fileнужна загрузка | Нет | — |
| programTitle | text | Нет | — |
| subtitle | text | Нет | — |
| includeProgressBoxes | checkbox | Нет | — |
| includeQrCodes | checkbox | Нет | — |
| pageSize | select | Нет | — |
Файловый результат
{
"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)"
}Добавьте этот инструмент на свой сервер Model Context Protocol, чтобы ИИ-агенты могли перечислять и вызывать его.
Добавьте этот блок в конфигурацию вашего MCP-клиента:
{
"mcpServers": {
"elysiatools-fitness-workout-pdf-generator": {
"name": "fitness-workout-pdf-generator",
"description": "Создает печатный PDF-план тренировок из JSON или CSV с таблицами, ячейками прогресса и QR-кодами",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=fitness-workout-pdf-generator",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}После подключения к SSE-endpoint выведите список доступных инструментов:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Вызовите инструмент по его id; аргументы формируются из его параметров:
{
"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"
}
}
}Вопросы или проблемы? Свяжитесь с [email protected]