Skip to main content
Glama
Loopback Training Server

Loopback Training Server

get_workout_fuel

Review what an athlete ate and drank during a workout against the planned fuelling, checking carbs, fluids and caffeine by distance and hourly rate to explain fades, stomach trouble or cramping.

Instructions

What the athlete drank and ate on one workout, next to what was planned for it.

Use it when reviewing a long run or a race, and whenever the athlete brings up fuelling, a fade, stomach trouble or cramping on a run. An empty entries usually means nothing was written down, not that nothing was taken: ask before concluding anything from it.

Args: workout_id: UUID of the workout (from get_recent_runs).

Returns: Object (camelCase) with entries and summary (what was taken), planned and plannedSummary (the plan on the session this workout counted for; empty and null when there was none), plannedSessionId.

Each entry (camelCase): id, productId (null when typed in by hand or
the product was deleted since), name, kind ("drink", "gel", "other"),
volumeMl (a drink's total), carbsG and caffeineMg (in the entry as a
whole; null means not stated, NOT zero), atDistance (METERS into the
workout, null for a drink or when not placed). Drinks come first, then
the rest in the order taken.

A summary (camelCase): volumeMl, carbsG, caffeineMg, and
carbsPerHourG / fluidPerHourMl over the workout's duration. An entry
without a figure counts as zero, so treat a total as a floor when an
entry has null carbsG. The hourly rates are null for a workout under
20 minutes and for a plan on its own.

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_fuel"
  }
}

Input Schema

NameRequiredDescriptionDefault
workout_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.36

TDQS

A4.4/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 warns that an empty entries list usually means nothing was recorded rather than nothing consumed, and explicitly instructs the agent to ask before concluding. It also states null means 'not stated, NOT zero' and that totals become floors, plus the 20-minute threshold where hourly rates go null.

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 purpose, then usage, then the empty-entries caveat, then returns — a sensible order with no filler sentences. It runs long because the Returns block enumerates entry and summary fields, but with no output schema almost all of that detail is load-bearing rather than padding.

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?

No annotations and no output schema, so the description must supply both safety-adjacent behavior and return shape, and it does: field lists for entries and summary, camelCase note, ordering (drinks first), plannedSessionId semantics, and when planned/plannedSummary are empty or null. An agent can act on this without further information.

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% and the single parameter is bare string, so the description must compensate. It does: workout_id is identified as a UUID and its provenance is given as get_recent_runs, which is enough for an agent to supply a valid value.

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 resource and scope: fuel intake for ONE workout placed next to the planned intake for that session. The singular 'one workout' plus the plan comparison cleanly separates it from get_fuel_history (multi-workout history) and get_fuel_plan (the plan alone).

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?

Gives concrete triggering situations: reviewing a long run or a race, and whenever the athlete mentions fuelling, a fade, stomach trouble or cramping. It also names get_recent_runs as the source of workout_id, which is real routing help. It stops short of naming when to prefer get_fuel_history or get_fuel_plan instead.

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