Skip to main content
Glama

Protimeniu

Estimate dishes from a menu

estimate-dishes

Estimate the kcal and protein of the dishes of a restaurant that is not in Protimeniu yet. Open the restaurant's own menu, propose each dish's recipe as ingredients with grams and state, and call this tool. It calculates the recipes with the Nutrimeniu food tables, applies fixed corrections for raw, cooked and dry weights, and returns kcal and protein per portion, the kcal per gram of protein and a top by protein. Values are estimates: show them with ≈. Each call stores a new private submission for review, even when the dishes are the same, and nothing becomes public: call it again only for dishes that changed or stayed incomplete.

Rules for the recipes:

  • Name each ingredient with a plain, generic Romanian food name, as a food composition table would: "Piept de pui, crud", "Orez alb, fiert", "Ulei de floarea-soarelui". No brands and no dish names. Use singular names.

  • Meat, fish and eggs: give the raw weight with state raw. Raw meat weighs about 25–35% more than cooked.

  • Rice, pasta, potatoes, polenta and legumes: give the cooked weight with state cooked.

  • Include the cooking fat and the sauces, broken into their base ingredients. Leave out herbs, spices and salt under 5 g.

  • In a composed plate, the meat or fish is usually 25–35% of the served weight, unless the menu gives its weight.

  • Use the menu's published weight as weight_grams when there is one.

  • Take the menu from the restaurant's own website or PDF, never from Glovo, Wolt or Bolt Food.

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": {
      "restaurant_name": "<restaurant_name>",
      "city": "<city>",
      "dishes": "<dishes>"
    },
    "name": "estimate-dishes"
  }
}

Input Schema

NameRequiredDescriptionDefault
cityYesThe city of the restaurant, for example "Iași".
dishesYesThe dishes to estimate, at most 30 per call.
menu_urlNoThe address of the restaurant's own menu page or PDF that the recipes come from.
restaurant_nameYesThe restaurant name as on its own menu, for example "Restaurant Rustic".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the annotations: each call creates a new private submission for review even for identical dishes, nothing becomes public, and the output includes a correction step for raw/cooked/dry weights. That is exactly the non-obvious side-effect and non-idempotency an agent needs, and it is consistent with readOnlyHint=false.

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 first paragraph covers action, return values, side effects and re-call policy before the bulleted recipe rules. It is long and dense, with a few low-value phrases such as 'and call this tool', but almost every rule carries operational weight.

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?

There is no output schema, and the description compensates by naming the returned fields (kcal and protein per portion, kcal per gram of protein, a top by protein) and the presentation convention (≈). Combined with the recipe rules and the submission side effect, an agent has everything needed to call it correctly.

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 coverage is 100%, so the baseline is 3; the description adds real meaning, especially for the state field (raw meat weighs 25-35% more than cooked, cooked weight for rice/pasta/potatoes) and for weight_grams (use the menu's published weight when present). It also constrains ingredient naming to generic Romanian food-table names, which the schema only gestures at.

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?

States a concrete verb and resource (estimate kcal and protein for dishes) plus a discriminating scope condition: a restaurant that is not in Protimeniu yet. An agent can tell this apart from get-menu, top-dishes and find-restaurant 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 Guidelines5/5

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

Gives explicit when-to-use (new restaurant, open its own menu, propose recipes), when to re-call (only for dishes that changed or stayed incomplete), and a source exclusion (never Glovo, Wolt or Bolt Food). The non-idempotency warning also tells the agent not to repeat identical calls.

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