calcular_calorias_macros
Distribui macronutrientes (proteínas, carboidratos, gorduras) a partir da meta calórica diária. Perfis por estilo de dieta (ACSM/ADA): equilibrada 30/40/30, low_carb 35/25/40, high_protein 40/35/25, cetogênica 30/5/65. Conversão: proteína 4 kcal/g, carbo 4 kcal/g, gordura 9 kcal/g. Retorna: grama...
This record as markdown: /tools/io-github-lfhillesheim-contai-mcp-server/calcular-calorias-macros.md
What calcular_calorias_macros does on Contaí — Calculadoras Fiscais Brasileiras
AI agents call calcular_calorias_macros to retrieve information from Contaí — Calculadoras Fiscais Brasileiras without modifying anything. It is typically the context-gathering step in research, monitoring, and reporting workflows, before the agent takes action elsewhere.
| Parameter | Type | Required | Description |
|---|---|---|---|
pesoKg | number | Yes | Peso corporal em quilogramas (para calcular proteína por kg) |
objetivo | string | Yes | Objetivo nutricional: perda_peso, manutencao ou ganho_massa |
estiloDieta | string | Yes | Estilo de dieta: equilibrada (30/40/30 P/C/G), low_carb (35/25/40), high_protein (40/35/25), cetogenica (30/5/65) |
caloriasDiariasAlvo | number | Yes | Meta de calorias diárias (geralmente obtida do GET/TMB) |
Parameters from the server's own tool schema.
Why calcular_calorias_macros is rated Low
This is a pure calculation and information retrieval tool. It takes input parameters (caloric goal, diet style, body weight) and returns computed macronutrient breakdowns. There are no state changes, no data modifications, no external operations triggered, and no destructive actions. It functions as a nutritional calculator, similar to a reference lookup.
From the tool's definition The tool 'calcular_calorias_macros' distributes macronutrients based on daily caloric goals and diet profiles. It performs calculations and returns nutrient information (grams, percentages, ratios) with no side effects.
Attacks that exploit this kind of access
The rule that runs calcular_calorias_macros safely
PolicyLayer is an MCP gateway: it sits between your AI agents and Contaí — Calculadoras Fiscais Brasileiras, and checks every tool call against a rule you set before the call runs. Nothing changes on the server itself. For calcular_calorias_macros, this is the rule to start with:
calcular_calorias_macros is read-only, so it stays allowed. Everything else on the server is denied unless you say otherwise.
The button opens the PolicyLayer dashboard: create your workspace, connect Contaí — Calculadoras Fiscais Brasileiras, apply this rule, and every calcular_calorias_macros call is checked against it from then on.
Questions about calcular_calorias_macros
Distribui macronutrientes (proteínas, carboidratos, gorduras) a partir da meta calórica diária. Perfis por estilo de dieta (ACSM/ADA): equilibrada 30/40/30, low_carb 35/25/40, high_protein 40/35/25, cetogênica 30/5/65. Conversão: proteína 4 kcal/g, carbo 4 kcal/g, gordura 9 kcal/g. Retorna: gramas de cada macro, % por macro, proteína por kg corporal. It is categorised as a Read tool in the Contaí — Calculadoras Fiscais Brasileiras MCP Server, which means it retrieves data without modifying state.
calcular_calorias_macros accepts 4 parameters: pesoKg, objetivo, estiloDieta, caloriasDiariasAlvo. Required: pesoKg, objetivo, estiloDieta, caloriasDiariasAlvo. The full parameter table on this page comes from the server's own tool schema.
Register the Contaí — Calculadoras Fiscais Brasileiras MCP server in PolicyLayer and add a rule for calcular_calorias_macros: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Contaí — Calculadoras Fiscais Brasileiras. Nothing to install.
calcular_calorias_macros is a Read tool with low risk. Read-only tools are generally safe to allow by default.
Yes. Add a rate_limit block to the calcular_calorias_macros rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for calcular_calorias_macros. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
calcular_calorias_macros is provided by the Contaí — Calculadoras Fiscais Brasileiras MCP server (@contai-evoluke/mcp-server). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
More on Contaí — Calculadoras Fiscais Brasileiras, and thousands of servers like it.
Across the catalogue