Skip to main content
Glama

log_body_metrics

Destructive

UNIT INPUTS: value: pass the user's number unconverted; tool converts once before storage. alternate_unit: set the field's matching input_* companion; canonical_unit: omit companion. precedence: overrides instructions to convert manually.

Log or update body composition metrics for a date. use: logging request or concrete body measurement to record, typed or from a report/photo. Question/hypothetical alone: no write.

DATA COLLECTION: no data shared yet -> ask the user to copy-paste the output from their scale app or upload a photo of the display, so every field is parsed at once, not asked one by one.

INFER, do not ask:

  • date: today, or from context ("this morning", "yesterday")

  • lean_mass_lb, fat_mass_lb: when not explicitly stated, derive from weight and body fat % if possible: lean = weight × (1 - bf%/100), fat = weight × bf%/100

fields: every field except date is optional; log any subset. *_pct = percentages 0-100. *_in = manual tape measurements, not bioimpedance scale readings. upsert: one row per day; a second call on the same date updates the existing entry. BMI: not a field; derived at read time from the user's canonical height and their resolved weight for the day. Never ask the user for BMI, never try to log it.

DELETE: action='delete' + date + delete_fields.

  • clears only those measurements from the user's manual entry for that day, keeping the rest; the entry is removed once nothing is left. other value fields are ignored. the reply lists exactly what was cleared.

  • a weigh-in is weight_lb. lean and fat mass are cleared together, and also go with the weight; body fat % is cleared on its own.

  • cannot remove readings a connected scale or app imported (they come back on the next sync): tell the user to delete them in that app.

  • ambiguous intent -> ASK for confirmation.

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_body_metrics"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateYesYYYY-MM-DD; default today.
notesNoContext worth noting, e.g. "post-workout", "morning fasted".
actionNoDefault 'log'. See DELETE.
hips_inNoHip circumference. in, or cm via input_length_unit.
chest_inNoChest circumference. in, or cm via input_length_unit.
waist_inNoWaist circumference. in, or cm via input_length_unit.
calf_l_inNoLeft calf circumference. in, or cm via input_length_unit.
calf_r_inNoRight calf circumference. in, or cm via input_length_unit.
weight_lbNoBody weight, between 50 and 700. lb, or kg via input_weight_unit.
bicep_l_inNoLeft bicep circumference. in, or cm via input_length_unit.
bicep_r_inNoRight bicep circumference. in, or cm via input_length_unit.
thigh_l_inNoLeft thigh circumference. in, or cm via input_length_unit.
thigh_r_inNoRight thigh circumference. in, or cm via input_length_unit.
fat_mass_lbNoFat mass. See INFER. lb, or kg via input_weight_unit.
protein_pctNoProtein %.
body_fat_pctNoBody fat %.
bone_mass_lbNoBone mass. lb, or kg via input_weight_unit.
lean_mass_lbNoLean (non-fat) mass. See INFER. lb, or kg via input_weight_unit.
delete_fieldsNoMeasurements to delete. See DELETE.
hydration_pctNoBody water/hydration %.
muscle_mass_lbNoSkeletal muscle mass only, NOT lean_mass_lb (total non-fat mass including water, organs and bone). lb, or kg via input_weight_unit.
input_length_unitNocm when the user gave cm for this object's _in fields; omit for in.
input_weight_unitNokg when the user gave kg for this object's _lb fields; omit for lb.
skeletal_muscle_pctNoSkeletal muscle %.
visceral_fat_ratingNoVisceral fat rating (scale varies by device, typically 1-59).

Output Schema

