Skip to main content
Glama

Calorie Calculator API - BMR (Mifflin-St Jeor), TDEE, weight goals and BMI

calorie_calculator
Read-onlyIdempotent

Calculate daily calorie needs from age, sex, height, weight (metric or imperial) and activity level: BMR, TDEE across all 5 activity tiers, daily targets to lose/maintain/gain weight and BMI. Runs on our server, files are deleted right after the call, nothing stored. Free: 5 calls/day per IP. Paid: Radar API key (from €9/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.001/call via x402 at https://radarbg.com/x402/calorie-calculator.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "age": 30,
      "sex": "f",
      "units": "metric",
      "height": "170",
      "weight": "70",
      "activity": "1.375"
    },
    "name": "calorie_calculator"
  }
}

Input Schema

NameRequiredDescriptionDefault
ageNoAge in years
sexNof (female) or m (male)f
unitsNometric (cm, kg) or imperial (ft/in, lb)metric
heightNoHeight in cm (or e.g. 5'10 / 70 for imperial)170
weightNoWeight in kg (or lb for imperial)70
activityNoActivity factor: 1.2, 1.375, 1.55, 1.725 or 1.91.375

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior5/5

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

Goes well beyond the readOnly/idempotent/openWorld annotations by disclosing execution location ('runs on our server'), a privacy/retention statement, and concrete throttling and auth mechanics: 5 calls/day per IP free, X-API-Key for the paid tier, or $0.001/call via x402. Rate limits and authentication requirements are exactly the operational facts an agent needs before calling.

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?

Two sentences, front-loaded with what is computed and followed by the operational/pricing terms. It is dense but every clause carries information; the 'files are deleted' phrase is the one bit that reads as boilerplate for a calculator with no file inputs.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Although there is no output schema, the description enumerates the returned metrics (BMR, TDEE, three goal targets, BMI) and covers access, cost and rate limits, so an agent can call it and interpret the result without further information.

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%, so the schema already explains age, sex, units, height, weight and the five activity-factor values with defaults. The description only restates the metric-or-imperial choice and 'all 5 activity tiers', adding little beyond the structured fields; the 3 baseline applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific verb (calculate) plus the exact resource set: BMR, TDEE across all five activity tiers, lose/maintain/gain targets, and BMI, keyed off age, sex, height, weight and activity. That is far more concrete than the sibling names alone and lets an agent tell it apart from loan_calculator or percentage_calculator at a glance.

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 domain of use (daily calorie needs, weight goals) is implied clearly, but there is no explicit when-to-use/when-not or pointer to an alternative sibling. Usage guidance is inferred from the output list 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