Skip to main content
Glama
Loopback Training Server

Loopback Training Server

edit_scheduled_workout

Updates a workout already synced to Apple Watch by queuing a pending replacement, including schedule and intervals, applied on the next iPhone sync.

Instructions

Edit a workout that has already been synced to the user's Apple Watch.

Creates a pending edit action with the full updated composition. The next time the iPhone app syncs, it will replace the old workout with this updated version in WorkoutKit on the Apple Watch. Steps support the same goals and alerts as create_workout — pace/speed range, heart-rate range, heart-rate zone (1-5), cadence, power — see the input schema.

Args: workout_id: UUID of the workout to edit. Must match the id from the original queue item that was synced to the watch. display_name: Updated name shown on Apple Watch. activity_type: Sport for the WorkoutKit session. location: Either "outdoor" or "indoor". scheduled_date: Updated scheduled date, ISO 8601 (e.g. "2026-03-25T07:00:00Z"). blocks: Updated interval blocks (replaces the whole structure). warmup: Optional updated warmup step. cooldown: Optional updated cooldown step.

Returns: The created action object.

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": {
      "workout_id": "<workout_id>",
      "display_name": "<display_name>",
      "activity_type": "<activity_type>",
      "location": "<location>",
      "scheduled_date": "<scheduled_date>",
      "blocks": "<blocks>"
    },
    "name": "edit_scheduled_workout"
  }
}

Input Schema

NameRequiredDescriptionDefault
blocksYes
warmupNo
cooldownNo
locationYes
workout_idYes
display_nameYes
activity_typeYes
scheduled_dateYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.36

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral burden well: it explains that the call creates a pending edit action, that the replacement happens on the next iPhone app sync, and that the old watch workout is replaced. It does not cover permissions, failure behavior, or idempotency, which are relevant for a mutation.

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 purpose and sync behavior, then uses a compact Args block to add parameter meaning. It is slightly long but each section is structured and mostly earns its place.

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 mutation with eight parameters, no annotations, and no output schema, the definition is largely complete: it covers purpose, asynchronous sync behavior, parameter semantics, and the return object. Missing pieces are explicit sibling routing and failure/error behavior.

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 description coverage is 0%, but the description documents all eight top-level parameters, including the requirement that workout_id match the original synced queue item, that blocks replaces the whole structure, and that scheduled_date is ISO 8601. It defers detailed step goal/alert semantics to the schema, which is reasonable but leaves some nested meaning unelaborated.

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?

States a specific verb and resource: editing a workout that has already been synced to the Apple Watch. This distinguishes it from creating a workout and from editing a merely queued workout.

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 clearly establishes the usage context: use this when the workout has already been synced to the watch. It does not explicitly name the sibling alternative update_queued_workout or state when not to use this tool, so it falls short of full routing guidance.

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