Skip to main content
Glama

Log weight and body composition

log_weight
DestructiveIdempotent

Record body weight for a date (default today), with body composition when known: body fat %, skeletal muscle mass, fat mass, body water, tape measurements, lean and fat per arm, trunk and leg from a segmental scan, and the machine the reading came from. Values may be read from a smart-scale or body-composition (InBody/BCA) printout photo. One row per date: logging the same date again overwrites weight; a composition field that is omitted keeps its stored value, null clears it.

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": {
      "weight_kg": "<weight_kg>"
    },
    "name": "log_weight"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoCalendar date YYYY-MM-DD in the user's timezone
notesNo
sourceNoThe machine a body-composition reading came from, as printed on the report or shown in the scale's app, e.g. 'InBody 270S'. Not needed for a plain weigh-in. Omitted keeps the stored value, null clears it.
weight_kgYes
fat_mass_kgNo
body_fat_pctNoPercent body fat (PBF)
measurementsNoTape measurements in cm keyed snake_case with unit, e.g. waist_cm, hip_cm, chest_cm, arm_cm, thigh_cm; also any other figure the scale reports (visceral_fat_level, bmr_kcal, bone_mass_kg, lean_body_mass_kg, subcutaneous_fat_pct). A scale's total "Muscle Mass" goes here as muscle_mass_kg, never in skeletal_muscle_kg; muscle printed only as a percentage of body weight goes as muscle_mass_pct or skeletal_muscle_pct. Segmental figures from a body-composition scan use these keys: left_arm, right_arm, trunk, left_leg, right_leg, each with _lean_kg, _lean_pct, _fat_kg and _fat_pct (e.g. left_arm_lean_kg, trunk_fat_pct); _pct is the percentage of ideal printed beside the kg. Merged with nothing: the map replaces the stored one.
body_water_kgNoTotal body water
skeletal_muscle_kgNoSkeletal muscle mass (SMM), only when the report names it so. A total "Muscle Mass" figure goes in measurements.muscle_mass_kg.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / measurements / description
      Previous value: -"Tape measurements in cm keyed snake_case with unit, e.g. waist_cm, hip_cm, chest_cm, arm_cm, thigh_cm; also any other figure the scale reports (visceral_fat_level, bmr_kcal). Merged with nothing: the map replaces the stored one."New value: +"Tape measurements in cm keyed snake_case with unit, e.g. waist_cm, hip_cm, chest_cm, arm_cm, thigh_cm; also any other figure the scale reports (visceral_fat_level, bmr_kcal, bone_mass_kg, lean_body_mass_kg, subcutaneous_fat_pct). A scale's total \"Muscle Mass\" goes here as muscle_mass_kg, never in skeletal_muscle_kg; muscle printed only as a percentage of body weight goes as muscle_mass_pct or skeletal_muscle_pct. Segmental figures from a body-composition scan use these keys: left_arm, right_arm, trunk, left_leg, right_leg, each with _lean_kg, _lean_pct, _fat_kg and _fat_pct (e.g. left_arm_lean_kg, trunk_fat_pct); _pct is the percentage of ideal printed beside the kg. Merged with nothing: the map replaces the stored one."
    • changedInput schema / properties / skeletal_muscle_kg / description
      Previous value: -"Skeletal muscle mass (SMM)"New value: +"Skeletal muscle mass (SMM), only when the report names it so. A total \"Muscle Mass\" figure goes in measurements.muscle_mass_kg."
    • addedInput schema / properties / source
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maxLength": 60,
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "The machine a body-composition reading came from, as printed on the report or shown in the scale's app, e.g. 'InBody 270S'. Not needed for a plain weigh-in. Omitted keeps the stored value, null clears it."
      +}
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, and the description explains exactly what that means: one row per date, re-logging a date overwrites weight, an omitted composition field keeps its stored value, and null clears it. That is meaningful disclosure of the upsert/clear semantics that annotations alone cannot convey, though it says nothing about permissions or what the call 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?

Three sentences, front-loaded with the core action and default, then the field inventory, then the overwrite/merge semantics. Dense but every clause carries information; it is slightly list-heavy but not padded.

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 mutation tool with a nested measurements object, no output schema and destructive semantics, it covers the crucial behaviors (default date, overwrite, partial-update vs null-clear). It would be stronger with a note on what the write returns or its effect on dependent summaries, but no annotation gap remains unexplained.

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?

With 9 parameters at 67% schema coverage, the description adds real meaning: date defaults to today, weight is the core value, and the list of composition/segmental fields maps onto the nested parameters. It also states the omitted-keeps / null-clears rule that the schema documents individually only for source and measurements, generalizing it across all optional fields.

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?

Opens with a concrete verb and resource ("Record body weight for a date") and enumerates the composition fields it accepts, plus the smart-scale/BCA printout source of the data. An agent can tell this is the write path versus read siblings like get_weight_log without opening the schema.

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?

Implies usage through the default-today date, the note that source is "Not needed for a plain weigh-in," and the smart-scale photo scenario, which give good context for when the tool applies. However, it never states when not to use it or names the read alternative for retrieving history, so the routing guidance is implied rather than explicit.

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.

Resources