Skip to main content
Glama

Get a run's laps

ourpr_run_laps
Read-onlyIdempotent

The laps the watch recorded for one run, the runner's own button presses, with each lap's heart rate, max heart rate and cadence. Laps follow the workout; mile splits follow the mile. On an indoor run the laps hold its heart rate lap by lap.

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": {
      "activity_id": "<activity_id>"
    },
    "name": "ourpr_run_laps"
  }
}

Input Schema

NameRequiredDescriptionDefault
activity_idYesRun id from ourpr_list_runs.

Output Schema

NameRequiredDescriptionDefault
lapsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Changed2 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedOutput schema / properties / laps / items / propertyNames
      Added value: +{
      +  "type": "string"
      +}
  3. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered. The description adds genuine behavioral context the annotations cannot: laps are manually triggered button presses rather than auto-detected, they align to the workout structure rather than distance, and indoor runs return heart rate lap by lap. It does not say what happens when a run has no button presses (empty result vs error), which is the main remaining gap.

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?

Three compact sentences that lead with the resource and the per-lap fields, then qualify lap vs mile-split semantics, then note the indoor case. There is mild redundancy in restating heart rate twice, but no sentence is filler.

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?

The tool is simple (one required id) and an output schema exists, so return-shape explanation is not needed. The description covers what laps are, how they are scoped, and the indoor variation. Only the no-laps/empty-result case is left unaddressed for a tool whose whole premise is manual button presses.

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 100% and the single activity_id parameter is already documented as "Run id from ourpr_list_runs," so the schema carries the parameter burden. The description adds no further meaning about the id's format or provenance. Baseline 3 is appropriate for a one-parameter tool with full schema documentation.

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 the resource precisely — the watch-recorded laps for a single run — and characterizes them as the runner's manual button presses, with per-lap heart rate, max heart rate and cadence. It also conceptually separates laps from mile splits, which is a meaningful distinction. It stops short of naming which sibling to use instead (ourpr_get_run, ourpr_run_stream), so differentiation is by concept rather than by tool.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

"Laps follow the workout; mile splits follow the mile" implies when this data is the right choice, and mentioning indoor runs signals applicability there. But there is no explicit when-to-use/when-not-to-use language and no named alternative for lap-free or aggregate views. Usage is inferable rather than stated.

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