Skip to main content
Glama

IronLog — Дневник тренировок и 7 калькуляторов

calculate_kbzhu

Read-onlyIdempotent

Рассчитать суточную норму калорий (BMR по Миффлину–Сан Жеору или Кэтчу–МакАрдлу, TDEE) и КБЖУ под цель (похудение, поддержание, набор массы).

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": {
      "sex": "<sex>",
      "ageYears": "<ageYears>",
      "heightCm": "<heightCm>",
      "weightKg": "<weightKg>"
    },
    "name": "calculate_kbzhu"
  }
}

Input Schema

NameRequiredDescriptionDefault
sexYesПол
goalNomaintain
activityNomoderate
ageYearsYesВозраст, полных лет
fatPerKgNoГрамм жиров на кг веса (0.3–2.5)
heightCmYesРост в см
weightKgYesВес тела в кг
bodyFatPctNoОпционально: процент жира (3–65) для формулы Кэтча–МакАрдла
proteinPerKgNoГрамм белка на кг веса (0.5–4.0)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so the safety profile is covered. The description adds the useful detail that the BMR formula is chosen between Mifflin–St Jeor and Ketch–McArdle (the latter tied to body fat), but it does not say what the response contains or how activity/goal shift the numbers.

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?

A single dense sentence with the purpose front-loaded and the formula variants in parentheses; nothing is wasted. The heavy parenthetical bundling makes it slightly harder to scan than a two-clause structure would.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 9-parameter calculator with no output schema, the definition should say what comes back (calories, protein, fat, carbs per goal) and which formula wins when bodyFatPct is omitted. 'КБЖУ' hints at the outputs, but the fallback behavior and result shape remain unstated.

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 78%, so the schema already documents most inputs. The description goes beyond it by glossing the goal enum (weight loss, maintenance, mass gain) in human terms and by linking bodyFatPct to the Ketch–McArdle formula choice, though activity and the per-kg protein/fat parameters are left to 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?

States a specific verb (calculate), a concrete resource (daily calorie norm and macronutrients), and names the exact methods (Mifflin–St Jeor, Ketch–McArdle, TDEE) plus the goal dimension. The subject matter alone separates it from every sibling (1RM, eGFR, half-life, plates/warmup), so an agent can pick it without ambiguity.

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?

The description implies when the tool applies (you want calorie/macro targets for cut/maintain/bulk) but never states it explicitly, gives no preconditions, and names no alternative. Usage is inferable from the purpose sentence rather than being spelled out.

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