Cost a recipe (draft)
restaurantdoctor_cost_recipeReads 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
| Name | Required | Description | Default |
|---|---|---|---|
| prices | No | 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. | |
| recipe | Yes | 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. | |
| source | No | Where 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 |
| servings | No | How many plates the recipe makes, when its text doesn't say. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cost | Yes | ||
| link | Yes | Opens this draft on the website, where the owner checks each line. | |
| lines | Yes | ||
| notes | Yes | What the draft assumed about the whole recipe. | |
| checks | Yes | Amounts that look like slips, such as a lot of salt for the plates. | |
| recipe | Yes | ||
| sources | Yes | The public prices used. | |
| currency | Yes | ||
| nextStep | Yes | ||
| servings | Yes | ||
| disclaimer | Yes | ||
| priceFirst | Yes | The dearest lines not on the owner's prices yet: their prices move the cost the most. | |
| unusedPrices | Yes | Prices sent that matched no line. |