Skip to main content
Glama
Intervals.icu MCP Server
by arjohns

Icu Update Wellness

icu_update_wellness
Idempotent

Create or update wellness data for a single date, including recovery, sleep, body metrics, and custom fields; lock entries to prevent device sync from overwriting manual values.

Instructions

Upsert wellness data for ONE specific date — creates the record if missing, otherwise updates the fields you pass.

Only provided fields are sent. Subjective scales (fatigue, soreness, stress, mood, motivation, injury) are 1-5. Pass locked=True to stop device sync from overwriting manual entries. Pass custom_fields to set user-defined wellness fields by INPUT_FIELD code; unknown codes are rejected and null clears a value. Writes to the authenticated athlete unless athlete_id names a managed athlete.

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": {
      "date": "<date>"
    },
    "name": "icu_update_wellness"
  }
}

Input Schema

NameRequiredDescriptionDefault
hrvNoHRV (rMSSD) value
dateYesDate in YYYY-MM-DD format
moodNoMood level (1-5 scale)
spo2NoBlood oxygen saturation percentage (SpO2)
injuryNoInjury severity (1-5 scale: 1=none, 5=severe)
lockedNoLock record to prevent device sync from overwriting manual entries
stressNoStress level (1-5 scale)
vo2maxNoVO2max (ml/kg/min) — lab result or device estimate
weightNoWeight in kg
abdomenNoAbdominal circumference in cm
fatigueNoFatigue level (1-5 scale)
lactateNoBlood lactate in mmol/L — lab result
proteinNoProtein consumed (grams)
body_fatNoBody fat percentage
commentsNoComments or notes
sorenessNoSoreness level (1-5 scale)
systolicNoSystolic blood pressure in mmHg
diastolicNoDiastolic blood pressure in mmHg
fat_totalNoTotal fat consumed (grams)
hydrationNoSubjective hydration rating (1-4: 1=well hydrated, 4=very dehydrated)
readinessNoReadiness score (0-100)
athlete_idNoAthlete ID (for coaches managing multiple athletes)
motivationNoMotivation level (1-5 scale)
resting_hrNoResting heart rate in bpm
sleep_secsNoSleep duration in seconds
respirationNoRespiration rate in breaths per minute
blood_glucoseNoBlood glucose in mmol/L
carbohydratesNoCarbohydrates consumed (grams)
custom_fieldsNoCustom wellness field values keyed by INPUT_FIELD code (see icu_get_custom_items), e.g. {"Creatineintake": 5}. Codes are case-sensitive. Use null to clear a value.
sleep_qualityNoSleep quality (1-5 scale)
menstrual_phaseNoMenstrual phase (e.g. FOLLICULAR, OVULATING, LUTEAL, MENSTRUAL)
hydration_litersNoHydration volume (liters)
calories_consumedNoCalories consumed (kcal)

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing upsert semantics, that only supplied fields are sent (so omitted fields are not wiped), that locked prevents device sync overwriting manual entries, that unknown custom field codes are rejected, that null clears a value, and that writes target the authenticated athlete unless athlete_id names a managed athlete. It does not cover failure modes (invalid date, read-only/locked state) or return behavior, but the output schema covers returns.

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?

Front-loaded with the core upsert statement, then parameter-specific notes in short, dense sentences with no filler. It is slightly packed but every sentence carries operational information; formatting with inline code helps scanning.

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 33-parameter write tool with rich annotations and an output schema, the description covers the essential contract: upsert, partial update, lock behavior, custom field handling, and athlete targeting. Minor gaps remain, such as validity/locking constraints on the date or guidance to fetch custom field codes from a sibling tool before calling.

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 100%, so the baseline is 3; the description still adds real meaning beyond the schema — the create-or-update semantics of the date key, the partial-update contract, the 1-5 scale grouping for subjective fields, the target-athlete rule for athlete_id, and the rejection/clearing behavior of custom_fields that the schema only hints at.

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?

States a precise verb and resource with explicit scope: 'Upsert wellness data for ONE specific date' plus what upsert means here (create if missing, otherwise update). It implicitly separates itself from the read siblings (icu_get_wellness_for_date, icu_get_wellness_data) by being a write, but never names or contrasts them directly.

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?

Gives conditional guidance for specific parameters (pass locked=True to block device-sync overwrites, pass custom_fields for user-defined fields) and clarifies partial-update behavior. However, it never says when to use this tool versus icu_get_wellness_for_date/icu_get_wellness_data, nor any prerequisites such as needing to look up field codes via icu_get_custom_items first.

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