Skip to main content
Glama

log_wearable

Log daily wearable/manual health metrics: RHR, HRV, Zone Minutes / AZM, VO2max, calories eaten / dietary energy, stress, supplemental steps, and physiological vitals (SpO₂, respiratory rate, skin temperature, blood pressure, blood glucose, core temperature).

VITALS: the vital fields take manual/home/device readings and corrections, including a finger-stick, CGM, home glucose meter, or a wearable/Apple Health/Health Connect value the user explicitly wants stored manually. A glucose value from an actual lab report or blood draw belongs in log_lab_results instead, not here.

STEPS: step_count is ADDITIVE: it adds on top of whatever a connected wearable (Fitbit, Oura, Apple Health, Health Connect) recorded that day; it never replaces or overrides device data. Use it only when the user explicitly says they walked steps their device did NOT capture (phone left home, battery died, device not worn). User says sync is wrong, steps look doubled, or wants to fix/override/replace device data -> do NOT pass step_count; explain that manual steps add on top and sync issues need investigating at the device level.

ALL OTHER FIELDS (RHR, HRV, AZM, VO2max, stress, vitals) replace the existing manual value for that day; safe for corrections.

SLEEP ADDITIONS: only when the user EXPLICITLY asks to add missing sleep periods to an EXISTING record: sleep_periods plus add_to_existing_sleep_record: true. Each start/end: local HH:MM or ISO 8601 with offset. Only the source powering the displayed sleep total (chosen by the user's Sleep source priority) can be enriched; a sleep_source, when given, must match it. Never infer consent from a complaint about sleep; never mix additions with other metrics.

INFER, do not ask: date = today unless the user says otherwise.

IDEMPOTENT: values already present for that date (any source) -> a no-op success; report it as "already had data", not "failed".

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": "log_wearable"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateYesYYYY-MM-DD; default today.
resting_hrNoLegacy provider resting HR, BPM. Only when the measurement type is unknown; never infer waking or sleeping from it.
step_countNoSupplemental steps NOT captured by any connected wearable. See STEPS.
hrv_morningNoMorning HRV, ms (RMSSD or similar).
skin_temp_cNoSkin temperature in °C.
sleep_sourceNoSource identity; must match the displayed sleep total's source. See SLEEP ADDITIONS.
spo2_avg_pctNoSpO₂ in %.
stress_scoreNoStress score, 0-100.
sleep_periodsNoMissing sleep periods to ADD. See SLEEP ADDITIONS.
vo2max_estimateNoVO2max estimate, ml/kg/min.
core_body_temp_cNoCore temperature in °C.
dietary_caloriesNoDietary energy / calories eaten that day, kcal, imported from a connected health app (Apple Health / Health Connect).
overnight_min_hrNoOvernight minimum HR, BPM: the actual lowest reading during the MAIN sleep period. Never a nighttime average or generic RHR.
systolic_bp_mm_hgNoSystolic blood pressure in mmHg. Provide with diastolic_bp_mm_hg.
daytime_resting_hrNoDaytime resting HR, BPM: measured during awake rest, or estimated from documented awake, stable, non-exercise samples. Only when the user identifies this type.
diastolic_bp_mm_hgNoDiastolic blood pressure in mmHg. Provide with systolic_bp_mm_hg.
blood_glucose_mg_dlNoBlood glucose in mg/dL.
active_zone_min_peakNoPeak-intensity Zone Minutes (Fitbit Active Zone Minutes, Google Fit Heart Points).
confirm_supplementalNotrue ONLY after the user explicitly confirmed these steps were walked without their device and were not captured. Never from your own inference.
respiratory_rate_bpmNoBreathing in br/min.
active_zone_min_moderateNoModerate-intensity Zone Minutes (Fitbit Active Zone Minutes, Google Fit Heart Points).
add_to_existing_sleep_recordNotrue only on an explicit request to supplement an existing sleep record. See SLEEP ADDITIONS.

Output Schema

NameRequiredDescriptionDefault
resultYesHuman-readable result text returned by the tool.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed22 schema fields changed
    • changedInput schema / properties / active_zone_min_moderate / description
      Previous value: -"Zone Minutes (also called Active Zone Minutes by Fitbit, Heart Points by Google Fit) at moderate intensity. Optional."New value: +"Moderate-intensity Zone Minutes (Fitbit Active Zone Minutes, Google Fit Heart Points)."
    • changedInput schema / properties / active_zone_min_peak / description
      Previous value: -"Zone Minutes (also called Active Zone Minutes by Fitbit, Heart Points by Google Fit) at peak intensity. Optional."New value: +"Peak-intensity Zone Minutes (Fitbit Active Zone Minutes, Google Fit Heart Points)."
    • changedInput schema / properties / add_to_existing_sleep_record / description
      Previous value: -"True only on an explicit request to supplement an existing sleep record. See SLEEP ADDITIONS."New value: +"true only on an explicit request to supplement an existing sleep record. See SLEEP ADDITIONS."
    • changedInput schema / properties / blood_glucose_mg_dl / description
      Previous value: -"Blood glucose in mg/dL. Manual/home/device reading. Optional."New value: +"Blood glucose in mg/dL."
    • changedInput schema / properties / confirm_supplemental / description
      Previous value: -"Set to true ONLY after the user has explicitly confirmed these steps were walked without their device and were not captured. Do not set true based on your own inference."New value: +"true ONLY after the user explicitly confirmed these steps were walked without their device and were not captured. Never from your own inference."
    • changedInput schema / properties / core_body_temp_c / description
      Previous value: -"Core temperature in °C. Manual/home/device reading. Optional."New value: +"Core temperature in °C."
    • changedInput schema / properties / date / description
      Previous value: -"Date for the entry. Format: YYYY-MM-DD. Default to today."New value: +"YYYY-MM-DD; default today."
    • changedInput schema / properties / daytime_resting_hr / description
      Previous value: -"Daytime resting HR in BPM, measured during awake rest or estimated from documented awake, stable, non-exercise samples. Only when the user identifies this type."New value: +"Daytime resting HR, BPM: measured during awake rest, or estimated from documented awake, stable, non-exercise samples. Only when the user identifies this type."
    • changedInput schema / properties / diastolic_bp_mm_hg / description
      Previous value: -"Diastolic blood pressure in mmHg. Provide with systolic_bp_mm_hg. Manual/home/device reading. Optional."New value: +"Diastolic blood pressure in mmHg. Provide with systolic_bp_mm_hg."
    • changedInput schema / properties / dietary_calories / description
      Previous value: -"Dietary energy / calories eaten for the day in kcal, imported from a connected health app (Apple Health / Health Connect). Optional."New value: +"Dietary energy / calories eaten that day, kcal, imported from a connected health app (Apple Health / Health Connect)."
    • changedInput schema / properties / hrv_morning / description
      Previous value: -"Morning HRV in milliseconds (RMSSD or similar). Optional."New value: +"Morning HRV, ms (RMSSD or similar)."
    • changedInput schema / properties / overnight_min_hr / description
      Previous value: -"Overnight minimum HR in BPM: the actual lowest reading during the MAIN sleep period. Never log nighttime average or generic RHR here."New value: +"Overnight minimum HR, BPM: the actual lowest reading during the MAIN sleep period. Never a nighttime average or generic RHR."
    • changedInput schema / properties / respiratory_rate_bpm / description
      Previous value: -"Breathing in br/min. Manual/home/device reading. Optional."New value: +"Breathing in br/min."
    • changedInput schema / properties / resting_hr / description
      Previous value: -"Legacy provider resting heart rate, BPM. Use only when the measurement type is unknown; do not infer waking or sleeping from this value."New value: +"Legacy provider resting HR, BPM. Only when the measurement type is unknown; never infer waking or sleeping from it."
    • changedInput schema / properties / skin_temp_c / description
      Previous value: -"Skin temperature in °C. Manual/home/device reading. Optional."New value: +"Skin temperature in °C."
    • changedInput schema / properties / sleep_periods / description
      Previous value: -"Missing sleep periods to ADD. Start/end: local HH:MM or offset-aware ISO 8601. See SLEEP ADDITIONS."New value: +"Missing sleep periods to ADD. See SLEEP ADDITIONS."
    • changedInput schema / properties / sleep_source / description
      Previous value: -"Optional source identity. Must match the displayed sleep total source; see SLEEP ADDITIONS."New value: +"Source identity; must match the displayed sleep total's source. See SLEEP ADDITIONS."
    • changedInput schema / properties / spo2_avg_pct / description
      Previous value: -"SpO₂ in %. Manual/home/device reading. Optional."New value: +"SpO₂ in %."
    • changedInput schema / properties / step_count / description
      Previous value: -"Supplemental steps NOT captured by any connected wearable. ADDITIVE — adds to device data, never replaces it. Only use when user explicitly says their device missed these steps."New value: +"Supplemental steps NOT captured by any connected wearable. See STEPS."
    • changedInput schema / properties / stress_score / description
      Previous value: -"Stress score (0–100 scale). Optional."New value: +"Stress score, 0-100."
    • changedInput schema / properties / systolic_bp_mm_hg / description
      Previous value: -"Systolic blood pressure in mmHg. Provide with diastolic_bp_mm_hg. Manual/home/device reading. Optional."New value: +"Systolic blood pressure in mmHg. Provide with diastolic_bp_mm_hg."
    • changedInput schema / properties / vo2max_estimate / description
      Previous value: -"VO2max estimate (ml/kg/min). Optional."New value: +"VO2max estimate, ml/kg/min."
  2. Changed3 schema fields changed
    • addedInput schema / properties / daytime_resting_hr
      Added value: +{
      +  "description": "Daytime resting HR in BPM, measured during awake rest or estimated from documented awake, stable, non-exercise samples. Only when the user identifies this type.",
      +  "type": "integer"
      +}
    • addedInput schema / properties / overnight_min_hr
      Added value: +{
      +  "description": "Overnight minimum HR in BPM: the actual lowest reading during the MAIN sleep period. Never log nighttime average or generic RHR here.",
      +  "type": "integer"
      +}
    • changedInput schema / properties / resting_hr / description
      Previous value: -"Resting heart rate in BPM. Optional."New value: +"Legacy provider resting heart rate, BPM. Use only when the measurement type is unknown; do not infer waking or sleeping from this value."
  3. Changed3 schema fields changed
    • addedInput schema / properties / add_to_existing_sleep_record
      Added value: +{
      +  "description": "True only on an explicit request to supplement an existing sleep record. See SLEEP ADDITIONS.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / sleep_periods
      Added value: +{
      +  "description": "Missing sleep periods to ADD. Start/end: local HH:MM or offset-aware ISO 8601. See SLEEP ADDITIONS.",
      +  "items": {
      +    "properties": {
      +      "end": {
      +        "type": "string"
      +      },
      +      "start": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "start",
      +      "end"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / sleep_source
      Added value: +{
      +  "description": "Optional source identity. Must match the displayed sleep total source; see SLEEP ADDITIONS.",
      +  "type": "string"
      +}
  4. Changed7 schema fields changed
    • addedInput schema / properties / blood_glucose_mg_dl
      Added value: +{
      +  "description": "Blood glucose in mg/dL. Manual/home/device reading. Optional.",
      +  "type": "number"
      +}
    • addedInput schema / properties / core_body_temp_c
      Added value: +{
      +  "description": "Core temperature in °C. Manual/home/device reading. Optional.",
      +  "type": "number"
      +}
    • addedInput schema / properties / diastolic_bp_mm_hg
      Added value: +{
      +  "description": "Diastolic blood pressure in mmHg. Provide with systolic_bp_mm_hg. Manual/home/device reading. Optional.",
      +  "type": "number"
      +}
    • addedInput schema / properties / respiratory_rate_bpm
      Added value: +{
      +  "description": "Breathing in br/min. Manual/home/device reading. Optional.",
      +  "type": "number"
      +}
    • addedInput schema / properties / skin_temp_c
      Added value: +{
      +  "description": "Skin temperature in °C. Manual/home/device reading. Optional.",
      +  "type": "number"
      +}
    • addedInput schema / properties / spo2_avg_pct
      Added value: +{
      +  "description": "SpO₂ in %. Manual/home/device reading. Optional.",
      +  "type": "number"
      +}
    • addedInput schema / properties / systolic_bp_mm_hg
      Added value: +{
      +  "description": "Systolic blood pressure in mmHg. Provide with diastolic_bp_mm_hg. Manual/home/device reading. Optional.",
      +  "type": "number"
      +}
  5. First observed

TDQS

A4.7/5.0
Behavior4/5

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

Beyond the annotations it discloses the core write semantics: step_count is additive and never overrides device data, all other fields replace the existing manual value, and pre-existing values yield a no-op success reported as 'already had data'. That is far more than readOnlyHint/destructiveHint convey. The IDEMPOTENT heading sits in mild tension with idempotentHint: false, though the additive step_count behavior explains why the tool overall is not idempotent, so this is a clarity wrinkle rather than a false claim.

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 covered metrics and then broken into labeled blocks (VITALS, STEPS, SLEEP ADDITIONS, INFER, IDEMPOTENT), which makes a 22-parameter tool scannable. The opening field enumeration partly duplicates the schema property list and could be trimmed, but for a tool this size the density is largely justified.

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?

Covers everything an agent needs for a complex 22-parameter write: default date inference, consent requirements for supplemental steps and sleep additions, replace-versus-add semantics, source-matching constraints, and the no-op success case. Return values need no explanation because an output schema exists.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 100%, so the baseline would be 3, but the description adds meaning the schema does not carry: which field group is additive versus replacing, that sleep_source must match the source powering the displayed sleep total, that additions may never be mixed with other metrics, and that confirm_supplemental can only follow explicit user confirmation. It also constrains overnight_min_hr to the lowest reading of the main sleep period rather than an average or generic RHR.

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?

States a specific verb (log) and resource (daily wearable/manual health metrics) and enumerates the covered metric families in the first sentence. It also draws an explicit boundary against the closest sibling: a glucose value from a lab report or blood draw belongs in log_lab_results instead. An agent can distinguish this tool from log_sleep, log_lab_results, and log_body_metrics without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit when-to-use and when-not-to-use rules: step_count only when the user says the device did not capture the steps, and explicitly do NOT pass it when the user reports doubled or wrong sync data. It also routes lab-derived glucose to log_lab_results, restricts sleep_periods to an explicit request to supplement an existing record, and tells the agent to default the date to today rather than ask.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.