Get User Stats
get_user_statsRetrieve lifetime totals and per-sport breakdown stats for a Sports Tracker user, either the logged-in account or a specified username.
Instructions
Get lifetime totals and per-sport breakdown stats for the logged-in user or specified username.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_user_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| imperial | No | ||
| username | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sports | Yes | Breakdown per sport | |
| total_days | Yes | Total registered active days | |
| total_workouts | Yes | Lifetime total number of workouts | |
| total_distance_km | Yes | Lifetime total distance in km | |
| total_calories_kcal | Yes | Lifetime total calories in kcal | |
| total_duration_hours | Yes | Lifetime total time in hours | |
| total_distance_formatted | Yes | Lifetime total distance formatted |