Skip to main content
Glama

PB-Runner: Running Coach

get_training_summary

Read-only

A rollup of the user's training over a timeframe: run count, total distance/duration/elevation, longest run, and a by-workout-type breakdown (count, distance, avg pace, avg HR). An untyped run is counted under its run_category. timeframe: pass {preset} = this_week|last_7_days|this_month|last_30_days|this_year, or {from,to} ISO timestamps. 'this_week' is the CALENDAR week (Monday→now, matching the app's Training Hub); use 'last_7_days' for a rolling 7-day window. from and to must be supplied together. Report figures directly in the user's units; a null metric was not recorded, never 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. runs_quarantined counts runs left out of this response entirely because their own two clocks contradict each other — a run's pause-excluded moving time exceeding its own wall clock, so it can price nothing; the key is absent when there were none, and it says something different from duplicates_collapsed: a quarantined run was dropped on purpose, not folded into another copy of itself.

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

Input Schema

NameRequiredDescriptionDefault
toNo
fromNo
presetNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Adds substantial behavior beyond the annotations: duplicate copies of the same run are folded and reported via duplicates_collapsed, runs with contradictory internal clocks are excluded and counted in runs_quarantined (key absent when zero), the 12-hour span exemption for folding, and the rule that a null metric means unrecorded rather than zero. These are non-obvious semantics an agent could not infer from readOnlyHint/destructiveHint alone.

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-loads the payload summary, then groups timeframe rules, unit/reporting conventions, and duplicate/quarantine semantics in a logical order. It is dense and runs long, with mild redundancy in the closing clause re-explaining how quarantine differs from duplicates_collapsed, which restates a distinction already implied earlier.

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 three undocumented parameters, and the description compensates for both by enumerating the returned metrics and fully specifying parameter forms. The duplicate/quarantine accounting is the kind of subtlety that would otherwise produce wrong conclusions, and it is covered.

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 carries the full burden — and it does: it enumerates the five valid preset values, specifies ISO timestamps for from/to, and gives the mutual-dependency constraint that they must be supplied together. That is more semantic detail than the bare 'string' schema provides.

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?

States a specific verb and resource — 'a rollup of the user's training over a timeframe' — and enumerates exactly what the rollup contains (run count, distance/duration/elevation, longest run, by-workout-type breakdown). The word 'rollup' plus the field list makes it obvious this is an aggregate tool, distinct from the per-run listing siblings like get_runs or get_run.

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?

Gives concrete selection guidance between presets, explicitly contrasting 'this_week' (calendar week Monday→now) with 'last_7_days' (rolling), and states that from/to must be supplied together. It stops short of explicitly naming a sibling alternative for per-run detail, so it is clear context rather than a full when/when-not rule set.

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