Skip to main content
Glama

Cost a recipe

cost_recipe
Read-onlyIdempotent

Cost any recipe from its ingredients. For each ingredient give the pack price, the pack size and the quantity used (same unit as the pack size, e.g. grams). Returns each line cost, batch cost, cost per portion and a suggested menu price from a target food cost % (default 30%), ex-VAT and inc-VAT. open_in_prepsheet_url opens this exact recipe in the free ChefSums tool (no sign-in), where the user can edit, scale, print and save it; the recipe travels in the link itself and is not stored by ChefSums.

Input Schema

NameRequiredDescriptionDefault
portionsYesHow many portions the batch makes.
ingredientsYesThe recipe's ingredients, 1 to 100 lines. Each line needs a name, the ex-VAT pack price, the pack size and the quantity used in the same unit as the pack size.
recipe_nameNoOptional dish name.
vat_rate_pctNoVAT rate for the inc-VAT price. Default 20 (UK standard).
target_food_cost_pctNoTarget food cost as % of the ex-VAT price. Default 30.

Output Schema

NameRequiredDescriptionDefault
portionsYes
batch_costYes
ingredientsYes
recipe_nameYes
vat_rate_pctYes
target_gp_pctYes
cost_per_portionYes
target_food_cost_pctYes
open_in_prepsheet_urlYes
suggested_price_ex_vatYes
suggested_price_inc_vatYes
premium_price_ex_vat_at_75_gpYes
premium_price_inc_vat_at_75_gpYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / ingredients / description
      Added value: +"The recipe's ingredients, 1 to 100 lines. Each line needs a name, the ex-VAT pack price, the pack size and the quantity used in the same unit as the pack size."
  2. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description adds genuinely non-derivable detail: the recipe 'travels in the link itself and is not stored by ChefSums', which tells the agent about persistence and privacy. The ex-VAT/inc-VAT and default 30% food cost statements are also useful framing, though return-field detail partly duplicates the output schema.

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?

Two sentences, front-loaded with the purpose before the output/environment details. The second sentence is long and semicolon-packed, but every clause carries distinct information (outputs, link behaviour, non-persistence).

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?

Five parameters, a nested ingredient array and a rich annotation set are all covered, and the description explains the one output field (open_in_prepsheet_url) an agent would otherwise have to discover. With an output schema present, return values needn't be spelled out further; only explicit sibling routing is missing.

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%, so the schema already documents portions, pack_price, pack_size, quantity_used and the two percentage defaults. The description reinforces the key constraint ('same unit as the pack size, e.g. grams') but adds no semantics the schema doesn't already carry — baseline 3 is correct.

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?

Opens with a specific verb + resource ('Cost any recipe from its ingredients') and immediately enumerates the outputs (line cost, batch cost, cost per portion, suggested menu price). This is clearly separable from siblings like calculate_gp and build_prep_list without opening any 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?

The when-to-use is implied by the purpose ('cost a recipe') but no sibling is named and no when/when-not condition is stated — e.g. nothing tells the agent whether to use this or calculate_gp for margin work. The sentence about open_in_prepsheet_url describes a downstream action, not tool selection.

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