Skip to main content
Glama

Tinplate Edge AI Safety, Security & EU Compliance

tinplate_nutrition_macros

Read-onlyIdempotent

Offline Natural-Language Nutrition, Macros & Calories Burned API: Extract 11 USDA nutrients, caffeine, glycemic load, satiety, allergens, TDEE/macro targets, and MET calories burned in <1 ms offline. (Endpoint: POST /v1/nutrition/estimate)

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": {
      "text": "<text>"
    },
    "name": "tinplate_nutrition_macros"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesNatural-language food or multi-item meal description with optional weights (g, kg, oz, lb, ml), cooking states (raw, cooked, grilled, fried, breaded, boiled, baked, steamed), recipe serving splits, or quantities (cups, slices, scoops, eggs).
servingsNoOptional explicit recipe serving count for computing per_serving macro splits alongside total meal values.
custom_foodsNoOptional per-request custom or branded foods merged ahead of the built-in 294-food USDA v2 database.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / custom_foods
      Added value: +{
      +  "description": "Optional per-request custom or branded foods merged ahead of the built-in 294-food USDA v2 database.",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "alcohol_g_per_unit": {
      +        "maximum": 200,
      +        "minimum": 0,
      +        "type": "number"
      +      },
      +      "aliases": {
      +        "items": {
      +          "maxLength": 80,
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "maxItems": 12,
      +        "type": "array"
      +      },
      +      "allergens": {
      +        "items": {
      +          "enum": [
      +            "eggs",
      +            "dairy",
      +            "gluten",
      +            "fish",
      +            "shellfish",
      +            "nuts",
      +            "peanuts",
      +            "soy",
      +            "sesame"
      +          ],
      +          "type": "string"
      +        },
      +        "maxItems": 9,
      +        "type": "array"
      +      },
      +      "caffeine_mg_per_unit": {
      +        "maximum": 2000,
      +        "minimum": 0,
      +        "type": "number"
      +      },
      +      "carbs_per_unit": {
      +        "default": 0,
      +        "maximum": 500,
      +        "minimum": 0,
      +        "type": "number"
      +      },
      +      "cholesterol_mg_per_unit": {
      +        "default": 0,
      +        "maximum": 5000,
      +        "minimum": 0,
      +        "type": "number"
      +      },
      +      "dairy_free": {
      +        "type": "boolean"
      +      },
      +      "fat_per_unit": {
      +        "default": 0,
      +        "maximum": 500,
      +        "minimum": 0,
      +        "type": "number"
      +      },
      +      "fiber_per_unit": {
      +        "default": 0,
      +        "maximum": 200,
      +        "minimum": 0,
      +        "type": "number"
      +      },
      +      "gluten_free": {
      +        "type": "boolean"
      +      },
      +      "grams_per_unit": {
      +        "default": 100,
      +        "maximum": 5000,
      +        "minimum": 1,
      +        "type": "number"
      +      },
      +      "kcal_per_unit": {
      +        "maximum": 5000,
      +        "minimum": 0,
      +        "type": "number"
      +      },
      +      "name": {
      +        "maxLength": 80,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "potassium_mg_per_unit": {
      +        "default": 0,
      +        "maximum": 20000,
      +        "minimum": 0,
      +        "type": "number"
      +      },
      +      "protein_per_unit": {
      +        "maximum": 500,
      +        "minimum": 0,
      +        "type": "number"
      +      },
      +      "saturated_fat_per_unit": {
      +        "default": 0,
      +        "maximum": 200,
      +        "minimum": 0,
      +        "type": "number"
      +      },
      +      "sodium_mg_per_unit": {
      +        "default": 0,
      +        "maximum": 20000,
      +        "minimum": 0,
      +        "type": "number"
      +      },
      +      "sugar_per_unit": {
      +        "default": 0,
      +        "maximum": 500,
      +        "minimum": 0,
      +        "type": "number"
      +      },
      +      "unit_label": {
      +        "default": "serving",
      +        "maxLength": 32,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "vegan": {
      +        "type": "boolean"
      +      },
      +      "vegetarian": {
      +        "type": "boolean"
      +      }
      +    },
      +    "required": [
      +      "name",
      +      "kcal_per_unit",
      +      "protein_per_unit"
      +    ],
      +    "type": "object"
      +  },
      +  "maxItems": 50,
      +  "type": "array"
      +}
    • addedInput schema / properties / servings
      Added value: +{
      +  "description": "Optional explicit recipe serving count for computing per_serving macro splits alongside total meal values.",
      +  "example": 4,
      +  "maximum": 100,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • changedInput schema / properties / text / description
      Previous value: -"Natural-language food or multi-item meal description with optional weights (g, kg, oz, lb, ml) or quantities (cups, slices, scoops, eggs)."New value: +"Natural-language food or multi-item meal description with optional weights (g, kg, oz, lb, ml), cooking states (raw, cooked, grilled, fried, breaded, boiled, baked, steamed), recipe serving splits, or quantities (cups, slices, scoops, eggs)."
  2. Added

TDQS

B3.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and openWorldHint=false, but the description still adds useful behavior information: execution happens fully offline with sub-millisecond latency, and the response covers a fixed set of extracted nutrient categories. It stops short of saying anything about error handling when food items are unrecognized, which is a meaningful gap for a free-text parser.

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?

A single dense sentence front-loads the capability and scope, followed by the endpoint in parentheses. Every clause maps to either a capability or an operational fact; there is no filler or redundancy.

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?

With no output schema, the description carries the burden of explaining returns, and it does so by enumerating the extracted nutrient families (11 USDA nutrients, caffeine, glycemic load, satiety, allergens, targets, calories burned). What is missing is response shape and units, plus any note that custom foods can extend the built-in 294-food database.

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%, and the text, servings, and custom_foods parameters are documented in detail in the schema itself, including formats, units, and cooking states. The description adds no parameter-level meaning beyond restating that input is natural language, so it sits at the baseline where the schema does the work.

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

Purpose3/5

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

The description names the action (extract nutrients from a natural-language meal description) and the resource (USDA nutrients, caffeine, glycemic load, allergens). However, it also claims 'TDEE/macro targets' and 'MET calories burned', which are exactly what the sibling tools tinplate_nutrition_macros_targets and tinplate_nutrition_macros_calories_burned appear to cover, so the stated scope blurs the boundary between this tool and its siblings instead of sharpening it.

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 choose this tool over the nutrition-specific siblings (targets, calories burned), no statement of prerequisites, and no exclusions. The only usage-adjacent information is the endpoint path, which describes transport rather than selection criteria.

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