Skip to main content
Glama
FDA Nutrition Facts MCP Server

FDA Nutrition Facts MCP Server

Round Raw Nutrient Numbers per FDA 21 CFR 101.9

round_fda_nutrition_value

Applies FDA 21 CFR 101.9 rounding increments and calculates % Daily Value from raw per-serving nutrient numbers for nutrition label reference calculations.

Instructions

Apply official US FDA 21 CFR 101.9 legal rounding increments and compute % Daily Value (%DV) for raw per-serving nutrient numbers. Pure numeric reference calculation (no label graphics or recipe parsing).

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": {
      "nutrients": "<nutrients>"
    },
    "name": "round_fda_nutrition_value"
  }
}

Input Schema

NameRequiredDescriptionDefault
nutrientsYesMap of FDA nutrient keys to raw per-serving numbers in official FDA units (calories in kcal; fats/carbs/fiber/sugars/protein in g; cholesterol/sodium/calcium/iron/potassium in mg; vitamin_d in mcg).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It discloses scope boundaries ('pure numeric reference calculation') but says nothing about the return shape, e.g. whether rounded nutrient values and %DV come back together, how fractional or missing entries are treated, or whether rounding follows the exact CFR increment tables per nutrient.

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 tightly packed sentences with the operation front-loaded and the scope disclaimer second; nothing is repeated or wasted.

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?

There is no output schema and no annotations, so the description is the only source of behavioral context, and it leaves the result structure undefined despite claiming to compute %DV. It is adequate for the narrow computation but incomplete for an agent that needs to know what comes back.

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 coverage is 100% and the single 'nutrients' object already documents allowed keys, units (kcal, g, mg, mcg), and a non-negative constraint. The description only reinforces 'raw per-serving' semantics and adds no unit or format detail beyond the schema, so the baseline 3 applies.

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?

States a concrete verb ('Apply... legal rounding increments and compute %DV') against a concrete resource ('raw per-serving nutrient numbers'), and cites the governing regulation (21 CFR 101.9). It does not name the sibling lookup_fda_daily_value, so an agent must infer that this tool computes while the sibling looks up reference values.

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?

The parenthetical 'no label graphics or recipe parsing' clearly excludes adjacent tasks, telling the agent this is the numeric rounding step only. It stops short of explicitly naming the sibling tool whose DV reference data this calculation depends on.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools