Skip to main content
Glama

get_records

Read-only

The athlete's BESTS, for one sport, in two windows at once: the last 90 days and all time. Cycling returns best average watts over 18 windows (5s…3h); running returns the fastest time over 12 distances (400m…50km) with the pace. Each row names the session it came from, and a 90-day row is marked either as still being the all-time best or with how far short it fell — that gap is the honest read on current form, far better than an absolute number. Use it to anchor threshold estimates in real efforts, to spot a decayed top end (short windows down, long ones intact), to size interval targets off what the athlete has actually held, and to tell a genuine PR from a good day. Bests come from the full-resolution stream at import, so they match what the athlete's head unit reported. pending > 0 means some older sessions haven't been scored yet (they get scored a few per sync) — say so rather than calling a number final. ALSO RETURNS THE THREE READINGS THE RECORDS PAGE SHOWS THE ATHLETE, off these same peaks, so you and the page can never quote different numbers: threshold (cp lo-hi + the anchor efforts), battery (W') and fade (the power law) — the three the athlete sees side by side on that page. The result carries the same howToRead block as estimate_thresholds; follow it.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sportYeswhich sport's records

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare this as a safe read, but the description goes well beyond them: data provenance (bests derived from the full-resolution import stream, matching the head unit), the meaning of the `pending` counter and how to phrase results that aren't final, and the fact that it also returns the threshold/battery/fade readings shown on the athlete's Records page.

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?

The core purpose and the two-window mechanics are front-loaded, and each paragraph carries distinct information. It is longer than needed in places (e.g., the aside about never quoting different numbers than the page), which slightly dilutes scannability but does not bury the key points.

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?

No output schema exists, so the description carries the full burden of describing return values, and it does: row contents, session provenance, the 90-day gap marker, the threshold/battery/fade readings, and the pending state. Nothing essential for calling or interpreting the result is missing.

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?

There is only one parameter, and the 100%-covered enum schema already documents it. The description adds real meaning by explaining what each enum branch yields (cycling: best average watts over 18 windows; running: fastest time over 12 distances with pace), though it does not add any parameter syntax beyond that.

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+resource and the exact scope: the athlete's bests for one sport across the last-90-day and all-time windows, with per-sport peak definitions (18 power windows vs 12 run distances). It is clearly distinguishable from siblings like estimate_thresholds or get_metric_history 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?

Gives concrete when-to-use scenarios (anchor threshold estimates, spot a decayed top end, size interval targets, distinguish a true PR from a good day) and explains how to read the 90-day-vs-all-time gap. It also flags the `pending` > 0 caveat and routes the agent to the shared `howToRead` block used by estimate_thresholds.

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