Skip to main content
Glama

PB-Runner: Running Coach

compare_runs

Read-only

Summarize and compare filtered sets of the user's runs. Pass a (and optionally b) as a filter: { type (just_a_run|easy|tempo|long|race|intervals|trail; omit = all types), min_distance_m, max_distance_m, preset (this_week = calendar week Mon→now | last_7_days = rolling | this_month | last_30_days | this_year) or from/to ISO timestamps supplied together (omit both = all time) }. type all = every type; an untyped run (e.g. a Garmin Connect run) matches by its run_category. With a only: returns that set's count, date range, and per-metric {avg, min, max} for pace_s_per_km, heart_rate_bpm, cadence_spm, elevation_gain_m, distance_m — for pace, min = fastest; for distance, max = longest. With a and b: also returns delta (b.avg - a.avg) per metric. Aggregate only — use get_runs for individual runs, get_progression for the trend. Runs under 1 km are excluded as noise. Walk-paced runs (moving pace slower than 9:00/km, or under 130 steps/min slower than 7:00/km, never interval sessions or runs at 150 steps/min or more) are left out and counted in walk_paced_excluded, absent when none. A null metric was not recorded; never treat it as zero. Copies of the same run from two apps are counted once; duplicates_collapsed says how many were folded. A row whose own span is over 12 hours is never folded, so a duplicated ultra beyond that still counts as stored.

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": {
      "a": "<a>"
    },
    "name": "compare_runs"
  }
}

Input Schema

NameRequiredDescriptionDefault
aYes
bNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already declare readOnly/openWorld=false/destructive=false, so the safety profile is covered and the description goes well beyond it: noise filtering under 1 km, walk-pace heuristics with explicit thresholds, duplicate collapsing across apps with the 12-hour ultra exception, and the null-metric contract ('never treat it as zero'). These are exactly the behaviors an agent cannot infer and would otherwise misreport.

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 the one-line purpose and the a/b distinction before the detail dump, and virtually no sentence is filler. However, the large parenthetical cramming type/preset/distance options into the second sentence is hard to scan, and the tail about 12-hour-span ultras is dense prose where a shorter clause would do.

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?

Given a two-param nested schema with no field descriptions, no output schema, and no enum documentation, the description covers filters, invocation modes, returned fields (count, date range, per-metric avg/min/max, deltas), plus the exclusion counters. Everything needed to call it and interpret the result is present.

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% and the params are nested objects, so the description carries the full burden and does so: it enumerates the `type` values, the `preset` values with their calendar semantics (this_week = Mon→now vs last_7_days = rolling), the rule that from/to must be supplied together, and the edge case that an untyped run matches by run_category. This is substantial meaning added beyond the bare schema.

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+resource: 'Summarize and compare filtered sets of the user's runs', then immediately splits the a-only vs a+b behavior, which is the real semantic core of the tool. It explicitly disambiguates from siblings ('use get_runs for individual runs, get_progression for the trend'), so an agent can route without opening any 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?

States the alternative tools by name and the condition that selects them ('Aggregate only'), and explains the two invocation modes: `a` alone returns one set's summary, `a` plus `b` adds deltas. Exclusions (runs under 1 km, walk-paced runs) tell the agent what input will yield surprising results.

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.

Resources