Skip to main content
Glama
Wellness Project MCP

Wellness Project MCP

list_runs

Read-onlyIdempotent

List runs within a date range for compact Runner State summaries, or retrieve one run’s saved splits, structured segments, and detailed heart-rate metrics by ID.

Instructions

List runs within a date range, or return full saved detail for one run when run_id is provided. Range reads stay compact and return a Runner State summary first. A run_id read returns that run's stored splits and structured segments plus the detailed metrics Elias needs for interval analysis. Individual run reads expose structured min_hr, hr_series (minute averages, at most 600 points), hr_zones and reported_avg_pace_sec_per_mi, plus recorded_detail with heart rate, laps and device metrics the run page shows.

DETAILED RANGE: at most 92 days, defaulting to the last 7 days. For totals over any range or all history, use aggregate with a numeric field (except when counting sessions). The aggregate mode returns compact summaries, bypasses the detailed-list date cap, and can group by day, month or year.

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": "list_runs"
  }
}

Input Schema

NameRequiredDescriptionDefault
fieldNoNumeric field to aggregate; needed except when counting all runs.
run_idNoSpecific run UUID. When provided, returns the full saved run including splits and structured segments and ignores the date range.
end_dateNoEnd of date range, YYYY-MM-DD; defaults to today.
group_byNoOptional date grouping for aggregates; omitted returns one total.
aggregateNoReturn a numeric summary without per-run rows; detailed behavior is unchanged when omitted.
start_dateNoStart of date range. Format: YYYY-MM-DD. Optional. Defaults to 7 days ago.
all_historyNoFor aggregate queries, start at the earliest stored run instead of the recent default.

Output Schema

NameRequiredDescriptionDefault
resultYesHuman-readable result text returned by the tool.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv1.3.0
    • addedInput schema / properties / aggregate
      Added value: +{
      +  "description": "Return a numeric summary without per-run rows; detailed behavior is unchanged when omitted.",
      +  "enum": [
      +    "sum",
      +    "avg",
      +    "min",
      +    "max",
      +    "count"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / all_history
      Added value: +{
      +  "description": "For aggregate queries, start at the earliest stored run instead of the recent default.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / end_date / description
      Previous value: -"End of date range. Format: YYYY-MM-DD. Optional — defaults to today."New value: +"End of date range, YYYY-MM-DD; defaults to today."
    • addedInput schema / properties / field
      Added value: +{
      +  "description": "Numeric field to aggregate; needed except when counting all runs.",
      +  "enum": [
      +    "distance_mi",
      +    "duration_sec",
      +    "elapsed_sec",
      +    "avg_hr",
      +    "avg_cadence_spm",
      +    "avg_power_w",
      +    "elevation_gain_m",
      +    "rpe",
      +    "heart_points_moderate",
      +    "heart_points_peak"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / group_by
      Added value: +{
      +  "description": "Optional date grouping for aggregates; omitted returns one total.",
      +  "enum": [
      +    "day",
      +    "month",
      +    "year"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / run_id
      Added value: +{
      +  "description": "Specific run UUID. When provided, returns the full saved run including splits and structured segments and ignores the date range.",
      +  "type": "string"
      +}
    • changedInput schema / properties / start_date / description
      Previous value: -"Start of date range. Format: YYYY-MM-DD. Optional — defaults to 7 days ago."New value: +"Start of date range. Format: YYYY-MM-DD. Optional. Defaults to 7 days ago."
  2. First observedv1.2.1

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the description's real contribution is operational: the 92-day detailed-range cap, the 7-day default, run_id overriding the date filter, the compact Runner State summary returned first, and the 600-point ceiling on hr_series. Those are genuine traits an agent could not infer from the schema. It stops short of noting any rate limits or performance characteristics of the all_history path.

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 mode distinction is front-loaded, which is correct, but the opening sentence is dense and the second half spends several clauses enumerating return fields (splits, segments, min_hr, hr_series, hr_zones, recorded_detail) that an output schema already covers. The unexplained reference to a persona ('metrics Elias needs') adds noise without helping tool selection.

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?

For a seven-parameter multi-mode read tool with an output schema and full annotation coverage, the description covers the modes, the date defaults and caps, and the aggregate escape hatch, which is most of what an agent needs. The main omission is the relationship to overlapping siblings such as show_runs and show_workouts.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents every parameter including enums and date formats; baseline is 3. The description does add marginal semantics, notably that aggregate mode bypasses the date cap and that field is required except when counting, but much of the parameter wording restates what the schema says (run_id ignoring the range, group_by grouping).

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 description states a specific verb+resource (list runs) and clearly distinguishes two operating modes: a date-range list and a single-run detail read keyed on run_id. It also calls out the aggregate numeric-summary mode, so an agent can tell the three behaviors apart. It does not, however, distinguish itself from the sibling show_runs, which likely overlaps in purpose.

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 explicit routing guidance: use aggregate with a numeric field for totals over any range or all history, except when counting sessions, and it explains that aggregate bypasses the detailed-list date cap. The 92-day cap and 7-day default are stated as constraints, and the run_id path is described as ignoring the range. The gap is that no alternative is named for the show_runs sibling, and there is no explicit statement of when NOT to use the list mode beyond the aggregate redirect.

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