Skip to main content
Glama

calcular_macros

Read-only

Calcula las necesidades calóricas diarias y la distribución óptima de macronutrientes. Usa la fórmula Mifflin-St Jeor para la TMB (Tasa Metabólica Basal) y multiplica por el factor de actividad para obtener el TDEE. Ajusta las calorías según el objetivo (definición -500 kcal, mantenimiento 0, volumen +400 kcal) y distribuye en proteínas, carbohidratos y grasas. ⚠️ Orientativo — consultar con dietista-nutricionista titulado para planes personalizados.

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": {
      "peso": "<peso>",
      "altura": "<altura>",
      "edad": "<edad>",
      "sexo": "<sexo>",
      "nivelActividad": "<nivelActividad>",
      "objetivo": "<objetivo>"
    },
    "name": "calcular_macros"
  }
}

Input Schema

NameRequiredDescriptionDefault
edadYesEdad en años
pesoYesPeso corporal en kilogramos
sexoYesSexo biológico (determina la constante de la fórmula Mifflin-St Jeor)
alturaYesAltura en centímetros
objetivoYes"definicion" (déficit -500 kcal, proteína 2,1 g/kg), "mantenimiento" (0 kcal, proteína 1,7 g/kg), "volumen" (superávit +400 kcal, proteína 1,8 g/kg). La grasa es al menos el 20 % de las kcal (y no menos de 0,6 g/kg en definición u 0,8 g/kg en el resto); los carbohidratos, el resto
nivelActividadYes"sedentario" (sin ejercicio), "ligero" (1-3 días/semana), "moderado" (3-5 días), "activo" (6-7 días), "muy_activo" (ejercicio intenso diario o 2x/día)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / objetivo / description
      Previous value: -"\"definicion\" (déficit -500 kcal, 30P/40C/30G%), \"mantenimiento\" (0 kcal, 25P/50C/25G%), \"volumen\" (superávit +400 kcal, 25P/50C/25G%)"New value: +"\"definicion\" (déficit -500 kcal, proteína 2,1 g/kg), \"mantenimiento\" (0 kcal, proteína 1,7 g/kg), \"volumen\" (superávit +400 kcal, proteína 1,8 g/kg). La grasa es al menos el 20 % de las kcal (y no menos de 0,6 g/kg en definición u 0,8 g/kg en el resto); los carbohidratos, el resto"
  2. First observed

TDQS

B3.4/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true, so the description carries the behavioral burden and does so well: it discloses the BMR formula, the TDEE multiplier step, the exact caloric adjustments per goal (-500/0/+400 kcal), and the macro split logic. It stops short of describing the response shape (units, field names), which matters since there is 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?

Three sentences, front-loaded with the outcome, then the method, then the caveat. No filler, though the disclaimer could be tightened without losing its warning value.

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?

Inputs are fully covered by the schema and the computation logic is explained, but with no output schema the description should say what comes back (total kcal, grams of protein/carbs/fat, units). That gap leaves the agent guessing at the return payload for an otherwise simple deterministic calculator.

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 100%, with enum values already documented in detail, including the goal-specific protein grams per kg and fat minimums. The description restates the caloric adjustments already present in the objetivo enum, adding little beyond the schema, so the baseline 3 applies.

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?

States a specific verb and resource: calculates daily caloric needs and optimal macronutrient distribution, naming the Mifflin-St Jeor formula and activity-factor multiplication. An agent knows exactly what computation happens, though nothing distinguishes it from adjacent calculators like calcular_gasto_energetico or calcular_imc.

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

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use guidance, and no alternative tool is named. The closing note about consulting a registered dietitian is a safety caveat about the results, not guidance on selecting this tool over a sibling.

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