Skip to main content
Glama

list_workouts

Read-onlyIdempotent

List workout sessions in a date range, plus user-marked Rest Day, Sick Day or Travel Day context (returned even on a date with no workout). Context labels explain a day, they are not workouts; Travel Day can coexist with training. use: find a session ID before get_workout; training-history questions. row: ID, date, focus type, location, session NSI with rating.

DATE RANGE: detailed listings read 90-day slices; explicit range limit 3660 days; aggregates unlimited. ALL HISTORY: user asks for "all", "ever" or full history -> all_history=true; starts at the earliest stored workout (respecting activity_type). detailed listings report but do not list history beyond 3660 days; aggregates cover everything stored. OUTPUT BOUND: detailed listings emit at most 250 workouts.

  • totals, averages, minimums, maximums, counts over any period -> aggregate + field (count needs none), optional group_by; reads every matching record in pages, returns numeric summaries only.

  • aggregate=count without field: the canonical physical workout count across runs and workout_sessions, walking excluded unless enabled.

  • other aggregates: measurements of stored workout_sessions rows.

  • never add up a capped listing. FILTERS: activity_type = stored focus type (imported modalities such as Stair Stepper). exercise_name = sessions containing that exercise in their sets (strength-history questions). combinable. INFER: user-stated dates or years are authoritative; widen freely to the period actually requested.

SAVED WORKOUTS: saved_workouts=true lists the user's reusable Saved Workouts library instead of completed 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
fieldNoSession field to aggregate; not needed for a plain session count.
end_dateNoYYYY-MM-DD; default today.
group_byNoGroup an aggregate by stored local day, month or year; omit for one total.
aggregateNoNumeric summary instead of session rows. See OUTPUT BOUND.
start_dateNoYYYY-MM-DD; default 7 days ago.
all_historyNotrue = start at the earliest stored workout. See ALL HISTORY.
activity_typeNoStored focus type to match, case-insensitive, e.g. Stair Stepper.
exercise_nameNoExercise that must appear in the session sets, case-insensitive.
saved_workoutsNotrue lists reusable Saved Workouts instead of completed sessions; default false.

Output Schema

NameRequiredDescriptionDefault
resultYesHuman-readable result text returned by the tool.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changed
    • changedInput schema / properties / activity_type / description
      Previous value: -"Stored workout focus type to match case-insensitively, for example Stair Stepper. Defaults to no activity-type filter."New value: +"Stored focus type to match, case-insensitive, e.g. Stair Stepper."
    • changedInput schema / properties / aggregate / description
      Previous value: -"Return a numeric summary instead of session rows; when omitted, detailed listing behavior is unchanged."New value: +"Numeric summary instead of session rows. See OUTPUT BOUND."
    • changedInput schema / properties / all_history / description
      Previous value: -"True starts at the earliest stored workout; aggregate mode includes unlimited history, while detailed output keeps its usual cap."New value: +"true = start at the earliest stored workout. See ALL HISTORY."
    • changedInput schema / properties / end_date / description
      Previous value: -"End of date range. Format: YYYY-MM-DD. Optional — defaults to today."New value: +"YYYY-MM-DD; default today."
    • changedInput schema / properties / exercise_name / description
      Previous value: -"Exercise name that must appear in the workout sets, matched case-insensitively. Defaults to no exercise filter."New value: +"Exercise that must appear in the session sets, case-insensitive."
    • changedInput schema / properties / field / description
      Previous value: -"Numeric session field to aggregate. Needed except when counting all sessions."New value: +"Session field to aggregate; not needed for a plain session count."
    • changedInput schema / properties / group_by / description
      Previous value: -"Group an aggregate by stored local day, month or year; omitted returns one total."New value: +"Group an aggregate by stored local day, month or year; omit for one total."
    • changedInput schema / properties / saved_workouts / description
      Previous value: -"When true, list reusable Saved Workouts instead of completed workout sessions. Defaults to false."New value: +"true lists reusable Saved Workouts instead of completed sessions; default false."
    • changedInput schema / properties / start_date / description
      Previous value: -"Start of date range. Format: YYYY-MM-DD. Optional — defaults to 7 days ago."New value: +"YYYY-MM-DD; default 7 days ago."
  2. Changed4 schema fields changed
    • 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"
      +}
    • changedInput schema / properties / all_history / description
      Previous value: -"Set true for all stored workout history instead of the recent default. Finds the earliest stored workout automatically; activity_type narrows that earliest-date lookup when present."New value: +"True starts at the earliest stored workout; aggregate mode includes unlimited history, while detailed output keeps its usual cap."
    • 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"
      +}
  3. Changed1 schema field changed
    • addedInput schema / properties / all_history
      Added value: +{
      +  "description": "Set true for all stored workout history instead of the recent default. Finds the earliest stored workout automatically; activity_type narrows that earliest-date lookup when present.",
      +  "type": "boolean"
      +}
  4. Changed2 schema fields changed
    • 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 / exercise_name
      Added value: +{
      +  "description": "Exercise name that must appear in the workout sets, matched case-insensitively. Defaults to no exercise filter.",
      +  "type": "string"
      +}
  5. Changed1 schema field changed
    • addedInput schema / properties / saved_workouts
      Added value: +{
      +  "description": "When true, list reusable Saved Workouts instead of completed workout sessions. Defaults to false.",
      +  "type": "boolean"
      +}
  6. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description adds substantially beyond them: the 90-day slice behavior for detailed listings, the 3660-day explicit range cap, the 250-row output bound, and the rule that aggregates page over every matching record while capped listings must never be summed. It also discloses the count semantics (canonical physical workout count across runs and workout_sessions, walking excluded unless enabled) and that saved workout IDs are a separate ID space.

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?

Front-loaded with purpose and usage, then organized into labeled blocks (DATE RANGE, ALL HISTORY, OUTPUT BOUND, FILTERS, SAVED WORKOUTS) with cross-references instead of repetition. It is dense and near the upper limit of useful length, but nearly every line carries operational information; the 'row:' line is the only mild redundancy given an output schema exists.

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?

For a 9-parameter, zero-required tool with three distinct modes (listing, aggregate, saved workouts), the description covers the caps, defaults, mode switching and filter semantics an agent needs to call it correctly. With an output schema present, it correctly avoids over-explaining return shapes.

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

Parameters5/5

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

Although schema coverage is 100%, the description adds real meaning the schema cannot: field is only needed for non-count aggregates, all_history anchors at the earliest stored workout 'respecting activity_type', and activity_type maps to stored focus type including imported modalities like Stair Stepper. exercise_name is clarified as a set-membership filter for strength-history questions, and combinability of the two filters is stated.

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 disambiguates the non-workout payload it also returns ('Context labels explain a day, they are not workouts'). It also distinguishes itself from get_workout by positioning itself as the ID-discovery step, so an agent can route between the two without opening either schema.

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

Usage Guidelines4/5

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

Gives explicit triggers ('find a session ID before get_workout; training-history questions') and explicit routing between listing vs aggregate mode, plus a clear when-to-use for saved_workouts. The one gap is that it does not address overlap with the sibling list_rest_days or show_week_workouts, both of which touch the same underlying days.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.