Skip to main content
Glama
Loopback Training Server

Loopback Training Server

get_workout_heartrate

Retrieve the heart rate series recorded during a workout and set an optional sample cap to limit or downsample long series for analysis.

Instructions

Get the heart rate series recorded during a workout.

Args: workout_id: UUID of the workout. max_samples: Cap on series length (default 500, max 5000; null for the raw series). Longer series are downsampled by averaging over evenly-sized time buckets, so shape and peaks survive — raw counts grow with workout duration (a 3 h run is ~2000 samples).

Returns: List of {timestamp, value} heart rate samples in workout order.

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": {
      "workout_id": "<workout_id>"
    },
    "name": "get_workout_heartrate"
  }
}

Input Schema

NameRequiredDescriptionDefault
workout_idYes
max_samplesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.36

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations present, the description carries the full behavioral burden, and it does disclose the most consequential trait: longer series are downsampled by averaging over evenly-sized time buckets, so returned values are not raw data when max_samples is set. It also gives a useful sizing heuristic ('a 3 h run is ~2000 samples') and states the sample shape and ordering. It is silent on access requirements, behavior for a workout with no recorded HR data, and error cases, which leaves real gaps for a data-returning tool with zero annotation coverage.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose statement is front-loaded, followed by clearly separated Args and Returns blocks. Every sentence adds information — even the 3-hour example serves to calibrate expected sample volume — and there is no filler or repetition of the schema.

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?

For a two-parameter read tool with no output schema and no annotations, the description supplies what is needed to call it correctly: full parameter meaning, the transformation applied, and the returned element shape {timestamp, value}. It is only incomplete in not routing the agent away from or toward sibling tools and not covering the empty/no-data case.

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?

Schema description coverage is 0%, so the description must fully compensate, and it largely does: workout_id is identified as a UUID of the workout, and max_samples is explained with its default, ceiling, null semantics, and the downsampling algorithm applied when capped. The only shortfall is that the format of workout_id (where an agent obtains one) and the ordering guarantee are only implied.

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 a specific verb and resource: 'Get the heart rate series recorded during a workout.' An agent immediately knows the resource is the intra-workout HR time series, not summary metrics. It does not, however, distinguish itself from siblings such as get_health_metrics or get_workout_detail, which could plausibly also return heart-rate information.

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?

Usage guidance is limited to parameter-level choice: the default 500-sample cap, the 5000 maximum, and 'null for the raw series' with a lossy-averaging warning. There is no guidance on when to pick this tool over alternative data sources, and no stated prerequisite such as needing a valid completed workout_id.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.