Skip to main content
Glama
intervals-icu-mcp
by hhopke

Icu Update Sport Settings

icu_update_sport_settings
Idempotent

Update sport thresholds, explicit HR and power zones, and custom field defaults; changes apply to future activities while past activities keep their analyzed 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. Changed1 schema field changedv5.9.1
    • addedInput schema / properties / custom_fields
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": true,
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Default 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"
      +}
  2. Changed3 schema fields changedv5.4.0
    • changedInput schema / properties / hr_zones / description
      Previous value: -"Explicit HR zone upper bounds in bpm, strictly increasing (e.g. lab VT1/VT2). The last bound becomes max_hr"New value: +"Explicit 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"
    • changedInput schema / properties / max_hr / description
      Previous value: -"Max HR in bpm; must equal the last hr_zones bound"New value: +"Max HR in bpm. Optional with hr_zones (taken from the last bound); if sent, it must equal that bound"
    • changedInput schema / properties / power_zones_percent_ftp / description
      Previous value: -"Explicit power zone upper bounds as % of FTP (not watts), strictly increasing; 999 as the last value makes the top zone open-ended"New value: +"Explicit power zone upper bounds as % of FTP (not watts), strictly increasing, each <= 200; a final 999 makes the top zone open-ended"
  3. Changed8 schema fields changedv5.2.0
    • addedInput schema / properties / hr_zone_names
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "One name per hr_zones bound"
      +}
    • addedInput schema / properties / hr_zones
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "type": "integer"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Explicit HR zone upper bounds in bpm, strictly increasing (e.g. lab VT1/VT2). The last bound becomes max_hr"
      +}
    • addedInput schema / properties / max_hr
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Max HR in bpm; must equal the last hr_zones bound"
      +}
    • addedInput schema / properties / power_zone_names
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "One name per power_zones_percent_ftp bound"
      +}
    • addedInput schema / properties / power_zones_percent_ftp
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "type": "integer"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Explicit power zone upper bounds as % of FTP (not watts), strictly increasing; 999 as the last value makes the top zone open-ended"
      +}
    • changedInput schema / properties / recalc_hr_zones / description
      Previous value: -"Recalculate HR zones from the updated threshold heart rate"New value: +"Rescale 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"
    • addedInput schema / properties / sweet_spot_max
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Sweet spot upper bound, % of FTP"
      +}
    • addedInput schema / properties / sweet_spot_min
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Sweet spot lower bound, % of FTP"
      +}
  4. Changed1 schema field changedv5.0.1
    • addedInput schema / properties / athlete_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Athlete ID (for coaches managing multiple athletes)"
      +}
  5. Changed2 schema fields changedv4.2.0
    • addedInput schema / properties / indoor_ftp
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Indoor Functional Threshold Power in watts (for cycling)"
      +}
    • addedInput schema / properties / recalc_hr_zones
      Added value: +{
      +  "default": true,
      +  "description": "Recalculate HR zones from the updated threshold heart rate",
      +  "type": "boolean"
      +}
  6. 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