Skip to main content
Glama

Save the day's numbers

log_day_numbers
DestructiveIdempotent

Save a day's steps, calories burned, resting heart rate, HRV, sleep and readiness for a user whose watch, ring or phone isn't synced to Heza (Fitbit, Apple Watch, Samsung, Pixel, Oura...; Garmin, COROS and Polar sync on their own), copied from Apple Health, Health Connect, the device's app or a screenshot. Same as 'Add today's numbers' in the app. Up to 31 days per call. Only send numbers the source shows: never estimate. A field left out keeps its saved value; null clears it. Days already synced from Garmin, COROS or Polar are never changed. Apple Health HRV is SDNN, which runs higher than the RMSSD of Fitbit, Garmin or COROS: compare it only with itself. Workouts go through log_activity.

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": {
      "days": "<days>"
    },
    "name": "log_day_numbers"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysYes
sourceNoWhere the numbers come from, e.g. 'Fitbit via Health Connect', 'Apple Health', 'screenshot of the Fitbit app'

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations declare destructiveHint=true and idempotentHint=true but cannot explain what destruction actually means; the description supplies this exactly: 'A field left out keeps its saved value; null clears it.' It additionally discloses a protected-data boundary ('Days already synced from Garmin, COROS or Polar are never changed') and a data-comparability caveat (Apple Health SDNN vs. RMSSD), which are non-obvious behaviors an agent could otherwise get wrong.

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 core action and the sync preconditions, then the overwrite semantics, and everything present carries information. It is a dense, multi-clause run-on paragraph, and the Garmin/COROS/Polar exclusion is effectively stated twice (sync behavior and never-overwritten rule), which could be tightened but both instances serve different purposes.

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 destructive, nested-payload write tool with no output schema, the description covers the essential risk surface: payload limits, per-field overwrite/clear semantics, protected days, and provenance. It does not say what the call returns or how partial failures across multiple days are reported, which is the main remaining ambiguity for a batch mutation.

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 50% schema coverage, the description compensates well for the most consequential rule: omitted field preserves the saved value while null clears it, a semantic the schema's nullable types cannot express. It also implies what belongs in `source` ('copied from Apple Health, Health Connect, the device's app or a screenshot') and restates the 31-day cap from the schema. It stops short of clarifying units or ranges for fields the schema leaves undocumented (e.g. steps), leaving some gap.

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?

Names a specific verb and resource ('Save a day's steps, calories burned, resting heart rate, HRV, sleep and readiness') and enumerates exactly which metrics are covered, so an agent knows precisely what payload belongs here. It also explicitly routes workout data to the sibling tool ('Workouts go through log_activity'), separating it from log_activity and the other log_* siblings without needing their 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?

Gives the triggering condition (user's watch/ring/phone isn't synced to Heza), names which brands that applies to and which sync on their own, and maps the tool to the in-app equivalent ('Add today's numbers'). It also states the exclusion clearly — workouts go through log_activity — and a hard usage rule ('Only send numbers the source shows: never estimate').

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