Skip to main content
Glama
Wellness Project MCP

Wellness Project MCP

list_workouts

Read-onlyIdempotent

List workout sessions by date range, including Rest, Sick, and Travel Day context, to find session IDs or review training history and aggregate metrics.

Instructions

List workout sessions in a date range plus user-marked Rest Day, Sick Day, or Travel Day context. Day context is returned even when that date has no workout. Treat context labels as explanatory context, not workouts; Travel Day can coexist with training.

Use before get_workout to find a session ID, or to answer training-history questions. Each workout row includes ID, date, focus type, location, and session-level NSI with rating.

DATE RANGE: detailed listings read 90-day slices, with an explicit range limit of 3660 days. Aggregates have no date range limit.

ALL HISTORY: when the user asks for "all", "ever", or their full workout history, set all_history=true. The tool finds the earliest stored workout (respecting activity_type when supplied). For detailed listings, older history beyond 3660 days is reported but not listed. Aggregates cover all stored history.

OUTPUT BOUND: detailed listings emit at most 250 workouts. For totals, averages, minimums, maximums, or counts over any period, set aggregate plus field (except count), and optionally group_by. The aggregate mode reads all matching records in pages and returns only numeric summaries. A count of sessions (aggregate=count without field) is the canonical physical workout count across runs and workout_sessions, excluding walking unless enabled. Other numeric aggregates are measurements of stored workout_sessions rows. Never add up a capped listing.

FILTERS: activity_type matches the stored workout focus type case-insensitively. exercise_name keeps only sessions containing that exercise in workout sets. Use activity_type for imported modalities such as Stair Stepper; use exercise_name for strength-history questions. Both filters may be combined.

INFER: default start_date to 7 days ago, end_date to today. User-specified dates or years are authoritative. Widen freely for the period the user actually requested.

SAVED WORKOUTS: set saved_workouts=true to list the user's reusable Saved Workouts library instead of completed workout history. Saved workout IDs are separate from workout session IDs.

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": "list_workouts"
  }
}

Input Schema

NameRequiredDescriptionDefault
fieldNoNumeric session field to aggregate. Needed except when counting all sessions.
end_dateNoEnd of date range. Format: YYYY-MM-DD. Optional — defaults to today.
group_byNoGroup an aggregate by stored local day, month or year; omitted returns one total.
aggregateNoReturn a numeric summary instead of session rows; when omitted, detailed listing behavior is unchanged.
start_dateNoStart of date range. Format: YYYY-MM-DD. Optional — defaults to 7 days ago.
all_historyNoTrue starts at the earliest stored workout; aggregate mode includes unlimited history, while detailed output keeps its usual cap.
activity_typeNoStored workout focus type to match case-insensitively, for example Stair Stepper. Defaults to no activity-type filter.
exercise_nameNoExercise name that must appear in the workout sets, matched case-insensitively. Defaults to no exercise filter.
saved_workoutsNoWhen true, list reusable Saved Workouts instead of completed workout sessions. Defaults to false.

Output Schema

NameRequiredDescriptionDefault
resultYesHuman-readable result text returned by the tool.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv1.3.0
    • addedInput schema / properties / activity_type
      Added value: +{
      +  "description": "Stored workout focus type to match case-insensitively, for example Stair Stepper. Defaults to no activity-type filter.",
      +  "type": "string"
      +}
    • addedInput schema / properties / aggregate
      Added value: +{
      +  "description": "Return a numeric summary instead of session rows; when omitted, detailed listing behavior is unchanged.",
      +  "enum": [
      +    "sum",
      +    "avg",
      +    "min",
      +    "max",
      +    "count"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / all_history
      Added value: +{
      +  "description": "True starts at the earliest stored workout; aggregate mode includes unlimited history, while detailed output keeps its usual cap.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / exercise_name
      Added value: +{
      +  "description": "Exercise name that must appear in the workout sets, matched case-insensitively. Defaults to no exercise filter.",
      +  "type": "string"
      +}
    • addedInput schema / properties / field
      Added value: +{
      +  "description": "Numeric session field to aggregate. Needed except when counting all sessions.",
      +  "enum": [
      +    "distance_mi",
      +    "duration_sec",
      +    "calories",
      +    "nsi",
      +    "rpe",
      +    "heart_points_moderate",
      +    "heart_points_peak"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / group_by
      Added value: +{
      +  "description": "Group an aggregate by stored local day, month or year; omitted returns one total.",
      +  "enum": [
      +    "day",
      +    "month",
      +    "year"
      +  ],
      +  "type": "string"
      +}
  2. First observedv1.2.1

TDQS

A4.8/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only declare it a safe, idempotent read; the description adds the substantive behavior: 90-day slice reads, a 3660-day explicit range limit, a hard 250-row cap on detailed listings, paged aggregate reads with unlimited history, and the exact semantics of count versus other numeric aggregates. It also clarifies that Travel Day can coexist with training and that context labels are not workouts.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Long but well structured, with labeled DATE RANGE, ALL HISTORY, OUTPUT BOUND, FILTERS, INFER, and SAVED WORKOUTS sections, and the core behavior is front-loaded in the first two lines. A few statements, such as the default start/end dates, restate the schema and could be trimmed without loss.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given nine optional parameters, aggregation modes, and truncation limits, the description covers everything needed to invoke it correctly: date bounds, the 250-row cap, aggregation escape hatch, filter choice, history handling, and the saved-workouts mode switch. Return shape is also summarized and an output schema exists, so nothing material is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description earns more by prescribing which filter to reach for (activity_type for imported modalities like Stair Stepper, exercise_name for strength-history questions, and that both may be combined) and by spelling out how all_history interacts with the listing cap versus aggregate mode.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('List workout sessions in a date range') and immediately adds the non-obvious scope: it also returns Rest Day, Sick Day, and Travel Day context even on days with no workout. This separates it from get_workout, which it explicitly names as the follow-up, and from list_rest_days.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit routing: use before get_workout to find a session ID, or to answer training-history questions. It also names the conditions that switch modes — all_history for 'all'/'ever', aggregate+field for totals/averages instead of listing, saved_workouts for the library instead of history — and warns to never sum a capped listing.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.