Skip to main content
Glama

list_runs

Read-onlyIdempotent

List runs in a date range, or the full saved detail of one run when run_id is given. range read: compact, Runner State summary first. Detailed range: at most 92 days, default last 7. run_id read: that run's stored splits and structured segments plus the detailed metrics Elias needs for interval analysis: structured min_hr, hr_series (minute averages, at most 600 points), hr_zones and reported_avg_pace_sec_per_mi, plus recorded_detail with the heart rate, laps and device metrics the run page shows. aggregate: totals over any range or all history -> aggregate + a numeric field (count needs none). Compact summaries, no detailed-list date cap, optional 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; not needed for a plain run count.
run_idNoRun UUID; returns the full saved run (splits, structured segments) and ignores the date range.
end_dateNoYYYY-MM-DD; default today.
group_byNoDate grouping for aggregates; omit for one total.
aggregateNoNumeric summary without per-run rows.
start_dateNoYYYY-MM-DD; default 7 days ago.
all_historyNoAggregates: 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 changed
    • changedInput schema / properties / aggregate / description
      Previous value: -"Return a numeric summary without per-run rows; detailed behavior is unchanged when omitted."New value: +"Numeric summary without per-run rows."
    • changedInput schema / properties / all_history / description
      Previous value: -"For aggregate queries, start at the earliest stored run instead of the recent default."New value: +"Aggregates: start at the earliest stored run instead of the recent default."
    • changedInput schema / properties / end_date / description
      Previous value: -"End of date range, YYYY-MM-DD; defaults to today."New value: +"YYYY-MM-DD; default today."
    • changedInput schema / properties / field / description
      Previous value: -"Numeric field to aggregate; needed except when counting all runs."New value: +"Numeric field to aggregate; not needed for a plain run count."
    • changedInput schema / properties / group_by / description
      Previous value: -"Optional date grouping for aggregates; omitted returns one total."New value: +"Date grouping for aggregates; omit for one total."
    • changedInput schema / properties / run_id / description
      Previous value: -"Specific run UUID. When provided, returns the full saved run including splits and structured segments and ignores the date range."New value: +"Run UUID; returns the full saved run (splits, structured segments) and ignores the date range."
    • changedInput schema / properties / start_date / description
      Previous value: -"Start of date range. Format: YYYY-MM-DD. Optional. Defaults to 7 days ago."New value: +"YYYY-MM-DD; default 7 days ago."
  2. Changed5 schema fields changed
    • 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"
      +}
  3. Changed3 schema fields changed
    • 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. Format: YYYY-MM-DD. Optional. Defaults to today."
    • 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."
  4. First observed

TDQS

A4.1/5.0
Behavior5/5

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

With readOnlyHint/idempotentHint already covering safety, the description adds real behavioral context: the 92-day cap on detailed range reads, the default 7-day window, compact Runner State summary ordering, the 600-point hr_series limit, and which sections come back for a run_id read. It also discloses that the date range is ignored when run_id is supplied — exactly the kind of side effect an agent needs.

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 three-mode structure with front-loaded labels ('range read:', 'run_id read:', 'aggregate:') aids scanning, but sentences are long and clause-heavy, and phrases like 'the detailed metrics Elias needs for interval analysis' and the enumerated metric list partly restate the output schema. Trimming the return-value inventory would sharpen it.

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 7-parameter, three-mode read tool with an output schema, the definition covers defaults, caps, and mode behavior well. The remaining gap is mode-precedence and interaction with the aggregate path when run_id is also present, plus no mention of pagination or result limits on plain range listing.

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 100%, so the baseline is 3; the description goes further by tying parameters together (aggregate requires a numeric field, count needs none, group_by is only meaningful for aggregates, run_id overrides the range). A few of these points are duplicated from the schema's own field text, which keeps it from a 5.

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 names a specific verb and resource (list runs) and enumerates three distinct modes: compact range read, single-run detail via run_id, and aggregate over any range. It never contrasts itself with the sibling show_runs, so an agent must still guess which of the two to pick for a run listing.

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?

Mode selection is stated conditionally and concretely: use run_id for one run's saved detail, set aggregate plus a numeric field for totals (count needs none), and note that aggregate bypasses the detailed-list date cap. What is missing is any when-not or explicit alternative (e.g. when show_runs is the better call) and how to resolve conflicting arguments such as run_id together with aggregate.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.