Sports
Определите CP и W′ по 3-минутному тесту, парам мощность–время или пробегам дистанция–время, затем повторите сессию Stryd (.fit/.tcx/CSV): W′bal по интегральной модели Скибы 2012 и дифференциальной модели Froncioni/Skiba/Clarke, прогноз до истощения, зоны Stryd и двухпанельный график.
Вызовите этот инструмент из своего кода на трёх языках.
# 1) Request a presigned URL → returns { uploadUrl, storageKey }
curl -X POST 'http://127.0.0.1:3003/api/upload/presign/stryd-running-power-critical-power-and-w-prime-bal-reconstructor' \
-H 'Content-Type: application/json' \
-d '{"filename":"sessionFile.ext","contentType":"application/octet-stream","size":12345}'
# 2) PUT the file bytes directly to the presigned uploadUrl
curl -X PUT '<presigned uploadUrl>' \
--data-binary @/path/to/file.ext
# 3) Call the tool, passing the returned storageKey for each file field
curl -X POST 'http://127.0.0.1:3003/ru/api/tools/stryd-running-power-critical-power-and-w-prime-bal-reconstructor' \
-F 'testMode=3min-allout' \
-F 'testData=0,430
5,428
10,425
15,420
20,415
25,410
30,405
35,400
40,395
45,390
50,385
55,380
60,375
65,370
70,365
75,360
80,355
85,350
90,345
95,340
100,335
105,332
110,330
115,328
120,325
125,322
130,320
135,318
140,315
145,312
150,310
155,308
160,306
165,304
170,302
175,301' \
-F 'sessionData=' \
-F 'sessionFile=uploads/2026/01/01/your-tool-1700000000000-abc123.ext' \
-F 'wbalModel=both' \
-F 'bodyWeight=70' \
-F 'efficiency=0.24'Отправьте POST-запрос с входными данными в JSON. Параметры типа «файл» требуют предварительной загрузки.
POST http://127.0.0.1:3003/ru/api/tools/stryd-running-power-critical-power-and-w-prime-bal-reconstructor| Имя | Тип | Обязательный | Описание |
|---|---|---|---|
| testMode | select | Нет | — |
| testData | textarea | Да | — |
| sessionData | textarea | Нет | — |
| sessionFile | fileнужна загрузка | Нет | — |
| wbalModel | select | Нет | — |
| bodyWeight | number | Нет | — |
| efficiency | number | Нет | — |
HTML-результат
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Добавьте этот инструмент на свой сервер Model Context Protocol, чтобы ИИ-агенты могли перечислять и вызывать его.
Добавьте этот блок в конфигурацию вашего MCP-клиента:
{
"mcpServers": {
"elysiatools-stryd-running-power-critical-power-and-w-prime-bal-reconstructor": {
"name": "stryd-running-power-critical-power-and-w-prime-bal-reconstructor",
"description": "Определите CP и W′ по 3-минутному тесту, парам мощность–время или пробегам дистанция–время, затем повторите сессию Stryd (.fit/.tcx/CSV): W′bal по интегральной модели Скибы 2012 и дифференциальной модели Froncioni/Skiba/Clarke, прогноз до истощения, зоны Stryd и двухпанельный график.",
"baseUrl": "http://127.0.0.1:3003/mcp/sse?toolId=stryd-running-power-critical-power-and-w-prime-bal-reconstructor",
"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": "stryd-running-power-critical-power-and-w-prime-bal-reconstructor",
"arguments": {
"testMode": "3min-allout",
"testData": "0,430\n5,428\n10,425\n15,420\n20,415\n25,410\n30,405\n35,400\n40,395\n45,390\n50,385\n55,380\n60,375\n65,370\n70,365\n75,360\n80,355\n85,350\n90,345\n95,340\n100,335\n105,332\n110,330\n115,328\n120,325\n125,322\n130,320\n135,318\n140,315\n145,312\n150,310\n155,308\n160,306\n165,304\n170,302\n175,301",
"sessionData": "",
"sessionFile": "https://example.com/file.ext",
"wbalModel": "both",
"bodyWeight": 70,
"efficiency": 0.24
}
}
}Вопросы или проблемы? Свяжитесь с [email protected]