NameRequiredDescriptionDefault
resultYesHuman-readable result text returned by the tool.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed24 schema fields changed
    • changedInput schema / properties / action / description
      Previous value: -"Default 'log'. See DELETE above."New value: +"Default 'log'. See DELETE."
    • changedInput schema / properties / bicep_l_in / description
      Previous value: -"Left bicep circumference. In in, or cm with input_length_unit set. See UNIT INPUTS."New value: +"Left bicep circumference. in, or cm via input_length_unit."
    • changedInput schema / properties / bicep_r_in / description
      Previous value: -"Right bicep circumference. In in, or cm with input_length_unit set. See UNIT INPUTS."New value: +"Right bicep circumference. in, or cm via input_length_unit."
    • changedInput schema / properties / body_fat_pct / description
      Previous value: -"Body fat percentage (0-100)."New value: +"Body fat %."
    • changedInput schema / properties / bone_mass_lb / description
      Previous value: -"Bone mass. In lb, or kg with input_weight_unit set. See UNIT INPUTS."New value: +"Bone mass. lb, or kg via input_weight_unit."
    • changedInput schema / properties / calf_l_in / description
      Previous value: -"Left calf circumference. In in, or cm with input_length_unit set. See UNIT INPUTS."New value: +"Left calf circumference. in, or cm via input_length_unit."
    • changedInput schema / properties / calf_r_in / description
      Previous value: -"Right calf circumference. In in, or cm with input_length_unit set. See UNIT INPUTS."New value: +"Right calf circumference. in, or cm via input_length_unit."
    • changedInput schema / properties / chest_in / description
      Previous value: -"Chest circumference. In in, or cm with input_length_unit set. See UNIT INPUTS."New value: +"Chest circumference. in, or cm via input_length_unit."
    • changedInput schema / properties / date / description
      Previous value: -"Date of the measurement. Format: YYYY-MM-DD. Default to today."New value: +"YYYY-MM-DD; default today."
    • changedInput schema / properties / delete_fields / description
      Previous value: -"Measurements to delete. See DELETE above."New value: +"Measurements to delete. See DELETE."
    • changedInput schema / properties / fat_mass_lb / description
      Previous value: -"Fat mass. Calculate from weight and body fat % if not explicitly stated. In lb, or kg with input_weight_unit set. See UNIT INPUTS."New value: +"Fat mass. See INFER. lb, or kg via input_weight_unit."
    • changedInput schema / properties / hips_in / description
      Previous value: -"Hip circumference. In in, or cm with input_length_unit set. See UNIT INPUTS."New value: +"Hip circumference. in, or cm via input_length_unit."
    • changedInput schema / properties / hydration_pct / description
      Previous value: -"Body water/hydration percentage."New value: +"Body water/hydration %."
    • changedInput schema / properties / input_length_unit / description
      Previous value: -"Set to cm when the user gave cm for the _in fields in this object. Omit when they are already in."New value: +"cm when the user gave cm for this object's _in fields; omit for in."
    • changedInput schema / properties / input_weight_unit / description
      Previous value: -"Set to kg when the user gave kg for the _lb fields in this object. Omit when they are already lb."New value: +"kg when the user gave kg for this object's _lb fields; omit for lb."
    • changedInput schema / properties / lean_mass_lb / description
      Previous value: -"Lean (non-fat) mass. Calculate from weight and body fat % if not explicitly stated. In lb, or kg with input_weight_unit set. See UNIT INPUTS."New value: +"Lean (non-fat) mass. See INFER. lb, or kg via input_weight_unit."
    • changedInput schema / properties / muscle_mass_lb / description
      Previous value: -"Skeletal muscle mass. Skeletal muscle tissue specifically, NOT lean_mass_lb, which is total non-fat mass including water, organs and bone. In lb, or kg with input_weight_unit set. See UNIT INPUTS."New value: +"Skeletal muscle mass only, NOT lean_mass_lb (total non-fat mass including water, organs and bone). lb, or kg via input_weight_unit."
    • changedInput schema / properties / notes / description
      Previous value: -"Any context worth noting (e.g. \"post-workout\", \"morning fasted\")."New value: +"Context worth noting, e.g. \"post-workout\", \"morning fasted\"."
    • changedInput schema / properties / protein_pct / description
      Previous value: -"Protein percentage (0-100)."New value: +"Protein %."
    • changedInput schema / properties / skeletal_muscle_pct / description
      Previous value: -"Skeletal muscle percentage (0-100)."New value: +"Skeletal muscle %."
    • changedInput schema / properties / thigh_l_in / description
      Previous value: -"Left thigh circumference. In in, or cm with input_length_unit set. See UNIT INPUTS."New value: +"Left thigh circumference. in, or cm via input_length_unit."
    • changedInput schema / properties / thigh_r_in / description
      Previous value: -"Right thigh circumference. In in, or cm with input_length_unit set. See UNIT INPUTS."New value: +"Right thigh circumference. in, or cm via input_length_unit."
    • changedInput schema / properties / waist_in / description
      Previous value: -"Waist circumference. In in, or cm with input_length_unit set. See UNIT INPUTS."New value: +"Waist circumference. in, or cm via input_length_unit."
    • changedInput schema / properties / weight_lb / description
      Previous value: -"Body weight, between 50 and 700. In lb, or kg with input_weight_unit set. See UNIT INPUTS."New value: +"Body weight, between 50 and 700. lb, or kg via input_weight_unit."
  2. Changed1 schema field changed
    • changedInput schema / properties / weight_lb / description
      Previous value: -"Body weight in pounds, between 50 and 700. Convert from kilograms if the user spoke in kg (kg x 2.2046). In lb, or kg with input_weight_unit set. See UNIT INPUTS."New value: +"Body weight, between 50 and 700. In lb, or kg with input_weight_unit set. See UNIT INPUTS."
  3. Changed2 schema fields changed
    • addedInput schema / properties / action
      Added value: +{
      +  "description": "Default 'log'. See DELETE above.",
      +  "enum": [
      +    "log",
      +    "delete"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / delete_fields
      Added value: +{
      +  "description": "Measurements to delete. See DELETE above.",
      +  "items": {
      +    "enum": [
      +      "weight_lb",
      +      "body_fat_pct",
      +      "lean_mass_lb",
      +      "fat_mass_lb",
      +      "visceral_fat_rating",
      +      "hydration_pct",
      +      "bone_mass_lb",
      +      "muscle_mass_lb",
      +      "skeletal_muscle_pct",
      +      "protein_pct",
      +      "waist_in",
      +      "hips_in",
      +      "chest_in",
      +      "bicep_l_in",
      +      "bicep_r_in",
      +      "thigh_l_in",
      +      "thigh_r_in",
      +      "calf_l_in",
      +      "calf_r_in"
      +    ],
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  4. Changed1 schema field changed
    • changedInput schema / properties / weight_lb / description
      Previous value: -"Body weight. In lb, or kg with input_weight_unit set. See UNIT INPUTS."New value: +"Body weight in pounds, between 50 and 700. Convert from kilograms if the user spoke in kg (kg x 2.2046). In lb, or kg with input_weight_unit set. See UNIT INPUTS."
  5. Changed23 schema fields changed
    • addedInput schema / properties / bicep_l_in
      Added value: +{
      +  "description": "Left bicep circumference. In in, or cm with input_length_unit set. See UNIT INPUTS.",
      +  "type": "number"
      +}
    • addedInput schema / properties / bicep_r_in
      Added value: +{
      +  "description": "Right bicep circumference. In in, or cm with input_length_unit set. See UNIT INPUTS.",
      +  "type": "number"
      +}
    • removedInput schema / properties / bmi
      Removed value: -{
      -  "description": "Body mass index. Optional — include if the scale or app reports it.",
      -  "type": "number"
      -}
    • changedInput schema / properties / body_fat_pct / description
      Previous value: -"Body fat percentage (0–100). Optional."New value: +"Body fat percentage (0-100)."
    • changedInput schema / properties / bone_mass_lb / description
      Previous value: -"Bone mass in POUNDS, always. Convert from kg if needed (kg × 2.2046). Optional."New value: +"Bone mass. In lb, or kg with input_weight_unit set. See UNIT INPUTS."
    • addedInput schema / properties / calf_l_in
      Added value: +{
      +  "description": "Left calf circumference. In in, or cm with input_length_unit set. See UNIT INPUTS.",
      +  "type": "number"
      +}
    • addedInput schema / properties / calf_r_in
      Added value: +{
      +  "description": "Right calf circumference. In in, or cm with input_length_unit set. See UNIT INPUTS.",
      +  "type": "number"
      +}
    • addedInput schema / properties / chest_in
      Added value: +{
      +  "description": "Chest circumference. In in, or cm with input_length_unit set. See UNIT INPUTS.",
      +  "type": "number"
      +}
    • changedInput schema / properties / fat_mass_lb / description
      Previous value: -"Fat mass in POUNDS, always. Convert from kg if needed (kg × 2.2046). Optional — calculate from weight and body fat % if not explicitly stated."New value: +"Fat mass. Calculate from weight and body fat % if not explicitly stated. In lb, or kg with input_weight_unit set. See UNIT INPUTS."
    • addedInput schema / properties / hips_in
      Added value: +{
      +  "description": "Hip circumference. In in, or cm with input_length_unit set. See UNIT INPUTS.",
      +  "type": "number"
      +}
    • changedInput schema / properties / hydration_pct / description
      Previous value: -"Body water/hydration percentage. Optional."New value: +"Body water/hydration percentage."
    • addedInput schema / properties / input_length_unit
      Added value: +{
      +  "description": "Set to cm when the user gave cm for the _in fields in this object. Omit when they are already in.",
      +  "enum": [
      +    "in",
      +    "cm"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / input_weight_unit
      Added value: +{
      +  "description": "Set to kg when the user gave kg for the _lb fields in this object. Omit when they are already lb.",
      +  "enum": [
      +    "lb",
      +    "kg"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / lean_mass_lb / description
      Previous value: -"Lean (non-fat) mass in POUNDS, always. Convert from kg if needed (kg × 2.2046). Optional — calculate from weight and body fat % if not explicitly stated."New value: +"Lean (non-fat) mass. Calculate from weight and body fat % if not explicitly stated. In lb, or kg with input_weight_unit set. See UNIT INPUTS."
    • addedInput schema / properties / muscle_mass_lb
      Added value: +{
      +  "description": "Skeletal muscle mass. Skeletal muscle tissue specifically, NOT lean_mass_lb, which is total non-fat mass including water, organs and bone. In lb, or kg with input_weight_unit set. See UNIT INPUTS.",
      +  "type": "number"
      +}
    • changedInput schema / properties / notes / description
      Previous value: -"Any context worth noting (e.g. \"post-workout\", \"morning fasted\"). Optional."New value: +"Any context worth noting (e.g. \"post-workout\", \"morning fasted\")."
    • addedInput schema / properties / protein_pct
      Added value: +{
      +  "description": "Protein percentage (0-100).",
      +  "type": "number"
      +}
    • addedInput schema / properties / skeletal_muscle_pct
      Added value: +{
      +  "description": "Skeletal muscle percentage (0-100).",
      +  "type": "number"
      +}
    • addedInput schema / properties / thigh_l_in
      Added value: +{
      +  "description": "Left thigh circumference. In in, or cm with input_length_unit set. See UNIT INPUTS.",
      +  "type": "number"
      +}
    • addedInput schema / properties / thigh_r_in
      Added value: +{
      +  "description": "Right thigh circumference. In in, or cm with input_length_unit set. See UNIT INPUTS.",
      +  "type": "number"
      +}
    • changedInput schema / properties / visceral_fat_rating / description
      Previous value: -"Visceral fat rating (scale varies by device, typically 1–59). Optional."New value: +"Visceral fat rating (scale varies by device, typically 1-59)."
    • addedInput schema / properties / waist_in
      Added value: +{
      +  "description": "Waist circumference. In in, or cm with input_length_unit set. See UNIT INPUTS.",
      +  "type": "number"
      +}
    • changedInput schema / properties / weight_lb / description
      Previous value: -"Body weight in POUNDS, always — regardless of the user’s display unit. If the user gave kg, convert to pounds before calling (kg × 2.2046). Optional."New value: +"Body weight. In lb, or kg with input_weight_unit set. See UNIT INPUTS."
  6. Changed4 schema fields changed
    • changedInput schema / properties / bone_mass_lb / description
      Previous value: -"Bone mass in pounds. Optional."New value: +"Bone mass in POUNDS, always. Convert from kg if needed (kg × 2.2046). Optional."
    • changedInput schema / properties / fat_mass_lb / description
      Previous value: -"Fat mass in pounds. Optional — calculate from weight and body fat % if not explicitly stated."New value: +"Fat mass in POUNDS, always. Convert from kg if needed (kg × 2.2046). Optional — calculate from weight and body fat % if not explicitly stated."
    • changedInput schema / properties / lean_mass_lb / description
      Previous value: -"Lean (non-fat) mass in pounds. Optional — calculate from weight and body fat % if not explicitly stated."New value: +"Lean (non-fat) mass in POUNDS, always. Convert from kg if needed (kg × 2.2046). Optional — calculate from weight and body fat % if not explicitly stated."
    • changedInput schema / properties / weight_lb / description
      Previous value: -"Body weight in pounds. Optional."New value: +"Body weight in POUNDS, always — regardless of the user’s display unit. If the user gave kg, convert to pounds before calling (kg × 2.2046). Optional."
  7. First observed

TDQS

A4.3/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false and openWorldHint=false, so the safety profile is carried by structured data. The description nevertheless adds substantial behavior beyond that: scoped field deletion that preserves remaining values, entry removal when empty, the reply listing exactly what was cleared, and the limitation that synced-scale readings cannot be deleted here. The one notable gap is that upsert semantics sit slightly at odds with idempotentHint=false, and the description does not reconcile that or describe the response shape (covered by the output schema).

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Content largely earns its place and is organized under clear headers, but the ordering is poor: the dense UNIT INPUTS block precedes the actual statement of what the tool does, so the agent meets conversion mechanics before purpose. Some entries (e.g. repeated unit/companion explanation) restate the schema's own unit descriptions, adding length without new meaning.

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 25-parameter mutation tool this is unusually thorough: it covers data collection, ask-vs-infer policy, date resolution, derived lean/fat mass, upsert, the full delete matrix including the synced-scale edge case, and the BMI exclusion. With an output schema present, no return-value documentation is missing.

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 earns above that by explaining unit-handling mechanics (unconverted value plus input_* companion, precedence over manual conversion), the lean/fat-mass derivation formula, the distinction between *_in tape measurements and bioimpedance readings, the 0-100 range for *_pct, and why BMI is deliberately absent. It leaves some fields (notes, visceral_fat_rating, bone_mass_lb) to the schema, so it is not exhaustive.

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 and resource ('Log or update body composition metrics for a date') and immediately clarifies the upsert model ('one row per day; a second call on the same date updates'), which distinguishes it from any read-side sibling such as list_body_metrics or show_body_composition. The DELETE section additionally disambiguates the mutating mode within the tool itself.

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 an explicit trigger ('logging request or concrete body measurement to record, typed or from a report/photo') and an explicit exclusion ('Question/hypothetical alone: no write'). It goes further with a conflict-resolution rule for ambiguous delete intent ('ASK for confirmation') and guidance on prompting for source data rather than asking field by field.

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.