Skip to main content
Glama

Human Body Calculator MCP

Macronutrient Balance (AMDR) Calculator

calculate_nutrient_balance
Read-onlyIdempotent

Evaluate protein, carbohydrate, and fat percentage split against USDA/IOM Acceptable Macronutrient Distribution Ranges. Conditional: at least one of protein, carbs, or fat must be > 0. Informational estimate only — not medical advice, diagnosis, or treatment. Consult a qualified healthcare professional.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "calculate_nutrient_balance"
  }
}

Input Schema

NameRequiredDescriptionDefault
fatNo
carbsNo
proteinNo

Output Schema

NameRequiredDescriptionDefault
dataYes
typeYes
disclaimerYesNon-diagnostic medical or wellness disclaimer

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, closed-world, non-destructive behavior, so the baseline bar is low. The description still adds real value beyond that: it names the reference standard applied, states the input precondition, and adds an explicit disclaimer that results are informational and not medical advice. What it does not disclose is how the percentage split is derived or what happens when inputs are omitted entirely.

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?

The description is short, front-loads the core purpose, and every sentence carries distinct information (purpose, precondition, disclaimer). The 'Conditional:' phrasing is slightly awkward, and the two-sentence disclaimer occupies a large share of an already brief text, but nothing is redundant.

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?

With an output schema present, the description needn't explain return values, and annotations cover the safety profile. The remaining gap is real, though: input units are undefined and there is no differentiation from a near-identical sibling, which for a 3-numeric-parameter calculator is exactly the information an agent needs.

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 0% — the schema exposes only names and min/max bounds, so the description carries the full burden. It does name all three inputs and frames their role in the percentage-split computation, which is partial compensation. Critically, it never states the units (grams, calories, or percent), and the numeric ranges (fat ≤ 500, carbs ≤ 2000, protein ≤ 1000) are consistent with either grams or kcal, so the agent must guess.

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 verb (evaluate) and resource (protein/carb/fat percentage split) measured against a named standard (USDA/IOM AMDR). That is a clear, concrete purpose. It does not, however, differentiate itself from a very plausibly overlapping sibling such as calculate_macronutrient, leaving the agent to guess which one to pick.

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 'Conditional: at least one of protein, carbs, or fat must be > 0' line states an input validity rule, which is useful pre-call guidance. There is no explicit when-to-use context, no when-not-to-use, and no routing to an alternative even though calculate_macronutrient appears to cover similar ground. Usage is therefore only implied.

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