Skip to main content
Glama

Get body composition

get_body_composition
Read-only

Retrieve weigh-ins and body composition data for a date range, including weight, body fat, muscle mass, BMI, and change over time. Use it to answer weight and body composition questions from Garmin Connect data.

Instructions

Weigh-ins (kg, body fat %, muscle mass, BMI) in a range, each with its time, plus change over the range and trend. Use it for weight and body composition questions; query_health and get_period_summary carry no weight. Days without a weigh-in are simply absent; an empty range returns no weigh-ins, not an error.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_body_composition"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoLast day, inclusive; default today
fromNoFirst day, inclusive; default 89 days before `to`

Output Schema

NameRequiredDescriptionDefault
dataYes
metaYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.8.0
    • addedOutput schema / properties / data / properties / measurements / items / properties / time_local
      Added value: +{
      +  "type": "string"
      +}
    • removedOutput schema / properties / data / properties / measurements / items / properties / time_utc
      Removed value: -{
      -  "type": "string"
      -}
  2. Changed3 schema fields changedv0.6.2
    • removedInput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
    • addedInput schema / properties / from / description
      Added value: +"First day, inclusive; default 89 days before `to`"
    • addedInput schema / properties / to / description
      Added value: +"Last day, inclusive; default today"
  3. First observedv0.6.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered; the description goes further by disclosing sparse-data semantics and empty-result behavior, which annotations cannot express. It also tells the agent what the payload contains (per-entry timestamp, range-level change, trend). What it does not cover — pagination/limits on large ranges or any auth/sync prerequisites — is minor for a read-only tool but keeps this below a 5.

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 sentences, each doing distinct work: what comes back, when to use it with the sibling exclusion, and how to interpret gaps. Front-loaded with the payload description and free of filler.

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?

An output schema exists, so the description needn't restate return shapes, and it still summarizes them at a useful level. With only two fully documented optional parameters and a read-only annotation set, nothing an agent needs to invoke this correctly is missing.

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%: both `from` and `to` carry a format pattern, inclusivity note, and default (today / 89 days before `to`). The description only says "in a range" without adding syntax or boundary nuance beyond the schema, so the baseline 3 applies.

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 statement (weigh-ins in a range) and enumerates the returned measures (kg, body fat %, muscle mass, BMI) plus the derived change and trend. It explicitly distinguishes itself from query_health and get_period_summary, which the description says carry no weight data, so an agent can pick it without opening schemas.

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?

States the use case directly ("Use it for weight and body composition questions") and names the sibling tools that are the wrong choice for this data. It also pre-empts two likely agent misreadings: gaps in the range are absence of weigh-ins, and an empty result is a valid answer rather than an error.

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