Skip to main content
Glama
Loopback Training Server

Loopback Training Server

batch_create_workouts

Queue multiple Apple Watch workouts in one call to schedule an entire training plan, then review validation warnings for schedule issues before finalizing.

Instructions

Queue multiple workouts for Apple Watch in a single call.

Use this instead of calling create_workout repeatedly when you need to schedule an entire training plan (e.g. 4 weeks of workouts). Each workout supports the same full composition as create_workout: interval blocks, warmup/cooldown, goals (distance/time/energy/open), and per-step alerts — pace/speed range, heart-rate range, heart-rate zone (1-5), cadence, power.

Args: workouts: Workouts to queue — see the input schema for the full structure. Omit workoutData.id to have a UUID generated per workout. Set planId to link a workout to a training plan.

Example: workouts: [ { "activityType": "running", "title": "Easy Z2 5K", "workoutData": { "displayName": "Easy Z2 5K", "activityType": "running", "location": "outdoor", "scheduledDate": "2026-03-20T07:00:00Z", "blocks": [{"iterations": 1, "steps": [{"purpose": "work", "goal": {"type": "distance", "value": 5000, "unit": "meters"}, "alert": {"type": "heartRateZone", "zone": 2}}]}] } } ]

Returns: Object with items (the created queue items) and validation — a list of schedule-soundness warnings (ramp rate vs the athlete's actual 4-week baseline, missing down weeks, long-run share, back-to-back hard days, taper shape, guardrail breaches, …) covering the athlete's whole upcoming schedule. ALWAYS review it after queueing a plan: resolve critical warnings (adjust and re-queue, or get the athlete's explicit sign-off); mention warn items. Warnings never block creation.

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": {
      "workouts": "<workouts>"
    },
    "name": "batch_create_workouts"
  }
}

Input Schema

NameRequiredDescriptionDefault
workoutsYes

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 burden and does a lot: it discloses UUID auto-generation when workoutData.id is omitted, plan linkage via planId, the shape of the response (items + validation), what validation covers, and crucially that warnings never block creation. Remaining gaps are atomicity/partial-failure semantics (what happens if one workout in the batch is invalid) and any batch-size or auth constraints.

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 the alternative before any detail, then Args/Example/Returns in a scannable structure. The example is long but earns its place given the deeply nested payload; the sentence enumerating blocks/warmup/cooldown/goals/alerts slightly restates the schema.

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 very complex nested input with no output schema and no annotations, the description covers purpose, alternative, key field behaviors, a representative example, and a full account of the return payload and how to act on it. Only edge-case behavior (batch atomicity, size limits) is unaddressed, which is minor at this level of coverage.

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 reported at 0% for the top-level parameter, so the description must compensate, and it does: it explains the omit-id-to-autogenerate behavior, the planId linkage, and provides a complete worked example of a nested workout object. It defers the rest of the structure to the schema, which is reasonable given the schema's own nested field descriptions, but leaves the top-level workouts entry semantics thin beyond the example.

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?

Opens with a specific verb and resource plus scope: "Queue multiple workouts for Apple Watch in a single call." It immediately distinguishes itself from the sibling create_workout by naming it, so an agent can tell batch vs. single creation apart 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 Guidelines5/5

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

Explicitly states the alternative ("Use this instead of calling create_workout repeatedly") and the condition that selects it ("when you need to schedule an entire training plan (e.g. 4 weeks)"). It also gives post-call guidance — always review validation, resolve critical warnings, mention warn items — which tells the agent what to do after invoking.

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