Skip to main content
Glama

util_recipe_scale

Read-only

Recipe scaler + unit converter — Scale a recipe's ingredient lines from servings= to to= (or factor=). Parses whole numbers, decimals, fractions, mixed numbers, unicode fractions and ranges; converts awkward volumes to sensible units (tsp/tbsp/cup); rounds whole items like eggs and cloves with a note; leaves 'to taste' lines alone. system=metric converts US volumes/weights to ml/g, system=us converts metric to cups/oz. Lines separated by ';' or new lines. Offline. Price: $0.002 USDC (Base, via x402).

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": {
      "recipe": "<recipe>",
      "servings": "<servings>",
      "to": "<to>"
    },
    "name": "util_recipe_scale"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYese.g. 6
recipeYese.g. 2 cups flour; 1 1/2 tsp baking soda; 3 eggs; 1/4 cup sugar
servingsYese.g. 4

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Beyond the readOnly/destructive annotations, the description discloses substantive behavior: it parses mixed numbers and unicode fractions, rounds whole items like eggs and cloves 'with a note', leaves 'to taste' lines alone, and costs $0.002 USDC via x402. That is real value-added context. Minor tension: it says 'Offline' while openWorldHint=true is set, and it never states the shape of the returned text.

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?

The scaling behavior is front-loaded and every clause about parsing and rounding earns its place. The pricing sentence is useful but tacked on, and the description is dense enough that the nonexistent parameters slip past without being called out.

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?

For a three-parameter, no-output-schema tool the description covers input behavior well, but it never describes the return format (scaled lines? notes appended?), and the advertised factor=/system= options are absent from the schema. An agent can call it, but cannot reliably predict what comes back or trust the documented options.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline would be 3, but the description introduces a 'factor=' parameter and a 'system=metric/us' parameter that do not exist in the input schema, which can lead an agent to emit invalid arguments. It does clarify that 'to' is the target serving count and that lines are ';'-or-newline separated, but the phantom parameters are actively misleading.

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?

The description opens with a concrete verb+resource pair ('Scale a recipe's ingredient lines') and immediately scopes it to recipe/ingredient work, which separates it from the generic util_convert sibling. An agent knows exactly what domain problem this solves without opening the schema.

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

Usage Guidelines3/5

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

It implies usage through examples (scale from servings= to to=, or use factor=; use system=metric for US→metric conversion), which is more than nothing, but there is no explicit 'use this instead of util_convert when…' routing and no statement of when not to use it. The implied usage is clear but the alternatives are left to inference.

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