---
title: "Stats & trends | Fitaily Docs"
description: "Period aggregates (nutrition, activity, measurements), goal progress, per-food history, metric series and TimesFM forecasts. They answer “how did the week go”, not “what did I eat”."
url: "https://fitaily.com/docs/tools/stats/en"
canonical: "https://fitaily.com/docs/tools/stats/en"
lang: en
---

# Stats & trends

Period aggregates (nutrition, activity, measurements), goal progress, per-food history, metric series and TimesFM forecasts. They answer “how did the week go”, not “what did I eat”.

### `get_nutrition_stats`

Nutrition statistics: Nutrition aggregates over a period: totals, daily averages, entries per meal type and how many days hit the calorie goal. Defaults to the last 30 days.

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

### `get_activity_stats`

Activity statistics: Activity aggregates over a period: total duration, calories burned, distance and a per-type breakdown. Defaults to the last 30 days.

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

### `get_measurement_stats`

Measurement statistics: Body measurement aggregates over a period: min/max/average/first/latest for weight, body fat, muscle mass and BMI. Defaults to the last 30 days.

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

### `get_goal_progress`

Goal progress: Progress of every active goal (weight, workouts, custom): current vs target, percent complete and whether it is on track. Nutrition goals are excluded — use get_nutrition_goals.

### `query_nutrition_history`

Nutrition history by food: Meals aggregated by product over a period: how many times it was eaten and the average calories/macros per occurrence. Answers 'what do I eat most often' without listing every entry.

Parametry: `from`* (string), `to`* (string), `mealType` (enum(breakfast|lunch|dinner|snack)), `limit` (integer)

### `get_metric_trend`

Metric trend: Daily series for one metric: measurements (weight/bodyFat/bmi/muscleMass), nutrition (calories/protein/carbs/fat), workouts (duration/burnedCalories) or hydration (amount). Returns points, delta and start/end values — ideal for a trend summary or a chart.

Parametry: `category`* (enum(measurement|nutrition|workout|hydration)), `metric` (string), `from` (string), `to` (string)

### `get_forecast`

Progress forecast: TimesFM time-series forecast for one metric (weight, body fat, muscle, activity, food macros). Returns daily points with confidence bands. Needs enough history and is limited to 10 requests/minute; results are cached for 6h. Use it only when the user asks about the future, not for current values.

Parametry: `metric`* (enum(weight|bodyFat|muscleMass|waterMass|boneMass|activityDuration|activityCalories|activityDistance|foodCalories|foodProtein|foodCarbs|foodFat)), `predictionDays` (integer)

---

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