Skip to main content
Glama

get-workout-events

Read-only

Retrieve a paginated list of recent workout updates and deletions to keep your local cache synchronized.

Instructions

Retrieve a paged list of workout events (updates or deletes) since a given date. Events are ordered from newest to oldest. The intention is to allow clients to keep their local cache of workouts up to date without having to fetch the entire list of workouts.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNo
sinceNo1970-01-01T00:00:00Z
pageSizeNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
eventsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.28.0
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "events": {
      +      "items": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "type": {
      +                "description": "Indicates the type of the event (updated)",
      +                "type": "string"
      +              },
      +              "workout": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "created_at": {
      +                    "description": "ISO 8601 timestamp of when the workout was created.",
      +                    "type": "string"
      +                  },
      +                  "description": {
      +                    "description": "The workout description.",
      +                    "type": "string"
      +                  },
      +                  "end_time": {
      +                    "description": "ISO 8601 timestamp of when the workout was recorded to have ended.",
      +                    "type": "string"
      +                  },
      +                  "exercises": {
      +                    "items": {
      +                      "additionalProperties": false,
      +                      "properties": {
      +                        "exercise_template_id": {
      +                          "description": "The id of the exercise template. This can be used to fetch the exercise template.",
      +                          "type": "string"
      +                        },
      +                        "index": {
      +                          "description": "Index indicating the order of the exercise in the workout.",
      +                          "type": "number"
      +                        },
      +                        "notes": {
      +                          "description": "Notes on the exercise",
      +                          "type": "string"
      +                        },
      +                        "sets": {
      +                          "items": {
      +                            "additionalProperties": false,
      +                            "properties": {
      +                              "custom_metric": {
      +                                "anyOf": [
      +                                  {
      +                                    "description": "Custom metric logged for the set (Currently only used to log floors or steps for stair machine exercises)",
      +                                    "type": "number"
      +                                  },
      +                                  {
      +                                    "type": "null"
      +                                  }
      +                                ]
      +                              },
      +                              "distance_meters": {
      +                                "anyOf": [
      +                                  {
      +                                    "description": "Number of meters logged for the set",
      +                                    "type": "number"
      +                                  },
      +                                  {
      +                                    "type": "null"
      +                                  }
      +                                ]
      +                              },
      +                              "duration_seconds": {
      +                                "anyOf": [
      +                                  {
      +                                    "description": "Number of seconds logged for the set",
      +                                    "type": "number"
      +                                  },
      +                                  {
      +                                    "type": "null"
      +                                  }
      +                                ]
      +                              },
      +                              "index": {
      +                                "description": "Index indicating the order of the set in the workout.",
      +                                "type": "number"
      +                              },
      +                              "reps": {
      +                                "anyOf": [
      +                                  {
      +                                    "description": "Number of reps logged for the set",
      +                                    "type": "number"
      +                                  },
      +                                  {
      +                                    "type": "null"
      +                                  }
      +                                ]
      +                              },
      +                              "rpe": {
      +                                "anyOf": [
      +                                  {
      +                                    "description": "RPE (Relative perceived exertion) value logged for the set",
      +                                    "type": "number"
      +                                  },
      +                                  {
      +                                    "type": "null"
      +                                  }
      +                                ]
      +                              },
      +                              "type": {
      +                                "description": "The type of set. This can be one of 'normal', 'warmup', 'dropset', 'failure'",
      +                                "type": "string"
      +                              },
      +                              "weight_kg": {
      +                                "anyOf": [
      +                                  {
      +                                    "description": "Weight lifted in kilograms.",
      +                                    "type": "number"
      +                                  },
      +                                  {
      +                                    "type": "null"
      +                                  }
      +                                ]
      +                              }
      +                            },
      +                            "type": "object"
      +                          },
      +                          "type": "array"
      +                        },
      +                        "supersets_id": {
      +                          "anyOf": [
      +                            {
      +                              "description": "The id of the superset that the exercise belongs to. A value of null indicates the exercise is not part of a superset.",
      +                              "type": "number"
      +                            },
      +                            {
      +                              "type": "null"
      +                            }
      +                          ]
      +                        },
      +                        "title": {
      +                          "description": "Title of the exercise",
      +                          "type": "string"
      +                        }
      +                      },
      +                      "type": "object"
      +                    },
      +                    "type": "array"
      +                  },
      +                  "id": {
      +                    "description": "The workout ID.",
      +                    "type": "string"
      +                  },
      +                  "routine_id": {
      +                    "description": "The ID of the routine that this workout belongs to.",
      +                    "type": "string"
      +                  },
      +                  "start_time": {
      +                    "description": "ISO 8601 timestamp of when the workout was recorded to have started.",
      +                    "type": "string"
      +                  },
      +                  "title": {
      +                    "description": "The workout title.",
      +                    "type": "string"
      +                  },
      +                  "updated_at": {
      +                    "description": "ISO 8601 timestamp of when the workout was last updated.",
      +                    "type": "string"
      +                  }
      +                },
      +                "type": "object"
      +              }
      +            },
      +            "required": [
      +              "type",
      +              "workout"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "deleted_at": {
      +                "description": "A date string indicating when the workout was deleted",
      +                "type": "string"
      +              },
      +              "id": {
      +                "description": "The unique identifier of the deleted workout",
      +                "type": "string"
      +              },
      +              "type": {
      +                "description": "Indicates the type of the event (deleted)",
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "type",
      +              "id"
      +            ],
      +            "type": "object"
      +          }
      +        ]
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "events"
      +  ],
      +  "type": "object"
      +}
  2. Changed2 schema fields changedv1.23.8
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / page / maximum
      Added value: +9007199254740991
  3. First observedv1.0.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations provide readOnlyHint=true, and the description confirms it is a read operation. The description adds ordering (newest to oldest) and paging behavior, which is valuable beyond the annotation.

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

Conciseness5/5

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

The description is concise with three sentences. The first sentence states the core function, the second adds ordering, and the third explains the intent. No unnecessary words.

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

Completeness4/5

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

Given the existence of an output schema and the context of sibling tools, the description adequately explains the tool's purpose and behavior for cache synchronization. It could include more parameter details but is complete for the intended use.

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

Parameters2/5

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

Schema description coverage is 0%, and the description does not detail individual parameters. It implicitly references 'since' and paging but lacks specifics on defaults, formats, or constraints that would help the agent.

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 clearly states the tool retrieves a paged list of workout events (updates or deletes) since a given date, ordered newest to oldest. It differentiates from siblings like get-workout and get-workouts by focusing on incremental cache updates.

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?

The description explicitly states the intended use case: allow clients to keep their local cache up to date without fetching entire list. It does not explicitly exclude other uses, but the guidance is clear and contextually appropriate.

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