Skip to main content
Glama
Loopback Training Server

Loopback Training Server

get_workout_detail

Retrieve full details for a single workout by ID, including nested summary data, effort scores, shoe assignment, heart-rate recovery, and VO2 max.

Instructions

Get full details for a single workout by ID.

Args: workout_id: UUID of the workout.

Returns: Workout object with all fields including the nested data object (splits, structured activities, events, metadata). The raw per-second sample arrays (GPS route, cadence, heart rate — several hundred kB) are replaced by data.samplesSummary: per-series count plus avg/min/max, and elevation gain/loss for the route. Use get_workout_heartrate for the heart rate series and get_workout_splits for splits.

data.events contains only meaningful events (pause/resume); HealthKit
segment events are pruned — they duplicate the interval structure that
activities and splits already encode.

Includes effort_score (user-rated RPE 1–10 from Apple Watch effort prompt;
primary signal of perceived effort) and estimated_effort_score (Apple's
algorithmic RPE estimate 1–10). A large gap between the two can indicate
non-cardiovascular load (heat, sleep debt, illness, stress) that HR-based
estimates miss. Treat null as "no signal," not "low effort."

shoe_id is the pair of shoes on this workout (see get_shoes), or null
when none was recorded. shoe_confirmed false means that pair was
assigned automatically and nobody has checked it.

end_heart_rate, heart_rate_after_1min and heart_rate_after_2min give
the heart rate recovery after the workout, and vo2_max the estimate
Health recorded for it; see get_recent_runs for how to read them.

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

Input Schema

NameRequiredDescriptionDefault
workout_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.36

TDQS

A4.6/5.0
Behavior5/5

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

No annotations exist, so the description carries the full burden, and it does: it discloses that sample arrays are dropped and replaced with data.samplesSummary, that HealthKit segment events are pruned from data.events, and how to read effort_score vs estimated_effort_score including the explicit "Treat null as 'no signal,' not 'low effort'" caveat. It also explains shoe_confirmed=false meaning the pair was auto-assigned and unverified — behavioral context an agent could not infer from the schema.

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-loads the core purpose and uses a clean Args/Returns structure. It is long, but nearly every sentence conveys field semantics (effort scores, shoe confirmation, HR recovery, vo2_max) that an agent could not otherwise obtain, so the length is largely earned. A couple of the interpretive asides could be trimmed without loss.

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?

With no output schema and no annotations, the description must explain the return payload, and it does thoroughly: the nested data object, what samplesSummary contains, what survives in data.events, and the meaning of the effort, shoe, and recovery fields. Nothing an agent needs to interpret the response is missing.

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 0% — the single parameter is a bare {"type":"string"} with no description or format — so the description must compensate. It does, specifying "workout_id: UUID of the workout," which adds the UUID format constraint the schema lacks. The addition is real but minimal for a single-parameter tool.

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+resource: "Get full details for a single workout by ID." It then distinguishes itself from siblings by declaring that the raw per-second sample arrays are replaced by a summary and routing the agent to get_workout_heartrate and get_workout_splits for those series. An agent can tell exactly what this returns versus the narrower sibling tools.

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?

Explicitly names alternatives and the condition that selects them: "Use get_workout_heartrate for the heart rate series and get_workout_splits for splits," plus pointers to get_shoes and get_recent_runs for interpreting shoe and recovery fields. It stops short of an explicit "use this when..." framing for the top-level call, but the routing is unambiguous.

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