Skip to main content
Glama

TreinoAI

Calcular macros

calcular_macros
Read-onlyIdempotent

Divide uma meta diária de calorias em gramas de proteína (2 g/kg para emagrecer, 1,8 g/kg nos outros objetivos), gordura (25% das calorias) e carboidrato (o restante).

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": {
      "caloriasPorDia": "<caloriasPorDia>",
      "pesoKg": "<pesoKg>",
      "objetivo": "<objetivo>"
    },
    "name": "calcular_macros"
  }
}

Input Schema

NameRequiredDescriptionDefault
pesoKgYesPeso corporal em kg.
objetivoYesObjetivo: emagrecimento, manutencao ou hipertrofia.
caloriasPorDiaYesMeta de calorias por dia.

Output Schema

NameRequiredDescriptionDefault
paginaYesPágina da calculadora, com o método e as fontes.
gorduraGYes
proteinaGYes
gorduraKcalYes
carboidratoGYes
proteinaKcalYes
carboidratoKcalYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and non-destructive behavior, so the safety profile is covered. The description adds real behavioral content by disclosing the actual formulas, including the objective-dependent protein factor (2 g/kg for emagrecimento, 1.8 g/kg otherwise), 25% of calories for fat, and carbohydrate as the remainder.

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?

One dense sentence, front-loaded with the operation and followed by the exact output breakdown with no filler. Every clause carries information an agent needs.

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?

An output schema exists, so return values need not be described, and the formula is fully specified. Minor gaps remain: no mention of rounding behavior or what happens near the schema's weight/calorie bounds, but nothing essential is missing for correct invocation.

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 goes beyond it by explaining how the 'objetivo' enum value changes the computation and how each input feeds the split. This is genuine semantic value the schema alone does not convey.

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?

The description names a specific operation ('Divide uma meta diária de calorias') and states exactly what it produces: grams of protein, fat, and carbohydrate. It is clearly distinguishable from siblings such as calcular_proteina or calcular_calorias_queimadas, though it never names an alternative explicitly.

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 when-to-use or when-not-to-use guidance and no named alternative (e.g., calcular_proteina for protein alone, calcular_deficit_calorico for setting the calorie target first). The only usage hint is implicit: the tool consumes a daily calorie goal, weight, and objective.

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