Skip to main content
Glama

Scale a recipe and convert it to grams

scale_recipe
Read-onlyIdempotent

Scales a list of recipe ingredient lines ("1 1/2 cups all-purpose flour", "2 tbsp honey", "3 eggs") by a factor or from original to target servings. Parses mixed numbers and fraction characters. With to_metric_weights, converts cup and spoon amounts to grams with the measured density table and weights to grams, and reports lines it could not match.

Input Schema

NameRequiredDescriptionDefault
linesYesIngredient lines, one per item, quantity first.
factorNoMultiply every quantity by this, e.g. 2 or 0.5. Or give servings instead.
cup_systemNoWhich cup and spoon family the bare words cup, tbsp, tsp, fl oz and pint mean. us = 236.588 mL cup (default), metric = 250 mL cup with 15/5 mL spoons, imperial = 284.13 mL cup with UK pints. Explicit units such as metric_cup always win.
target_servingsNoServings you want.
original_servingsNoServings the recipe makes now.
to_metric_weightsNoAlso give grams for each line. Default false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already establish read-only, idempotent, non-destructive behavior, and the description adds genuinely new context: mixed-number and fraction-character parsing, the measured density table used for gram conversion, and that unmatched lines are reported back. It does not characterize failure modes beyond unmatched lines.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three dense sentences, front-loaded with the core action and supported by illustrative examples. Every sentence carries information, though the density is on the higher side.

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?

With no output schema, the description carries the burden of describing return values, and it only partially does so—mentioning reported unmatched lines but not the shape of the successful scaled output (e.g., strings vs. structured quantity/unit/gram triples). For a tool this data-shaping, that gap matters.

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%, so the schema already documents every parameter thoroughly, making 3 the baseline. The description does add one relationship not encoded in the schema—that factor is an alternative to original_servings/target_servings—but does not elaborate further.

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 names a specific verb and resource (scaling ingredient lines) and gives concrete input examples, so an agent immediately knows what the tool consumes. It does not explicitly contrast itself with the sibling convert_ingredient, which handles single-ingredient conversion, leaving that boundary to inference.

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?

It states the two supported modes clearly: scale by a factor, or scale from original to target servings, plus the optional to_metric_weights mode. It stops short of naming when to prefer this over convert_ingredient or search_ingredients.

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.