Skip to main content
Glama

TreinoAI

Calcular déficit calórico

calcular_deficit_calorico
Read-onlyIdempotent

Calorias por dia para emagrecer com um déficit de 10% a 30% sobre o gasto diário (Mifflin-St Jeor × fator de atividade), a perda estimada por semana e, com o peso-meta, em quantas semanas chega lá.

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": {
      "sexo": "<sexo>",
      "idadeAnos": "<idadeAnos>",
      "pesoKg": "<pesoKg>",
      "alturaCm": "<alturaCm>",
      "nivelAtividade": "<nivelAtividade>"
    },
    "name": "calcular_deficit_calorico"
  }
}

Input Schema

NameRequiredDescriptionDefault
sexoYesSexo usado pelas fórmulas: masculino ou feminino.
pesoKgYesPeso corporal em kg.
alturaCmYesAltura em cm.
idadeAnosYesIdade em anos.
pesoMetaKgNoPeso-meta em kg. Opcional.
nivelAtividadeYesNível de atividade: sedentario (pouco ou nenhum exercício), leve (exercício 1–3x por semana), moderado (exercício 3–5x por semana), intenso (exercício 6–7x por semana), atleta (treino pesado 2x ao dia).
deficitPercentualNoDéficit sobre o gasto diário, em %. 20 é um ponto de partida comum.

Output Schema

NameRequiredDescriptionDefault
paginaYesPágina da calculadora, com o método e as fontes.
tmbKcalYes
abaixoDaTmbYes
perdaSemanalKgYes
semanasAteMetaYes
gastoDiarioKcalYes
deficitDiarioKcalYes
caloriasPorDiaKcalYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive, and closed-world, so the safety profile is covered. The description adds value beyond them by disclosing the underlying formula, the 10–30% deficit band, and what results are computed — appropriate for a pure, side-effect-free calculator where auth and rate-limit notes are unnecessary.

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 front-loaded sentence that names the output first and then the method, with no filler. It is dense — one clause carries the formula, the deficit range, and two of the three outputs — but nothing is redundant.

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?

For a 7-parameter, 5-required calculator with a full output schema and complete annotation coverage, the definition supplies the method and the output contents, which is enough to call it correctly. Only minor detail, such as how the optional pesoMetaKg changes the result shape, is left implicit.

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 100%, so the baseline is 3, but the description adds meaning the schema does not: that sexo/idade/peso/altura feed Mifflin-St Jeor, that nivelAtividade acts as a multiplier, and that pesoMetaKg is what unlocks the weeks-to-goal output. It does not restate units or bounds, correctly leaving those to the schema.

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 (calcular / déficit calórico) and pins down the method (Mifflin-St Jeor × fator de atividade) plus the concrete outputs: daily calories, weekly loss estimate, and weeks-to-goal-weight. That separates it from calcular_tmb and calcular_gasto_calorico, though it never names those siblings explicitly.

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 weight-loss framing implies when the tool applies, but there is no explicit when-to-use/when-not statement and no pointer to the alternative calculators (TMB, gasto calórico) an agent might reach for instead. Usage is inferable rather than stated.

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