Skip to main content
Back to MCP Tools Catalog management_exercise JSON-RPC 2.0 • tools/call
POST /api/v1/exercise

Exercise & Biomechanics Catalog Manager

Full CRUD management for exercises (`/_mcp/management/exercise`) including biomechanics instructions, METs, calories burned, difficulty level, categories, tags, and S3 media.

Nazwa narzędzia MCP management_exercise
Endpoint HTTP / Stream https://www.dietspremium.com/_mcp/management/exercise
Mostek CLI (stdio) npx -y dietspremium-mcp
Kontrakt Wejściowy (JSON Schema)

Input Parameters Schema (inputSchema)

5 Field name
Field name JSON Type Status Description Example value
action string Required Action: GET_CREATION_GUIDE, LIST_EXERCISES, GET_EXERCISE, CREATE_EXERCISE, UPDATE_EXERCISE, DELETE_EXERCISE, DEACTIVATE_EXERCISE, LIST_CATEGORIES, LIST_TAGS, GET_MEDIA, ADD_MEDIA, REPLACE_MEDIA, DELETE_MEDIA LIST_EXERCISES
payload object Optional Exercise key (exercise_key), name_pl/de/en, instruction_pl, mets, kcal_hour, level, categories, tags, image_base64 {}
locale string Optional Language locale pl
page integer Optional Page number (max 10 items per page) 1
max_results integer Optional Items per page (1-10) 10

JSON-RPC 2.0 Request (tools/call)

management_exercise
terminal — tools/call management_exercise
JSON-RPC 2.0 REQUEST
npx -y dietspremium-mcp --url https://www.dietspremium.com/_mcp
curl -X POST https://www.dietspremium.com/_mcp/management/exercise \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_MCP_KEY" \
  -d '{
  "action": "LIST_EXERCISES",
  "page": 1,
  "locale": "pl"
}'

MCP Tool Response Structure

application/json • UTF-8
response — management_exercise (JSON-RPC 2.0)
MCP Response 200 OK
{
  "status": "success",
  "action": "LIST_EXERCISES"
}
Kroki wykonania dla management_exercise MCP Flow

Instrukcja integracji dla programistów i agentów AI

1
Walidacja argumentów wejściowych (management_exercise) management_exercise

Przekaż parametry zgodne z tabelą obok (np. locale="en").

2
Odczyt wyniku i klucza Base64 (key) McpKeyCodec

Każdy zwrócony rekord posiada pole "key" (Base64), które można bezpiecznie przekazać do narzędzi management_*.

Subagent_management_exercise Ready

Specjalizowany Agent dla narzędzia management_exercise

MCP v2.0 Tool Runner
Prompt Wejściowy Agenta AI

“Wykonaj zapytanie do narzędzia management_exercise dla języka EN i zwróć ustrukturyzowane dane kliniczne.”

Wykorzystywane Narzędzia MCP / Endpointy
management_exercise
Ślad Wywołania (Execution Trace)
→ POST https://www.dietspremium.com/_mcp/management/exercise (tool: "management_exercise")
← 200 OK (5 zwalidowanych parametrów)

Other MCP Server Tools

Pełny katalog MCP →

Share