---
title: "Training | Fitaily Docs"
description: "Activity and strength history, training plans, cardio logging and strength workout templates (CRUD). Strength sessions themselves cannot be created in chat."
url: "https://fitaily.com/docs/tools/training/en"
canonical: "https://fitaily.com/docs/tools/training/en"
lang: en
---

# Training

Activity and strength history, training plans, cardio logging and strength workout templates (CRUD). Strength sessions themselves cannot be created in chat.

### `get_training_history`

Training history: Recent activities and strength workouts (type, date, distance, duration). No per-second GPS.

Parametry: `from` (string), `to` (string), `limit` (integer)

### `get_training_plan`

Training plan details: Planned training sessions (multi-sport plans and strength templates).

Parametry: `limit` (integer)

### `log_activity`

Log an activity: WRITE: log a simple cardio/manual activity (run, ride, walk). Confirm with the user first. Strength sessions cannot be created here — one active session per user plus set structure do not fit chat.

Parametry: `type`* (string), `name`* (string), `durationMin`* (integer), `distanceKm` (number), `caloriesBurned` (number), `date` (string)

### `get_workout_plans`

Workout plans: Saved workout templates (name, description, origin, exercises). A template generated by a training plan has origin PLAN_TEMPLATE and is not shown in the app's workout library; pass origin=standalone to list only the user's own templates.

Parametry: `limit` (integer), `origin` (enum(standalone|plan_template|all))

### `get_workout_plan`

Workout plan details: One workout template by id, with exercises and their sets/reps.

Parametry: `id`* (string)

### `create_workout_plan`

Create a workout plan: WRITE: create a workout template. Confirm the whole template with the user first. exerciseId values must come from search_exercises — never invent them. reps is a free string (e.g. "8-12").

Parametry: `name`* (string), `description` (string), `exercises`* (object[])

### `update_workout_plan`

Update a workout plan: WRITE: update a strength plan. Send only changed fields; exercises replaces the whole list. Confirm with the user first.

Parametry: `id`* (string), `name` (string), `description` (string), `exercises` (object[])

### `delete_workout_plan`

Delete a workout plan: WRITE: delete a strength plan template. Confirm with the user first.

Parametry: `id`* (string)

---

[Fitaily MCP na GitHubie](https://github.com/rafafau/fitaily-mcp)
