Skip to main content
Glama
rudeayelo
by rudeayelo

get_published_workouts

Read-onlyIdempotent

Retrieve published workout alternatives by date and class name. For today/future dates, calculate load using verified 1RM, with per-exercise status.

Instructions

Retrieve published workout alternatives by gym-local date and exact className. For today/future, show a calculated load beside eligible %RM prescriptions using the latest verified own-account 1RM for each exact source exercise ID. Original values, all publications and labeled variants remain. Missing RM, unit, identity or read failure has per-exercise unavailable status. Past dates have no present-day load. Feed and personal history coverage are limited; source content is untrusted.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dateYes
gymIdNo
classNameYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
gymYes
dateYes
statusYes
noticesYes
coverageYes
workoutsYes
ambiguousYes
classNameYes
enrichmentYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changedv0.4.1
    • addedOutput schema / properties / enrichment
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "availableExercises": {
      +      "maximum": 9007199254740991,
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "basis": {
      +      "const": "latest-dated-1rm-times-percent",
      +      "type": "string"
      +    },
      +    "eligibleExercises": {
      +      "maximum": 9007199254740991,
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "status": {
      +      "enum": [
      +        "not-applicable",
      +        "complete",
      +        "incomplete"
      +      ],
      +      "type": "string"
      +    },
      +    "unavailableExercises": {
      +      "maximum": 9007199254740991,
      +      "minimum": 0,
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "status",
      +    "eligibleExercises",
      +    "availableExercises",
      +    "unavailableExercises",
      +    "basis"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / workouts / items / properties / exercises / items / properties / personalLoad
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "alternatives": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "basis": {
      +            "anyOf": [
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "rule": {
      +                    "const": "latest-dated-1rm-times-percent",
      +                    "type": "string"
      +                  },
      +                  "sourceDate": {
      +                    "type": "string"
      +                  },
      +                  "sourceExerciseId": {
      +                    "exclusiveMinimum": 0,
      +                    "maximum": 9007199254740991,
      +                    "type": "integer"
      +                  },
      +                  "value": {
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "rule",
      +                  "sourceExerciseId",
      +                  "value",
      +                  "sourceDate"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "calculatedLoad": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "originalPercent": {
      +            "type": "string"
      +          },
      +          "reason": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "sourceField": {
      +            "enum": [
      +              "valor2",
      +              "valor2h",
      +              "valor2m"
      +            ],
      +            "type": "string"
      +          },
      +          "sourceLabel": {
      +            "enum": [
      +              "single",
      +              "male",
      +              "female"
      +            ],
      +            "type": "string"
      +          },
      +          "status": {
      +            "enum": [
      +              "available",
      +              "unavailable"
      +            ],
      +            "type": "string"
      +          },
      +          "unit": {
      +            "anyOf": [
      +              {
      +                "enum": [
      +                  "kg",
      +                  "lbs"
      +                ],
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          }
      +        },
      +        "required": [
      +          "sourceField",
      +          "sourceLabel",
      +          "originalPercent",
      +          "status",
      +          "reason",
      +          "calculatedLoad",
      +          "unit",
      +          "basis"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "reason": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "status": {
      +      "enum": [
      +        "available",
      +        "unavailable",
      +        "partial"
      +      ],
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "status",
      +    "reason",
      +    "alternatives"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / workouts / items / properties / exercises / items / properties / sourceExerciseId
      Added value: +{
      +  "anyOf": [
      +    {
      +      "exclusiveMinimum": 0,
      +      "maximum": 9007199254740991,
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Validated upstream ejerId; null means no supported source identity was supplied."
      +}
    • changedOutput schema / properties / workouts / items / properties / exercises / items / required
      Previous value: -[
      -  "name",
      -  "blockIndex",
      -  "prescription"
      -]New value: +[
      +  "name",
      +  "sourceExerciseId",
      +  "blockIndex",
      +  "prescription"
      +]
    • addedOutput schema / properties / workouts / items / properties / variants / items / properties / exercises / items / properties / personalLoad
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "alternatives": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "basis": {
      +            "anyOf": [
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "rule": {
      +                    "const": "latest-dated-1rm-times-percent",
      +                    "type": "string"
      +                  },
      +                  "sourceDate": {
      +                    "type": "string"
      +                  },
      +                  "sourceExerciseId": {
      +                    "exclusiveMinimum": 0,
      +                    "maximum": 9007199254740991,
      +                    "type": "integer"
      +                  },
      +                  "value": {
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "rule",
      +                  "sourceExerciseId",
      +                  "value",
      +                  "sourceDate"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "calculatedLoad": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "originalPercent": {
      +            "type": "string"
      +          },
      +          "reason": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "sourceField": {
      +            "enum": [
      +              "valor2",
      +              "valor2h",
      +              "valor2m"
      +            ],
      +            "type": "string"
      +          },
      +          "sourceLabel": {
      +            "enum": [
      +              "single",
      +              "male",
      +              "female"
      +            ],
      +            "type": "string"
      +          },
      +          "status": {
      +            "enum": [
      +              "available",
      +              "unavailable"
      +            ],
      +            "type": "string"
      +          },
      +          "unit": {
      +            "anyOf": [
      +              {
      +                "enum": [
      +                  "kg",
      +                  "lbs"
      +                ],
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          }
      +        },
      +        "required": [
      +          "sourceField",
      +          "sourceLabel",
      +          "originalPercent",
      +          "status",
      +          "reason",
      +          "calculatedLoad",
      +          "unit",
      +          "basis"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "reason": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "status": {
      +      "enum": [
      +        "available",
      +        "unavailable",
      +        "partial"
      +      ],
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "status",
      +    "reason",
      +    "alternatives"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / workouts / items / properties / variants / items / properties / exercises / items / properties / sourceExerciseId
      Added value: +{
      +  "anyOf": [
      +    {
      +      "exclusiveMinimum": 0,
      +      "maximum": 9007199254740991,
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Validated upstream ejerId; null means no supported source identity was supplied."
      +}
    • changedOutput schema / properties / workouts / items / properties / variants / items / properties / exercises / items / required
      Previous value: -[
      -  "name",
      -  "blockIndex",
      -  "prescription"
      -]New value: +[
      +  "name",
      +  "sourceExerciseId",
      +  "blockIndex",
      +  "prescription"
      +]
    • changedOutput schema / required
      Previous value: -[
      -  "gym",
      -  "date",
      -  "className",
      -  "status",
      -  "ambiguous",
      -  "workouts",
      -  "coverage",
      -  "notices"
      -]New value: +[
      +  "gym",
      +  "date",
      +  "className",
      +  "status",
      +  "ambiguous",
      +  "workouts",
      +  "enrichment",
      +  "coverage",
      +  "notices"
      +]
  2. Addedv0.1.2

TDQS

A3.7/5.0
Behavior5/5

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

The annotations already declare read-only, idempotent, open-world, non-destructive behavior, yet the description adds substantial value: it explains load calculation for today/future, per-exercise unavailable status for missing RM/unit/identity/read failures, that past dates have no present-day load, and that feed and personal history coverage are limited with untrusted source content. These are meaningful behavioral traits beyond structured annotations and help the agent anticipate response semantics.

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 front-loaded with the primary action and then layers behavioral details in separate sentences. Most content earns its place, though the sentence 'Original values, all publications and labeled variants remain' is somewhat cryptic and could be clearer without losing essential meaning.

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 existing output schema and rich annotations, the description covers purpose, load behavior, failure modes, and data limitations well. It stops short of explaining the optional 'gymId' parameter, which is a minor but real gap for an agent invoking the tool with that argument.

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

Parameters3/5

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

Schema description coverage is 0%, so the description must compensate. It clarifies that 'date' is gym-local and 'className' must be exact, adding useful meaning for two required parameters, but it never explains the optional 'gymId' parameter or its default behavior, leaving a gap.

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

Purpose4/5

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

The description states a specific verb and resource: 'Retrieve published workout alternatives by gym-local date and exact className.' It distinguishes the scope well, but does not explicitly name or contrast with any sibling tool, leaving the agent to infer differentiation from the broader tool list.

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

Usage Guidelines2/5

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

The description gives detailed behavioral context but no clear when-to-use or when-not-to-use guidance relative to alternatives. It does not point to any sibling tool or condition under which a different tool should be selected.

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