Skip to main content
Glama

Workouts and calendar

list_workouts
Read-only

Retrieve saved workouts, scheduled sessions, and upcoming races or events to answer training-plan questions and find workout or schedule IDs.

Instructions

List the saved workout library (workouts), the scheduled workouts (upcoming_schedule; Garmin Coach or other training plan ones have source: "plan") and the races or events the user added or subscribed to (upcoming_events). Use it for "my next race", "what is planned this week", "what does my plan say for Saturday" or "which workouts do I have", and to find a workout id or schedule_id. For the steps of one workout use get_workout, to put a workout on the calendar or take it off schedule_workouts, for sessions already done get_activities. sport and limit narrow only the library; from and to set only the calendar window: today and the next 60 days by default, any range up to 3 years, past or future. Calendar months not in the cache yet are downloaded on the way. In events primary marks the goal race of an active training plan; plan gives its phase and target event.

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
toNoCalendar end; default 60 days after `from`
fromNoCalendar start; default today (or 60 days before `to` when `to` is in the past)
limitNoMost saved workouts listed in `workouts`
sportNoOnly library workouts of this sport, e.g. running, cycling, strength_training

Output Schema

NameRequiredDescriptionDefault
dataYes
metaYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv0.7.0
    • addedOutput schema / properties / data / properties / plan
      Added value: +{
      +  "additionalProperties": {},
      +  "properties": {
      +    "from": {
      +      "type": "string"
      +    },
      +    "kind": {
      +      "enum": [
      +        "adaptive",
      +        "phased"
      +      ],
      +      "type": "string"
      +    },
      +    "name": {
      +      "type": "string"
      +    },
      +    "phase": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "from": {
      +          "type": "string"
      +        },
      +        "name": {
      +          "type": "string"
      +        },
      +        "to": {
      +          "type": "string"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "sport": {
      +      "type": "string"
      +    },
      +    "target_event": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "date": {
      +          "type": "string"
      +        },
      +        "distance_km": {
      +          "type": "number"
      +        },
      +        "race": {
      +          "type": "boolean"
      +        },
      +        "title": {
      +          "type": "string"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "to": {
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
    • addedOutput schema / properties / data / properties / upcoming_events / items / properties / course
      Added value: +{
      +  "additionalProperties": {},
      +  "properties": {
      +    "distance_km": {
      +      "type": "number"
      +    },
      +    "elevation_gain_m": {
      +      "type": "number"
      +    },
      +    "id": {
      +      "type": "number"
      +    },
      +    "name": {
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
    • addedOutput schema / properties / data / properties / upcoming_schedule / items / properties / description
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / data / properties / upcoming_schedule / items / properties / plan_name
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / data / properties / upcoming_schedule / items / properties / source
      Added value: +{
      +  "enum": [
      +    "library",
      +    "plan"
      +  ],
      +  "type": "string"
      +}
    • addedOutput schema / properties / data / properties / upcoming_schedule / items / properties / sport
      Added value: +{
      +  "type": "string"
      +}
  2. Changed3 schema fields changedv0.6.2
    • removedInput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
    • addedInput schema / properties / limit / description
      Added value: +"Most saved workouts listed in `workouts`"
    • changedInput schema / properties / sport / description
      Previous value: -"e.g. running, cycling, strength_training"New value: +"Only library workouts of this sport, e.g. running, cycling, strength_training"
  3. First observedv0.6.0

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the `readOnlyHint` and `openWorldHint` annotations, the description discloses the default calendar window (today plus 60 days), the allowed range (up to 3 years past or future), and that uncached calendar months are downloaded on demand. It also explains the meaning of `primary` and `plan` in returned events, which is useful behavioral context even though an output schema exists.

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?

The description is dense but front-loads the core purpose and returned collections before moving to use cases, alternatives, and parameter scope. The long semicolon-heavy sentences are information-rich but could be broken up slightly for readability.

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 the tool's complexity as a multi-collection listing tool, the description covers purpose, usage, alternatives, default time windows, caching behavior, and key returned fields. With annotations and an output schema already present, no essential calling information 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%, but the description adds meaning not present in the schema by clarifying that `sport` and `limit` narrow only the library while `from` and `to` set only the calendar window. It also restates practical defaults and the maximum 3-year range, though it does not add per-parameter syntax beyond what the schema already documents.

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?

The description states a specific verb (list) and names the three distinct resources returned: the saved workout library (`workouts`), scheduled workouts (`upcoming_schedule`), and races/events (`upcoming_events`). It explicitly distinguishes itself from `get_workout`, `schedule_workouts`, and `get_activities` by explaining what those siblings handle instead.

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?

It gives concrete example intents such as "my next race", "what is planned this week", and "which workouts do I have", plus the explicit purpose of finding a workout id or schedule_id. It also names the alternative tools for adjacent tasks: `get_workout` for one workout's steps, `schedule_workouts` for calendar changes, and `get_activities` for completed sessions.

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