Skip to main content
Glama
hhopke
by hhopke

icu_update_wellness

Idempotent

Create or update wellness data for a specific date with metrics like weight, HRV, sleep, subjective scales, and more. Lock records to prevent overwrite from device sync.

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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dateYesDate in YYYY-MM-DD format
weightNoWeight in kg
resting_hrNoResting heart rate in bpm
hrvNoHRV (rMSSD) value
sleep_secsNoSleep duration in seconds
sleep_qualityNoSleep quality (1-5 scale)
fatigueNoFatigue level (1-5 scale)
sorenessNoSoreness level (1-5 scale)
stressNoStress level (1-5 scale)
moodNoMood level (1-5 scale)
motivationNoMotivation level (1-5 scale)
injuryNoInjury severity (1-5 scale: 1=none, 5=severe)
readinessNoReadiness score (0-100)
body_fatNoBody fat percentage
abdomenNoAbdominal circumference in cm
vo2maxNoVO2max (ml/kg/min) — lab result or device estimate
systolicNoSystolic blood pressure in mmHg
diastolicNoDiastolic blood pressure in mmHg
spo2NoBlood oxygen saturation percentage (SpO2)
respirationNoRespiration rate in breaths per minute
blood_glucoseNoBlood glucose in mmol/L
lactateNoBlood lactate in mmol/L — lab result
menstrual_phaseNoMenstrual phase (e.g. FOLLICULAR, OVULATING, LUTEAL, MENSTRUAL)
lockedNoLock record to prevent device sync from overwriting manual entries
calories_consumedNoCalories consumed (kcal)
carbohydratesNoCarbohydrates consumed (grams)
proteinNoProtein consumed (grams)
fat_totalNoTotal fat consumed (grams)
hydration_litersNoHydration volume (liters)
commentsNoComments or notes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

Discloses upsert behavior (create vs. update), scale ranges, and the effect of the locked parameter. Annotations already note idempotentHint=true, but the description adds concrete context about manual entry protection and field-level updates.

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?

Three concise sentences with key information front-loaded. No unnecessary words or repetition.

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?

Given full schema descriptions, annotations, and an output schema, the description covers the core behavior, field semantics, and usage nuance. Complete for an upsert tool of this complexity.

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%, so baseline is 3. The description reinforces scale ranges and the locked parameter's effect, but does not add substantial new meaning beyond the schema descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool performs an 'upsert' for wellness data on a single date, distinguishing it from read-only siblings like icu_get_wellness_data and icu_get_wellness_for_date.

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?

Provides explicit guidance: only provided fields are sent, subjective scales are 1-5, and locked=true prevents overwrites. However, does not explicitly compare to alternatives or state when to use this vs. other wellness tools.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/hhopke/intervals-icu-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server