Skip to main content
Glama

Icu Update Sport Settings

icu_update_sport_settings
Idempotent

Update sport thresholds, explicit HR/power zones, and custom field defaults so future activities use the correct training zones; past activities retain prior zones.

Instructions

Update sport settings: thresholds, explicit HR/power zones, custom field defaults.

Explicit zones replace the threshold-derived ones (e.g. to match a lab test). Changes apply from now on; past activities keep the zones they were analysed with. To re-zone past activities, tell the user to use Update zones in the Intervals.icu activity list view (not in the API).

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": {
      "sport_id": "<sport_id>"
    },
    "name": "icu_update_sport_settings"
  }
}

Input Schema

NameRequiredDescriptionDefault
ftpNoFunctional Threshold Power in watts (for cycling)
fthrNoFunctional Threshold Heart Rate in bpm
max_hrNoMax HR in bpm. Optional with hr_zones (taken from the last bound); if sent, it must equal that bound
hr_zonesNoExplicit HR zone upper bounds in bpm, strictly increasing (e.g. lab VT1/VT2). The last bound is the max HR: Intervals.icu sets max_hr to it
sport_idYesID of the sport settings to update
athlete_idNoAthlete ID (for coaches managing multiple athletes)
indoor_ftpNoIndoor Functional Threshold Power in watts (for cycling)
custom_fieldsNoDefault values for custom activity fields, keyed by field code or display name (e.g. {'VT1': 245}). Merged by the API into the existing defaults; fields not listed are kept. null clears a value
hr_zone_namesNoOne name per hr_zones bound
pace_thresholdNoThreshold pace in min/km (e.g., 4.5 for 4:30/km)
sweet_spot_maxNoSweet spot upper bound, % of FTP
sweet_spot_minNoSweet spot lower bound, % of FTP
swim_thresholdNoSwim threshold in min/100m (e.g., 1.5 for 1:30/100m)
recalc_hr_zonesNoRescale HR zones when fthr changes. Explicit lab zones are rescaled too; pass false to keep them. Zones sent in the same call are kept either way
power_zone_namesNoOne name per power_zones_percent_ftp bound
power_zones_percent_ftpNoExplicit power zone upper bounds as % of FTP (not watts), strictly increasing, each <= 200; a final 999 makes the top zone open-ended

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare non-read-only, idempotent, non-destructive, open-world, so the safety profile is covered; the description adds the important forward-only semantics ("Changes apply from now on; past activities keep the zones they were analysed with"). It also flags a boundary the API cannot cross (re-zoning history requires the Intervals.icu UI), which is behavior no annotation conveys.

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?

Four short sentences, purpose front-loaded, then the replacement semantic, then the temporal scope, then the API limitation. No filler and no repetition of schema detail.

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?

For a 16-parameter mutation with full schema descriptions and an output schema, the description supplies exactly the cross-cutting facts an agent cannot get from the fields: replacement semantics, forward-only effect, and the UI-only escape hatch for historical data.

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 coverage is 100%, so the baseline is 3; the description still adds meaning the schema does not, namely that explicit zones replace threshold-derived ones and that zone changes do not retroactively apply. It does not discuss recalc_hr_zones or the array-length/name-alignment rules, but those are documented in the schema itself.

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 opens with a specific verb+resource ("Update sport settings") and enumerates the domains touched: thresholds, explicit HR/power zones, custom field defaults. That is enough to separate it from icu_get_sport_settings and icu_create_sport_settings, though it never names those siblings explicitly.

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?

It gives a concrete motivating scenario for explicit zones ("to match a lab test") and states the scope of effect, which tells an agent when this call is the right one. The one gap is that it never explicitly says to use icu_create_sport_settings for a sport that has no settings yet.

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

Deploy Server

Other Tools