Skip to main content
Glama

Nutricity calculators

calculate_blood_alcohol

Read-onlyIdempotent

Estimate blood alcohol concentration (g/L and %), its peak, grams of alcohol and standard drinks with the Widmark equation using Watson total body water and 0.15 g/L/h elimination. A rough estimate only: it gives no time until any limit and must never be used to decide whether it is safe or legal to drive.

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": {
      "gender": "<gender>",
      "age": "<age>",
      "weight": "<weight>",
      "height": "<height>",
      "drinks": "<drinks>",
      "hoursSinceFirstDrink": "<hoursSinceFirstDrink>"
    },
    "name": "calculate_blood_alcohol"
  }
}

Input Schema

NameRequiredDescriptionDefault
ageYesAge in years (adults)
drinksYesDrinks consumed
genderYesBiological sex: M (male) or F (female)
heightYesHeight in cm
weightYesWeight in kg
hoursSinceFirstDrinkYesHours since the first drink

Output Schema

NameRequiredDescriptionDefault
peakBacGlYesEstimated peak BAC (g/L)
alcoholGramsYesPure alcohol consumed (g)
currentBacGlYesEstimated BAC now (g/L)
standardDrinksYesStandard drinks of 12 g
totalBodyWaterLYesWatson total body water (L)
currentBacPercentYesEstimated BAC now (% = g/dL)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and idempotentHint, so safety of the call is covered; the description goes further by naming the computational model, the body-water estimation method, and the fixed elimination rate, which tells the agent how the numbers arise. It does not discuss input validation behavior (e.g., age/weight bounds rejection) or precision limits, so it stops short of a 5.

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?

Two sentences, zero filler: the first front-loads the computed outputs and the method, the second front-loads the safety caveat. Every clause contributes information an agent needs.

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?

An output schema exists, so return values need no explanation, and all six required parameters are fully documented in the schema with ranges. The description adds the modeling assumptions and the safety limitation, leaving only minor gaps like how the elimination-rate term applies over the drinking window.

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%, including units for every field and an enum for gender, so the schema carries the parameter burden and the 3 baseline applies. The description does not add interpretation beyond the schema, such as how hoursSinceFirstDrink interacts with the elimination-rate assumption or what counts as a standard drink.

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?

States a specific verb and resource ("Estimate blood alcohol concentration (g/L and %)") and enumerates the additional outputs (peak, grams of alcohol, standard drinks), plus the underlying model (Widmark with Watson total body water and 0.15 g/L/h elimination). No sibling in the catalog computes BAC, and the framing is unambiguous about what is returned.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly scopes the tool as "a rough estimate only" and states two negative conditions: it gives no time until any limit and must never be used to decide whether it is safe or legal to drive. That is clear when-not-to-use guidance, but there is no positive statement of the appropriate clinical/educational context in which to use it.

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