Skip to main content
Glama

Energy balance

get_energy_balance
Read-onlyIdempotent

Calories in vs out per day over a range (default last 14 days, max 90) using food logs and watch total burn plus what Heza adds (lifting_kcal per the gym calories setting, other_activities_kcal for activities the watch did not record; watch_kcal_out given per day). Averages, cumulative net, implied weight change (net / 7700 kcal per kg) compared with the actual weight trend. Only days with both food logs and watch data count toward the balance.

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

Input Schema

NameRequiredDescriptionDefault
toNo
fromNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior5/5

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

Annotations only cover the safe-read profile, and the description goes well beyond them: it discloses the default and maximum range, exactly how burn is composed (watch_kcal_out plus lifting_kcal governed by the gym calories setting plus other_activities_kcal for unrecorded activities), the implied-weight-change formula (net / 7700 kcal per kg), and the day-inclusion filter. This is the kind of computation semantics an agent cannot get from structured fields.

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?

Everything is front-loaded in one dense paragraph with no filler sentences; each clause carries either scope, computation, or caveat. The nested parentheses around the Heza-added components make it slightly harder to parse than a short bulleted breakdown would be.

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?

With no output schema, the description usefully previews the return content (averages, cumulative net, implied vs actual weight trend) and explains the counting rule. The remaining shortfall is the unstated date format for the two string parameters, which is the one thing an agent still has to guess.

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 description coverage is 0% for the two date parameters, so the description must compensate. It does add the default window and the 90-day cap, which are real semantic constraints on from/to, but it never states the expected date format or whether the range is inclusive, leaving a gap.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb-and-resource pair ('Calories in vs out per day over a range') and makes the data sources explicit (food logs plus watch burn plus Heza's lifting_kcal and other_activities_kcal additions). That makes the tool distinguishable in practice from intake-only or activity-only siblings, though no sibling is named outright.

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?

Default window (14 days) and ceiling (90 days) are stated, and the rule 'Only days with both food logs and watch data count toward the balance' tells the agent what data is required for a meaningful call. There is no explicit when-to-use guidance or comparison to alternatives such as get_nutrition_summary or get_daily_overview, so routing must be inferred.

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