Skip to main content
Glama

WritersLogic verifiable AI agents

recipe-scale

Recipe scaling with caller-declared non-linear rules — Scales up to 60 ingredient quantities by a servings ratio or a factor for an agent resizing a recipe or batch formula, applying per-ingredient rules the caller declares: linear (the labelled default), power exponent, fixed amounts, min/max clamps and rounding steps, with an optional display unit via unit-convert. Reports what rounding did (relative drift, rounds-to-zero). It does NOT know which in

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": {
      "ingredients": "<ingredients>"
    },
    "name": "recipe-scale"
  }
}

Input Schema

NameRequiredDescriptionDefault
factorNoScale factor, instead of fromServings/toServings.
densityNoDefault density for displayUnit conversions that cross mass and volume.
toServingsNoServings wanted.
ingredientsYesIngredients with quantity, unit and optional scaling rule.
fromServingsNoServings the recipe is written for.
maxRelativeDriftNoFail an ingredient when rounding moves it by more than this fraction (0.1 = 10%).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources