Skip to main content
Glama
Loopback Training Server

Loopback Training Server

update_queued_workout

Modify an existing queued workout before it syncs to Apple Watch; only the fields you provide change, so you can reschedule it or edit its name, activity type, interval blocks, warmup, or cooldown.

Instructions

Update an existing queued workout. Only provided fields are changed.

Use this to reschedule a workout, change the interval structure, rename it, or modify any part of the composition before it syncs to Apple Watch. Steps support the same goals and alerts (incl. heart-rate zones) as create_workout — see that tool's input schema.

Args: item_id: UUID of the queue item (from get_pending_workouts). display_name: New name shown on Apple Watch. activity_type: New activity type (running, cycling, etc.). location: New location ("outdoor" or "indoor"). scheduled_date: New scheduled date (ISO 8601). blocks: New interval blocks (replaces all existing blocks). warmup: New warmup step (omit to leave unchanged). cooldown: New cooldown step (omit to leave unchanged). clear_warmup: Set true to remove the existing warmup. clear_cooldown: Set true to remove the existing cooldown. description: New text description. plan_id: UUID of the training plan to assign this workout to.

Returns: The updated queue item 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": {
      "item_id": "<item_id>"
    },
    "name": "update_queued_workout"
  }
}

Input Schema

NameRequiredDescriptionDefault
blocksNo
warmupNo
item_idYes
plan_idNo
cooldownNo
locationNo
descriptionNo
clear_warmupNo
display_nameNo
activity_typeNo
clear_cooldownNo
scheduled_dateNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.36

TDQS

A4/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 load and does disclose meaningful behavior: partial-update semantics, that blocks replace all existing blocks, that omitting warmup/cooldown leaves them unchanged, that clear_warmup/clear_cooldown remove them, and that the updated queue item is returned. It does not address what happens if the item is already synced, error cases, or permissions, so it is strong but not exhaustive.

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 the core statement and partial-update rule, then a usage sentence, then a per-parameter list that is easy to scan. It is appropriately sized for 12 parameters; the only slack is the prose restatement of interval structure that largely duplicates the Args entries for blocks and warmup/cooldown.

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 12-parameter mutation tool with no annotations and no output schema, the definition covers the essentials and states the return value inline. The main gap is that nested structure documentation is delegated to "see that tool's input schema" for create_workout, which the calling agent may not have loaded, and the null-versus-omitted contract for optional fields is only spelled out for warmup/cooldown.

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 at the top level is 0%, so the Args block does the real work: it explains where item_id comes from, the enum-like values for activity_type and location, ISO 8601 for scheduled_date, and the replace-vs-omit distinction for blocks versus warmup/cooldown. It stops short of explaining null-vs-omit for fields like plan_id (does null unassign the plan?) and for display_name/description, leaving edge semantics to inference.

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 opens with a specific verb+resource ("Update an existing queued workout") and immediately scopes the semantics with "Only provided fields are changed." It also names concrete use cases (reschedule, change intervals, rename) that tell the agent what it can do, though it never differentiates itself from plausible siblings such as update_workout_status or edit_scheduled_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?

"Use this to reschedule a workout, change the interval structure, rename it, or modify any part of the composition before it syncs to Apple Watch" gives clear when-to-use context, and the item_id note points at get_pending_workouts as the source of the identifier. There are no explicit when-not conditions or named alternatives for cases like deleting or changing status, which keeps it below a 5.

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