Add Exercise
add_user_exerciseLog a Yazio training or custom exercise with date, duration, and burned kcal, including energy manually because Yazio does not calculate it; returns the entry ID.
Instructions
Log an exercise: a Yazio training (e.g. running) or, with custom: true, an exercise with any name. Pass the burned energy, because Yazio does not calculate it. Returns the entry ID.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"date": "<date>",
"name": "<name>",
"duration": "<duration>",
"energy": "<energy>"
},
"name": "add_user_exercise"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | Start date and time in "YYYY-MM-DD HH:mm:ss" format | |
| name | Yes | A Yazio training: one of the listed names, or another training name, which the API may reject. With custom: true, any name | |
| note | No | ||
| custom | No | Log a custom exercise with a free name instead of a Yazio training | |
| energy | Yes | Burned energy in kcal; Yazio does not calculate it | |
| duration | Yes | Duration in minutes |