Skip to main content
Glama

How Heza calculates a number

how_heza_calculates
Read-onlyIdempotent

Explains how Heza works out its numbers: calories burned, the calorie target and calories left, gym calories (and what is added on top of the watch), readiness, training load, race predictions, muscle recovery and weight change. Call it ONLY when the user asks how or why a number is calculated, or doubts one; don't volunteer it. Answer in plain words from the result, with the user's own numbers from the other tools when you have them. Topics: burned (Calories burned), target (Calorie target and calories left), gym (Gym calories), readiness (Readiness), load (Training load), race (Race predictions), recovery (Muscle recovery), weight (Weight change), weather (Weather and the best time outside), pollen (Pollen), limits (What these numbers are). Without a topic: every topic's short answer.

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

Input Schema

NameRequiredDescriptionDefault
topicNoOne topic for the full detail. Omit for the short answer on each.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / topic / enum
      Previous value: -[
      -  "burned",
      -  "target",
      -  "gym",
      -  "readiness",
      -  "load",
      -  "race",
      -  "recovery",
      -  "weight",
      -  "limits"
      -]New value: +[
      +  "burned",
      +  "target",
      +  "gym",
      +  "readiness",
      +  "load",
      +  "race",
      +  "recovery",
      +  "weight",
      +  "weather",
      +  "pollen",
      +  "limits"
      +]
  2. Added

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint, idempotentHint, non-destructive, closed-world), so the description's job is to add what they don't say. It does: it discloses the two response modes (one topic = full detail, omitted = every topic's short answer) and that answers should be paraphrased rather than dumped verbatim. What it doesn't do is describe the shape of the returned text at all, which matters with no 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.

Conciseness4/5

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

Front-loaded correctly: purpose, then the strict usage rule, then how to answer, then the topic map. The only waste is mild duplication — the opening sentence lists the topics in prose and the closing list repeats them with labels, so the topics appear twice. Dense but justified overall given eleven enum values to explain.

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 single optional parameter with no output schema, the description covers both invocation branches (specific topic vs. omitted) and the expected answer style, which is close to everything an agent needs. The remaining gap is the return format — a caller can't tell whether it receives prose, a structured block, or per-topic sections.

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% and the enum is self-documenting at the key level, but the description adds human-readable labels for each key ('limits (What these numbers are)', 'weather (Weather and the best time outside)'), which resolves genuinely ambiguous values like 'limits' and 'pollen'. It stops short of saying what each topic's content actually is, so it complements rather than supersedes the schema.

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?

The description gives a specific verb+resource ('Explains how Heza works out its numbers') and enumerates the exact subject matter (calories burned, target, gym calories, readiness, training load, race predictions, recovery, weight). This clearly separates it from the data-returning siblings like get_muscle_recovery or get_energy_balance, which supply numbers rather than explanations of them.

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?

It states an explicit trigger ('ONLY when the user asks how or why a number is calculated, or doubts one') and an explicit exclusion ('don't volunteer it'). It also gives downstream guidance on how to use the result ('Answer in plain words from the result, with the user's own numbers from the other tools when you have them'), which tells the agent how this tool relates to the get_* siblings.

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