Skip to main content
Glama
Loopback Training Server

Loopback Training Server

get_recent_runs

List recent workouts filtered by activity type, date range, or shoe pair to review training history. Returns run details like duration, distance, heart rate, effort score, and shoes worn.

Instructions

List recent workouts, optionally filtered by activity type, date range and the pair of shoes they were done in.

Args: activity_type: Filter by activity type (e.g. "running", "cycling", "swimming"). If omitted, returns all activity types. limit: Maximum number of workouts to return (default 10, max 200). start_after: Only return workouts starting after this datetime (ISO 8601). Example: "2026-03-01T00:00:00" start_before: Only return workouts starting before this datetime (ISO 8601). Example: "2026-03-15T23:59:59" shoe_id: Only return workouts done in this pair of shoes (an id from get_shoes).

Returns: List of workout objects with fields: id, activity_type, start_date, end_date, duration, total_distance, total_energy_burned, source, plan_workout_id, shoe_id, shoe_confirmed, effort_score, estimated_effort_score, end_heart_rate, heart_rate_after_1min, heart_rate_after_2min, vo2_max, created_at.

- shoe_id: the pair of shoes the athlete has on this workout; look it
  up in get_shoes. Null means no pair was recorded, not barefoot.
- shoe_confirmed: false means nobody has checked the pair — the run
  still has whatever it got automatically (the default pair, or none).
  See get_shoes for when that is worth asking the athlete about.

- source: the HealthKit bundle id of the recording app —
  "com.apple.health.<UUID>" means recorded directly on the Apple Watch
  (the UUID is the device, not an app); others name the app, e.g.
  com.hevyapp.hevy (Hevy strength), com.strava.stravaride (Strava),
  com.garmin.connect.mobile (Garmin), com.bowery-digital.bend (Bend
  stretching).
- effort_score: User-rated post-workout RPE (1–10) from the Apple Watch
  effort prompt. The user's perception of the workout — trust it as the
  primary signal. May be null when the workout predates iOS 18 / watchOS 11
  or the user dismissed the prompt.
- estimated_effort_score: Apple's algorithmic RPE estimate (1–10) computed
  from heart rate / activity. Useful for cross-referencing against
  effort_score; a large gap (e.g. user 8 vs. estimate 5) can indicate
  non-cardiovascular load (heat, sleep debt, dehydration, illness, life
  stress) that HR-based estimates miss — worth surfacing during weekly
  review when it appears repeatedly. May be null when no estimate exists.

Treat null as "no signal," not "low effort."

- end_heart_rate, heart_rate_after_1min, heart_rate_after_2min: heart
  rate (bpm) as the workout ended and one and two minutes later. The
  recovery drop is end_heart_rate minus the later reading. How the
  athlete stopped decides most of it: a hard effort ended abruptly
  gives a large drop, an easy run or a jogged cooldown a small one, so
  compare only like with like (intervals with intervals, races with
  races) and read a trend over several such sessions, never one run.
  A falling drop across comparable hard sessions can point to fatigue;
  resting heart rate and HRV are the stronger signals for that. Null
  when the watch recorded nothing usable after the end, or the workout
  was paused well before it was ended.
- vo2_max: the VO2 max estimate (mL/kg/min) Apple Health recorded for
  this workout. Only some outdoor runs, walks and hikes produce one,
  and a single reading moves with heat, hills and pacing; the trend
  is what counts. Null means none was recorded for this workout, or
  the athlete does not share body data with the coach. Do not ask
  them to start tracking it.

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

Input Schema

NameRequiredDescriptionDefault
limitNo
shoe_idNo
start_afterNo
start_beforeNo
activity_typeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.36

TDQS

A4.3/5.0
Behavior5/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 so: it explains default and max limit, ISO 8601 datetime format, the null-means-no-signal rule, the meaning of source bundle ids including the Apple Watch UUID case, and the interpretation limits of HR recovery and VO2 max. This is unusually rich behavioral context for a read tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The scope sentence is correctly front-loaded and the Args/Returns split is easy to scan, but the Returns section runs long with coaching commentary (HR recovery interpretation, VO2 max caveats, source bundle examples) that is useful yet padded. An agent must read well past the call-relevant content to reach the end.

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?

With no output schema, the description fully enumerates the returned fields and their null semantics, which is the critical missing piece elsewhere. The remaining gap is ordering/pagination: "recent" implies but never states sort order or whether limit truncates from the newest end.

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 coverage is 0%, so the description must compensate, and it documents every one of the five parameters: example activity types, default 10 / max 200 for limit, ISO 8601 datetime format with concrete examples for both bounds, and the shoe_id provenance link to get_shoes. This adds meaning well beyond the bare schema.

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 opening sentence gives a specific verb and resource ("List recent workouts") plus the available filters, so an agent can distinguish it from single-item siblings like get_workout_detail or get_workout_splits. It does not explicitly name the alternatives it replaces, keeping it short of a 5.

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 sets the retrieval context (recent workouts, optional filters) and routes the agent to get_shoes for resolving shoe_id, including when shoe_confirmed matters. It also signals when estimated_effort_score gaps are worth surfacing (weekly review), but gives no explicit exclusion such as pointing to a detail tool once an id is known.

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