Skip to main content
Glama
Loopback Training Server

Loopback Training Server

get_setbacks

Retrieve an athlete's illness and injury history with daily status check-ins to see how often setbacks occur, how long they last, and how past ones compare.

Instructions

List the athlete's illnesses and injuries, with how they felt day by day.

get_plan_context already hands you the open ones and the ones that ended in the last three weeks, so you rarely need this at the start of a conversation. Use it for the history: how often the athlete is set back, how long each one lasted, and how past ones compare with the current one.

READING ONE AGAINST THE DATA. A setback gives you the dates; the effect is in the other tools. To see what an illness did, compare the days from startDate on with the two to four weeks before it: resting heart rate, HRV, respiratory rate, sleeping wrist temperature and sleep from get_health_metrics, and for the runs after it the heart rate at a given easy pace and the heart rate recovery from get_recent_runs and get_workout_detail. Raised resting heart rate and lowered HRV that have come back to the earlier range for a few days in a row, together with the athlete saying they feel fine, is what recovered looks like. For an injury the numbers say little: go by the daily status and by runs completed without pain. Say what you see and how sure you are; this is not a diagnosis.

Args: active_only: Only setbacks that are still going on. since: Only setbacks still going on or ended on or after this day (YYYY-MM-DD).

Returns: List of setbacks, open ones first, then the most recently started. Keys are camelCase:

- id: pass to update_setback and log_setback_status.
- kind: "illness" or "injury".
- severity: "mild", "moderate" or "severe", the athlete's own call.
- startDate / endDate: first and last day (YYYY-MM-DD, the athlete's
  local days). endDate is null while it is still going on.
- active: true while there is no end date.
- days: length in days, both ends counted; for an open one, through
  today.
- bodyPart: injuries only, free text; may be null.
- note: the athlete's description; may be null.
- checkins: one entry per day the athlete (or you) recorded a status,
  oldest first: date, status ("worse", "same", "better", "fine"),
  note. Days without an entry were simply not recorded.
- recovery: open setbacks only, else null. The server's own read of
  whether it looks over. `status` is "looks_recovered", "not_yet" or
  "insufficient_data"; `summary` says why in a sentence; `metrics`
  lists resting heart rate, HRV, breathing rate and sleeping wrist
  temperature (those the athlete has data for) with the
  athlete's `usual` (median of the four weeks before), the
  `tolerance` around it, the `latest` reading and its `state`
  ("normal", "off", "no_recent_data"). `basis` is "metrics" or
  "status" (the athlete said "fine" two days running, or a fresh
  "worse"/"same" is holding it back). It is a prompt to ask the
  athlete, never grounds to close a setback yourself. Injuries get
  no metrics: the numbers say little about them.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_setbacks"
  }
}

Input Schema

NameRequiredDescriptionDefault
sinceNo
active_onlyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.36

TDQS

A4.9/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 does so: it discloses return ordering (open first, then most recently started), null semantics for endDate/bodyPart/note/recovery, that checkins are sparse because unrecorded days simply have no entry, and that recovery.status is the server's own read. It also adds a behavioral constraint the agent would otherwise get wrong — the recovery block is "a prompt to ask the athlete, never grounds to close a setback yourself" — and warns that injuries get no metrics.

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 purpose then when-to-use, and the Returns block is well organized with per-key bullets. The "READING ONE AGAINST THE DATA" section is long and is really analysis methodology that overlaps with get_coaching_playbook's territory, though it is genuinely useful and not padded with 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?

There is no output schema and no annotations, and the description compensates fully by enumerating every return key in camelCase, including nested checkins and recovery fields, and by naming the downstream tools that use `id`. For a two-parameter read tool it leaves nothing an agent would need in order to call and interpret it.

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 does. It documents both parameters, including the non-obvious semantics of `since` (still-going OR ended on/after that day, not merely started after it) and the date format, plus `active_only` as "only setbacks that are still going on" — meaning beyond what the bare `{since: string|null, active_only: boolean}` schema conveys.

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 and resource — "List the athlete's illnesses and injuries, with how they felt day by day" — and immediately differentiates itself from get_plan_context by naming what that sibling already returns (open setbacks plus those ended in the last three weeks). An agent can distinguish the two without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit when-not guidance ("you rarely need this at the start of a conversation" because get_plan_context covers the recent window) and explicit when-to guidance (history: frequency, duration, comparison of past setbacks to the current one). The alternative tool and the condition that selects it are both named.

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