Skip to main content
Glama

TreinoAI

Calcular IMC

calcular_imc
Read-onlyIdempotent

Índice de massa corporal (peso ÷ altura²) com a faixa da OMS: abaixo do peso, peso adequado, sobrepeso ou obesidade graus I a III.

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": {
      "pesoKg": "<pesoKg>",
      "alturaCm": "<alturaCm>"
    },
    "name": "calcular_imc"
  }
}

Input Schema

NameRequiredDescriptionDefault
pesoKgYesPeso corporal em kg.
alturaCmYesAltura em cm.

Output Schema

NameRequiredDescriptionDefault
imcYes
faixaYes
paginaYesPágina da calculadora, com o método e as fontes.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered elsewhere. The description adds the classification scheme (abaixo do peso through obesidade grau III), which is genuine behavioral context, but says nothing about edge cases at the 30–250 kg / 120–230 cm bounds or rounding of the result.

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?

A single sentence that front-loads the metric, gives the formula, and enumerates the output categories in the same breath. No filler, no redundancy.

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 two-parameter pure calculation with a fully described schema and an existing output schema, the description is sufficiently complete; return values need not be explained. The only shortfall is absent guidance on when to pick this over the neighboring body-metric calculators.

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% — both pesoKg and alturaCm carry units and ranges — so the schema does the heavy lifting. The formula in the description implicitly confirms the units (kg and cm, not metres), which is a small but real addition; nothing is said about the numeric bounds.

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 states a concrete resource (índice de massa corporal) and spells out the computation (peso ÷ altura²) plus the resulting WHO classification bands. It is clear what the tool returns, though it does not explicitly name the sibling calculators it differs from (e.g. calcular_gordura_corporal, calcular_peso_ideal).

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 mention of alternatives among the many calcular_* siblings. An agent must infer from the name alone that this is a screening metric rather than a body-composition measure.

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