Skip to main content
Glama
Loopback Training Server

Loopback Training Server

update_workout_status

Update a workout queue item's lifecycle status to track progress from pending to completed, record fetch or completion times, or mark skipped items as retired.

Instructions

Update the status of a queue item.

Lifecycle: pending -> fetched -> synced -> completed. "skipped" retires the item (the watch endpoints stop serving it and it no longer counts as a schedule collision) — normally set via missed-workout feedback with action "skip", but it can be set directly here too.

Args: item_id: UUID of the queue item. status: New status. Setting "fetched" records the fetch timestamp; "completed" records the completion timestamp.

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>",
      "status": "<status>"
    },
    "name": "update_workout_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
statusYes
item_idYes

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 full burden and does substantial work: it discloses the full state lifecycle, the side effects of "skipped" (watch endpoints stop serving it, no longer counts as a schedule collision), and the implicit timestamp writes for "fetched" and "completed." It does not cover permissions, idempotency, or what happens on an invalid transition.

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 one-line purpose, then lifecycle, then args, then returns, and every block is relevant. It is somewhat longer than necessary for two parameters, but no sentence is filler.

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 two-parameter mutation with no annotations and no output schema, the definition covers purpose, state model, side effects, both parameters, and the return value. An agent has enough to call it correctly without opening the schema.

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 0%, so the description must compensate, and it does: item_id is identified as the UUID of the queue item and status is explained with per-value side effects (timestamps for fetched/completed) rather than just repeating the enum. This adds meaning the bare enum in the schema cannot convey.

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 first line states a specific verb and resource ("Update the status of a queue item") and the lifecycle sentence pins down exactly which field is being mutated. It stops short of naming a sibling to distinguish from, and the resource wording ("queue item") differs slightly from the tool name's "workout," which an agent must reconcile from context.

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?

It gives a genuine recommendation about when not to use the direct path: "skipped" is "normally set via missed-workout feedback with action 'skip', but it can be set directly here too." That is real routing guidance. It says nothing about when to prefer this over update_queued_workout or how to choose between pending/synced/fetched/completed in normal flow.

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