Skip to main content
Glama

MALAI

Nutrition targets

malai_get_nutrition_targets
Read-onlyIdempotent

MALAI: Read the user's daily nutrition targets from MALAI: calories, protein, carbs, fat, fiber, plus BMR and TDEE. MALAI calculates these from the user's profile and GLP-1 needs; use them exactly as given rather than calculating your own. Use when the user asks about their goals, their protein target, or whether an amount is enough.

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
bmrNo
noteYes
tdeeNo
fatGramsNo
carbGramsNo
fiberGramsNo
hasTargetsYesFalse when targets were never calculated; the other numbers are then absent.
proteinGramsNo
goalDeltaKcalNo
isPlaceholderYes
safetyAdjustedNo
targetCaloriesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already establish read-only, idempotent, non-destructive behavior, so the bar is lower. The description still adds real value by disclosing provenance ('MALAI calculates these from the user's profile and GLP-1 needs') and an instruction to trust the returned values verbatim. It does not say what happens if the profile is incomplete or targets are unavailable.

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?

Three sentences, front-loaded with the resource and its fields, then the provenance note, then the trigger conditions. Minor redundancy from repeating 'MALAI' three times, but no sentence is wasted.

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 an output schema present, return shape needn't be explained, and with no inputs there is nothing else to cover. The description supplies purpose, provenance, and triggers, which is sufficient for a simple read tool; only the failure/empty-profile case is unaddressed.

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?

The tool takes zero parameters, so there is nothing for the description to disambiguate; the baseline for a no-param tool applies. The description correctly spends no words on inputs.

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 and resource ('Read the user's daily nutrition targets') and enumerates exactly what comes back: calories, protein, carbs, fat, fiber, BMR, TDEE. The phrase 'use them exactly as given rather than calculating your own' implicitly separates it from the sibling calculate tools (malai_calculate_daily_targets, malai_calculate_protein_target).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit trigger conditions: the user asks about their goals, their protein target, or whether an amount is enough. It also steers away from recomputing targets. The gap is that it never names the alternative tools outright, so the agent must infer that the malai_calculate_* siblings are the path when targets must be derived rather than fetched.

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