Skip to main content
Glama

RestaurantDoctorAI

Cost a recipe (draft)

restaurantdoctor_cost_recipe
Read-onlyIdempotent

Reads a recipe's ingredient lines as written, weighs each one with USDA FoodData Central and USDA yields, and prices it with the owner's own prices when given, else dated US public prices (BLS and USDA ERS store averages, USDA wholesale prices, and USDA weekly store-ad sale prices, which run low). Returns a draft in US dollars: each line's grams, cost and price source, what each line still needs, the cost per plate as a range, and a link that opens the draft on restaurantdoctorai.com, where the owner checks each line and adds prices for one plate cost and a menu price. The draft never gives one plate cost or a menu price, and says nothing about allergens or nutrition. The recipe isn't stored; only an anonymous daily count of drafts is kept.

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>"
    },
    "name": "restaurantdoctor_cost_recipe"
  }
}

Input Schema

NameRequiredDescriptionDefault
pricesNoThe owner's own prices, when they give them. Lines without one use US public prices: store averages (BLS, USDA ERS), wholesale prices (USDA) and, for items those don't cover, USDA weekly store-ad sale prices, which run low. None is the owner's cost. Tap water is costed at 0.
recipeYesThe recipe as written: its name, its servings line ("Serves 6") and its ingredient lines, one a line, each amount and unit exactly as the recipe or the photo gives it. Method steps may follow under a heading such as "Instructions"; only ingredient lines are costed. The lines are read as sent, not converted, rounded or corrected: the owner checks them on the website. At most 8000 characters and 60 ingredient lines.
sourceNoWhere the recipe came from: text the owner typed or pasted (text), a photo or scan of a printed or typed page (typed-photo), a handwritten card (handwriting), or a PDF (pdf). It sets how many lines the owner confirms on the website: handwriting, every line.text
servingsNoHow many plates the recipe makes, when its text doesn't say.

Output Schema

NameRequiredDescriptionDefault
costYes
linkYesOpens this draft on the website, where the owner checks each line.
linesYes
notesYesWhat the draft assumed about the whole recipe.
checksYesAmounts that look like slips, such as a lot of salt for the plates.
recipeYes
sourcesYesThe public prices used.
currencyYes
nextStepYes
servingsYes
disclaimerYes
priceFirstYesThe dearest lines not on the owner's prices yet: their prices move the cost the most.
unusedPricesYesPrices sent that matched no line.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / recipe / description
      Previous value: -"The recipe as written: its name, its servings line (\"Serves 6\") and its ingredient lines, one a line, each amount and unit exactly as the recipe or the photo gives it. Method steps may follow under a heading such as \"Instructions\"; only ingredient lines are costed. Don't convert, round or correct anything: the owner checks the lines on the website. At most 8000 characters and 60 ingredient lines."New value: +"The recipe as written: its name, its servings line (\"Serves 6\") and its ingredient lines, one a line, each amount and unit exactly as the recipe or the photo gives it. Method steps may follow under a heading such as \"Instructions\"; only ingredient lines are costed. The lines are read as sent, not converted, rounded or corrected: the owner checks them on the website. At most 8000 characters and 60 ingredient lines."
  2. Changed3 schema fields changed
    • changedInput schema / properties / prices / items / properties / countOf / enum
      Previous value: -[
      -  "each",
      -  "clove",
      -  "slice",
      -  "stick",
      -  "bunch",
      -  "sprig",
      -  "leaf",
      -  "can"
      -]New value: +[
      +  "each",
      +  "clove",
      +  "slice",
      +  "stick",
      +  "bunch",
      +  "sprig",
      +  "leaf",
      +  "can",
      +  "package"
      +]
    • addedOutput schema / properties / lines / items / properties / size
      Added value: +{
      +  "anyOf": [
      +    {
      +      "description": "For a can, jar or package line whose recipe gives no size: that its cost waits for the size, which the owner picks on the website. Null otherwise.",
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • changedOutput schema / properties / lines / items / required
      Previous value: -[
      -  "line",
      -  "amount",
      -  "ingredient",
      -  "match",
      -  "status",
      -  "grams",
      -  "cost",
      -  "price",
      -  "needs",
      -  "check",
      -  "notes"
      -]New value: +[
      +  "line",
      +  "amount",
      +  "ingredient",
      +  "match",
      +  "status",
      +  "grams",
      +  "cost",
      +  "price",
      +  "needs",
      +  "size",
      +  "check",
      +  "notes"
      +]
  3. Changed2 schema fields changed
    • changedInput schema / properties / prices / description
      Previous value: -"The owner's own prices, when they give them. Lines without one use US public prices: store averages (BLS, USDA ERS) and wholesale prices (USDA), never the owner's cost. Tap water is costed at 0."New value: +"The owner's own prices, when they give them. Lines without one use US public prices: store averages (BLS, USDA ERS), wholesale prices (USDA) and, for items those don't cover, USDA weekly store-ad sale prices, which run low. None is the owner's cost. Tap water is costed at 0."
    • changedOutput schema / properties / lines / items / properties / price / anyOf
      Previous value: -[
      -  {
      -    "description": "Where its price comes from: \"Your price\", \"Store average, Aug 2026 (BLS)\" or \"Wholesale, Oct 2026 (USDA)\".",
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "description": "Where its price comes from: \"Your price\", \"Store average, Aug 2026 (BLS)\", \"Store average, 2023 (USDA ERS)\", \"Wholesale, Oct 2026 (USDA)\", \"Store ad price, week of Sep 28, 2026 (USDA AMS); sale prices run low\" or \"Tap water, costed at 0\".",
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  4. Changed1 schema field changed
    • changedInput schema / properties / prices / description
      Previous value: -"The owner's own prices, when they give them. Lines without one use US public prices: store averages (BLS) and wholesale prices (USDA), never the owner's cost."New value: +"The owner's own prices, when they give them. Lines without one use US public prices: store averages (BLS, USDA ERS) and wholesale prices (USDA), never the owner's cost. Tap water is costed at 0."
  5. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive/closed-world, yet the description adds substantial behavioral context: the draft never yields a single plate cost or menu price, it says nothing about allergens or nutrition, the recipe is not stored (only an anonymous daily draft count), public sale prices 'run low', and tap water is costed at 0. That is exactly the kind of constraint disclosure annotations cannot carry.

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?

It is one dense paragraph, but it is front-loaded with the core verb chain and each sentence carries a distinct fact (pricing sources, output shape, limitations, storage). A few clauses duplicate what the schema already states about public/sale prices, which costs it the top mark.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given an output schema exists, the description need not detail returns, yet it still summarizes the draft's contents, states the key limitations, and explains the privacy/storage behavior and the website hand-off. Nothing an agent needs to invoke this correctly is missing.

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?

Schema description coverage is 100%, so the baseline is 3, but the description adds meaning beyond the schema: how the prices array is used as an override versus the public-price fallback, that 'source' controls how many lines the owner must confirm on the website, and that recipe lines are read as sent without conversion or correction.

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 names a specific verb and resource chain: it reads a recipe's ingredient lines, weighs them via USDA FoodData Central and USDA yields, prices them from owner prices or dated US public sources, and returns a draft in USD. This is far more specific than the sibling costing tools (plate_cost, prime_cost, menu_calories) and an agent can tell exactly what artifact it gets back.

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 gives clear context for when this tool applies: you have recipe text (typed, photo, handwriting, PDF) and want a draft costing, and the owner then completes prices on the website for a final plate/menu price. However, it never names an alternative sibling (e.g., restaurantdoctor_plate_cost) or states a when-not-to-use condition, so the 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