Skip to main content
Glama

calculate_bmr

Read-onlyIdempotent

Bmr calorie calculator — Mifflin-St Jeor + TDEE

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": {
      "weightKg": "<weightKg>",
      "heightCm": "<heightCm>",
      "ageYears": "<ageYears>",
      "sex": "<sex>"
    },
    "name": "calculate_bmr"
  }
}

Input Schema

NameRequiredDescriptionDefault
sexYesSex: one of male, female.
activityNoActivity: one of sedentary, light, moderate, active, very_active.
ageYearsYesAge in whole years, for example: 35.
heightCmYesHeight in centimetres, for example: 175.
weightKgYesWeight in kilograms, for example: 70.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / activity / description
      Added value: +"Activity: one of sedentary, light, moderate, active, very_active."
    • addedInput schema / properties / ageYears / description
      Added value: +"Age in whole years, for example: 35."
    • addedInput schema / properties / heightCm / description
      Added value: +"Height in centimetres, for example: 175."
    • addedInput schema / properties / sex / description
      Added value: +"Sex: one of male, female."
    • addedInput schema / properties / weightKg / description
      Added value: +"Weight in kilograms, for example: 70."
  2. First observed

TDQS

B3.2/5.0
Behavior3/5

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

The annotations already establish that this is a read-only, idempotent, non-destructive, closed-world calculation. The description adds the formula identity, which is useful, but it does not explain how the optional activity parameter affects TDEE or what the calculated output represents.

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?

The description is a single compact phrase with no redundant wording, and the formula reference is front-loaded. It is terse, but it does not waste space.

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

Completeness2/5

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

There is no output schema, and the description does not clarify whether the tool returns BMR, TDEE, or both, nor what units are used. It also omits how omitting the optional activity parameter affects the result, leaving important gaps for an agent invoking the tool.

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%, with explicit parameter descriptions and enums for sex and activity. The description mentions Mifflin-St Jeor and TDEE but adds no further parameter-level meaning beyond what the schema already supplies.

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 that this is a BMR calorie calculator and names the Mifflin-St Jeor formula plus TDEE. That makes the resource clear, but it does not explicitly distinguish the tool from siblings such as calculate_bmi or calculate_ideal_weight.

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 guidance on when to use this tool versus related calculators, no prerequisites, and no note that activity is optional in the schema. The agent is left to infer usage entirely from the tool name.

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