Skip to main content
Glama

MALAI

Calorie and macro targets

malai_calculate_daily_targets
Read-onlyIdempotent

MALAI: Estimate daily calories, protein, carbs, fat and fiber from sex, age, height, weight, activity and goal, with MALAI's safety limits (a calorie floor and a cap on the rate of loss). Same calculator the MALAI app uses. Use for "how many calories should I eat on Wegovy", "what macros to lose 1 lb a week". Adults only. Don't use for a signed-in user's saved targets (that is malai_get_nutrition_targets).

Input Schema

NameRequiredDescriptionDefault
ageYesAge in years. Adults only (18+).
sexYesSex used by the calorie formula.
goalNoWeight goal. Default lose.
heightYesHeight, in height_unit. Feet and inches must be converted to inches (5 ft 6 in = 66).
weightYesCurrent body weight, in weight_unit.
activityNoDaily activity: sedentary (desk, little exercise), light (1–3 workouts a week), moderate (3–5), very_active (6–7), athlete (training twice a day). Default light.
height_unitYesUnit of height.
weight_unitYesUnit of weight and of rate_per_week.
rate_per_weekNoDesired change per week, in weight_unit. Ignored for maintain. Default 0.5 kg (1.1 lb). Loss is capped for safety; the applied rate is returned as rate_per_week_kg.

Output Schema

NameRequiredDescriptionDefault
bmrYes
noteYes
tdeeYes
fat_gYes
notesYes
sourceYes
carbs_gYes
fiber_gYes
caloriesYes
protein_gYes
goal_delta_kcalYes
rate_per_week_kgYes
safety_adjustmentsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Beyond the read-only and idempotent annotations, it discloses meaningful calculation behavior: a calorie floor, a cap on the rate of loss, adult-only applicability, and parity with the MALAI app's calculator. It does not provide the numeric safety thresholds or formula, but the schema also explains that loss is capped and the applied rate is returned.

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?

The opening sentence front-loads the purpose, outputs, principal inputs, and safety behavior. The remaining sentences efficiently add app parity, concrete use cases, an eligibility restriction, and sibling routing without digression.

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?

For a nine-parameter calculator, the definition combines clear scope, example requests, safety constraints, and an explicit alternative with a fully described input schema and an output schema. Together with the safety annotations, this gives an agent enough context to select and invoke it correctly without requiring formula or return-value details in the description.

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% and already documents units, defaults, enum meanings, height conversion, and rate capping in detail. The description usefully summarizes the major inputs and illustrates a weekly-loss request, but adds little parameter-level information beyond that comprehensive 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 uses a specific verb and resource: estimating daily calories, protein, carbs, fat, and fiber from stated physiological and goal inputs. It also distinguishes calculated targets from a signed-in user's saved targets in malai_get_nutrition_targets.

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?

Concrete example requests show when to use it, while the adults-only restriction establishes eligibility. The explicit exclusion for saved targets, including the correct sibling tool, provides clear when-not and alternative guidance.

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