Skip to main content
Glama
Loopback Training Server

Loopback Training Server

set_strength_schedule

Set a recurring weekly strength schedule on a plan by assigning routines to specific weekdays for a set number of weeks, with warnings for run conflicts.

Instructions

Set a recurring weekly schedule on a plan — which routine runs on which weekday, for a number of weeks.

Only for an athlete who lifts on fixed weekdays. One who fits strength around the rest of the week has no "every Tuesday": give them individual sessions with add_strength_session instead, and skip this tool. The two also combine: a weekly pattern, with move_strength_session or remove_strength_session for the weeks that differ.

Use this for strength / Hevy cycles: the schedule references Hevy routines by id + title (get them from the hevy-mcp first). These sessions are plan markers only — they are NOT pushed to the Apple Watch (that's for running interval workouts). Completed strength sessions auto-match by date via the HealthKit traditionalStrength workouts that Hevy already syncs in.

IMPORTANT — avoid conflicts: call get_training_calendar first to see scheduled runs, and place strength days on free weekdays. The response also returns a warnings list flagging any day where a strength session lands on the same date as a scheduled run (surfaced, not blocked — you decide).

Args: plan_id: UUID of the plan this cycle belongs to (create one first via create_plan with activity_type "strength"). start_date: First week's anchor date (YYYY-MM-DD). weeks: How many weeks the cycle runs (1–52). days: Which weekday gets which routine — set only the days that have a session. Example: { "mon": {"title": "Lower", "routineId": "hevy-abc"}, "wed": {"title": "Upper Push", "routineId": "hevy-def"}, "fri": {"title": "Deadlifts + Pull", "routineId": "hevy-ghi"} } time: Optional default time of day "HH:MM". timezone: Optional IANA timezone (e.g. "Europe/Lisbon").

Returns: The resolved schedule: concrete dated sessions (each with a conflict flag) and a warnings list for run collisions.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "plan_id": "<plan_id>",
      "start_date": "<start_date>",
      "weeks": "<weeks>",
      "days": "<days>"
    },
    "name": "set_strength_schedule"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysYesWhich weekdays have a session. Set only the days that do; at least one.
timeNo
weeksYes
plan_idYes
timezoneNo
start_dateYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.36

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden and does well: it explains that sessions are plan markers, are not pushed to Apple Watch, auto-match HealthKit strength workouts, and that run conflicts are surfaced in `warnings` rather than blocked. However, it does not state whether setting a schedule replaces or clears an existing schedule, nor whether any permission or authentication constraints apply.

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 core purpose and the key scheduling distinction, then structured into practical sections for prerequisites, conflicts, args, and returns. It is long and repeats the `warnings` behavior, but most wording earns its place given the tool's complexity.

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?

For a complex, nested, six-parameter mutation tool with no output schema, the description covers the return shape via `sessions` and `warnings`, external routine references, conflict behavior, and calendar prerequisites. It is still missing whether an existing schedule is overwritten and how partial failures behave, which matters for a schedule-setting tool.

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?

Schema description coverage is low at 17%, but the description compensates by documenting every parameter: `plan_id` and its creation prerequisite, `start_date` as the first week's anchor, `weeks` with its 1–52 range, the `days` nested object with a concrete weekday example, `time` in HH:MM, and `timezone` as IANA. This adds substantial meaning beyond the schema.

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 and resource: set a recurring weekly schedule on a plan, assigning routines to weekdays for a number of weeks. It distinguishes this from `add_strength_session` and from running interval workouts, so an agent can identify its role without opening sibling schemas.

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 explicit when-to-use guidance for athletes lifting on fixed weekdays and explicit when-not guidance for athletes fitting strength around the week, directing them to `add_strength_session`. It also explains combination with `move_strength_session`/`remove_strength_session` and prerequisites such as calling `get_training_calendar` and obtaining Hevy routine ids first.

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