Skip to main content
Glama

PB-Runner: Running Coach

coach_get_run_streams

Read-only

COACH TOOL — time-resolved streams for a consented athlete's run: identical payload to get_run_streams (per-stream insights incl. drift, downsampled [tSec, value] arrays, 600-point cap, narrative). Use coach_get_run for the shaped summary FIRST; reach for streams only when you need where pace cracked / HR climbed / cadence decayed within one run. A run imported from a non-Apple device may return only a coarse heart-rate line with pace/cadence/power null — that's the full extent of what the source exported, not broken sampling.

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": {
      "athlete_id": "<athlete_id>",
      "run_id": "<run_id>"
    },
    "name": "coach_get_run_streams"
  }
}

Input Schema

NameRequiredDescriptionDefault
run_idYes
metricsNoSame channels as get_run_streams
athlete_idYesFrom coach_list_athletes
resolutionNo'1s' | '5s' | '10s' | 'auto' (default)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, non-destructive, closed-world), and the description adds substantive context on top: downsampled [tSec, value] arrays with a 600-point cap, narrative output, consent scoping, and the non-Apple-import degradation case where pace/cadence/power come back null. That last point is exactly the kind of false-alarm-preventing disclosure annotations cannot carry.

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 tool identity, then decision guidance, then the caveat — a sensible ordering with no filler sentences. Mild redundancy in restating the payload equivalence to get_run_streams, but every paragraph carries information.

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 does the work of explaining the return: per-stream insights including drift, downsampled arrays, a point cap, and a narrative. The remaining gap is what metrics are returned when the parameter is omitted, which an agent would need in order to predict the payload.

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 coverage is 75%, so required ids and the resolution enum values are already documented structurally; the description only gestures at channel selection via "same channels as get_run_streams." The 600-point cap implicitly explains why resolution exists, but there is no added guidance on what a default or omitted metrics value returns, so it stays at the high-coverage baseline.

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 resource and scope: "time-resolved streams for a consented athlete's run," and pins it to a known payload shape ("identical payload to get_run_streams"). It explicitly separates itself from the sibling coach_get_run, so an agent can choose without opening either 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?

Gives an explicit ordering rule ("Use coach_get_run for the shaped summary FIRST") and a concrete trigger for escalation ("reach for streams only when you need where pace cracked / HR climbed / cadence decayed within one run"). The alternative and the condition that selects it are both named.

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