Skip to main content
Glama

Never86'd Action Shift

analyze_recipe_cost

Read-onlyIdempotent

Cost a plate (mode=recipe), a liquor drink (mode=drink_recipe), or a fountain+spirit drink (mode=fountain_spirit_drink). Drink recipes pull liquor fl oz from THIS unit’s house pour; fountain soda needs BIB mix ratio + cup liquid fill after ice — never assume 1.5 / 1.75 / 2 or 5+1. Also EP unit cost / food COGS / food-cost % when counts and sales share scope. Unverified math; never invents yield or treats an invoice as COGS.

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": {
      "mode": "<mode>"
    },
    "name": "analyze_recipe_cost"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeYes
bib_costNoInvoice/landed $ for THIS BIB.
store_idNoRequired for drink_recipe. Pour standards are per unit.
food_cogsNo
purchasesNo
syrup_galNoBIB syrup gallons (e.g. 5).
food_salesNo
menu_priceNo
soda_labelNoFor fountain_spirit_drink (e.g. Pepsi).
ingredientsNorecipe: [{name?, epQty, epUnitCost}]. drink_recipe: liquor lines use pourCategory + house pour; fixed/recipe_specific need epQty.
location_idNo
recipe_costNo
syrup_partsNoDeclared syrup parts (usually 1).
water_partsNoDeclared water parts (e.g. 5 for 5+1).
ap_unit_costNo
spirit_labelNoFor fountain_spirit_drink (e.g. Hawkeye vodka).
yield_fractionNo
cup_marked_fl_ozNo
ending_inventoryNo
house_pour_linesNoFor drink_recipe: operator-declared pour lines for THIS unit (from declare_pour_standards). Empty → Missing Evidence + ask.
liquid_fill_fl_ozNoLiquid fl oz after ice + straw — not the cup mark alone.
spirit_pour_fl_ozNoTHIS unit’s mixed-drink liquor pour for the spirit line.
beginning_inventoryNo
spirit_cost_per_fl_ozNoSpirit cost per fl oz after bottle pack conversion.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnly/idempotent/non-destructive, so safety is covered structurally; the description adds genuinely new behavioral claims: results are unverified math, it never invents yield, and it never treats an invoice as COGS. The default-forbidden constants (never assume 1.5 / 1.75 / 2 or 5+1) disclose how the cost model must be fed. However, it does not say what happens on missing evidence (the schema's "Empty → Missing Evidence + ask" behavior lives only in the schema), leaving the key failure path undisclosed in the description.

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?

Front-loaded: the mode-to-output mapping leads, then the per-unit sourcing rules, then the caveat. Dense but every clause carries a distinct constraint, with no filler. Minor cost in readability from em-dash-chained asides, but appropriate for a 24-parameter tool.

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 an eight-mode, 24-parameter costing tool with no output schema, the description covers the three headline costing modes and their trap conditions well but leaves contribution and knowledge modes completely undefined and says nothing about the evidence-gathering/asking path or result shape. An agent can invoke the main modes correctly but would be guessing on two branches.

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

Parameters4/5

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

With 24 parameters at 50% schema coverage, the description must carry real weight, and it does: it binds mode to input shape, explains that drink lines resolve through house pour vs. fixed/recipe_specific quantities, and explains that fountain soda needs BIB mix ratio plus cup liquid fill after ice. The explicit rejection of default ratios directly disambiguates syrup_parts/water_parts and liquid_fill_fl_oz versus cup_marked_fl_oz in a way the schema does not. It still leaves many numeric parameters (ap_unit_cost, yield_fraction, beginning/ending inventory) unaddressed.

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 opening sentence gives a specific verb ("Cost") and enumerates three concrete resources keyed to mode values: plate (recipe), liquor drink (drink_recipe), fountain+spirit drink (fountain_spirit_drink), plus a secondary list of EP unit cost / food COGS / food-cost %. That is far beyond a restated name. It stops short of 5 because two of the eight enum modes (contribution, knowledge) are never described, so an agent cannot tell what those branches produce.

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?

The description maps each mode to a use case and sets a precondition for drink costing: liquor fl oz come from THIS unit's house pour, and store_id is described in schema as required for drink_recipe because pour standards are per unit. It never names an alternative tool (e.g. declare_pour_standards, ask_pour_standards) or states when not to use this, so routing is implied rather than explicit.

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