Skip to main content
Glama

RestaurantDoctorAI

Menu calorie counter

restaurantdoctor_menu_calories
Read-onlyIdempotent

Works out a dish's calories from its recipe, as the free menu calorie counter on restaurantdoctorai.com does: each ingredient's calories from USDA FoodData Central (a list of 118 common foods) or its pack label, added up, shared by the plates it makes or by portion weight, and rounded once the way US, Ontario or UK and EU menus show calories. Ingredients are matched to that list, never guessed: words that fit several foods come back with the foods to pick from, and words that fit none with the nearest foods, or as not on the list. A pack label's kcal per 100 g comes from the owner's own label, never an estimate: without one, that ingredient can't be counted yet. Returns the menu figure, the exact one, how it was worked out with each food's FDC ID, what to check before printing, and a link that opens the counter with the same recipe filled in. It's an estimate, not a lab test. The figures aren't stored; only an anonymous daily count of calculator runs 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": {
      "country": "<country>",
      "portioning": "<portioning>"
    },
    "name": "restaurantdoctor_menu_calories"
  }
}

Input Schema

NameRequiredDescriptionDefault
dishNo
platesNo
countryYesWhere the menu is: sets the energy figure and its rounding. us = US; ontario = Canada (Ontario); ukeu = UK, Ireland or EU (kcal, with the EU's energy factors).
portioningYesplates: one plate, or a batch shared into plates (12 pancakes). weight: portions weighed from a cooked batch (a ladle of soup).
ingredientsNo
cookedWeightNo
portionWeightNo

Output Schema

NameRequiredDescriptionDefault
perYes
dishYes
linkYesOpens the counter on the website with this recipe filled in.
batchYesThe whole recipe.
exactYesBefore rounding.
guideYesWho has to post calories, and what such a menu shows.
notesYes
checksYesFoods matched from the owner's words, every pack label figure sent (not USDA's) with its value, and the page's hints on weighing each food.
energyYesWhat menus there call the figure.
platesYes
resultYesThe result in the page's words, in its order.
countryYes
roundedYesThe figure for the menu, a plate or a portion, rounded once by the country's rule.
freeCheckYes
workedOutYesHow it was worked out, with each food's FDC ID.
beforePrintYesThe page's notes on posting calories in this country.
cookedGramsYes
ingredientsYes
portionGramsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / ingredients / anyOf
      Previous value: -[
      -  {
      -    "description": "What goes into the dish or batch, one entry each. Needed for a result; if missing, the reply asks for it.",
      -    "items": {
      -      "additionalProperties": false,
      -      "properties": {
      -        "amount": {
      -          "anyOf": [
      -            {
      -              "description": "How much goes in, after trimming, in unit. Weighed if possible. Needed for a result; if missing, the reply asks for it.",
      -              "maximum": 1000000000,
      -              "minimum": 0,
      -              "type": "number"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ]
      -        },
      -        "food": {
      -          "anyOf": [
      -            {
      -              "description": "The food: its name on the counter's list of USDA foods, as an earlier answer gave it, or the owner's words for it, matched to that list. Words that fit several foods, or none, come back as a tool error naming the foods to pick from, or saying it isn't on the list. With kcalPer100g, just its name.",
      -              "maxLength": 100,
      -              "minLength": 1,
      -              "type": "string"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ]
      -        },
      -        "kcalPer100g": {
      -          "anyOf": [
      -            {
      -              "description": "For a food not on the list: kcal per 100 g from the nutrition panel on the owner's own pack, as the owner reads it (a US label gives a serving: its calories ÷ its grams × 100). Never an estimate by the assistant: if the owner has no label, the ingredient can't be counted yet. Weighed only.",
      -              "maximum": 900,
      -              "minimum": 0,
      -              "type": "number"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ]
      -        },
      -        "unit": {
      -          "description": "g, kg, oz or lb for any food. ml, l, floz, cup, tbsp or tsp (US measures) for liquids and fats only; each for foods counted by the piece.",
      -          "enum": [
      -            "g",
      -            "kg",
      -            "oz",
      -            "lb",
      -            "ml",
      -            "l",
      -            "floz",
      -            "cup",
      -            "tbsp",
      -            "tsp",
      -            "each"
      -          ],
      -          "type": "string"
      -        }
      -      },
      -      "required": [
      -        "unit"
      -      ],
      -      "type": "object"
      -    },
      -    "maxItems": 30,
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "description": "What goes into the dish or batch, one entry each. Needed for a result; if missing, the reply asks for it.",
      +    "items": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "amount": {
      +          "anyOf": [
      +            {
      +              "description": "How much goes in, after trimming, in unit. Weighed if possible. Needed for a result; if missing, the reply asks for it.",
      +              "maximum": 1000000000,
      +              "minimum": 0,
      +              "type": "number"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "food": {
      +          "anyOf": [
      +            {
      +              "description": "The food: its name on the counter's list of USDA foods, as an earlier answer gave it, or the owner's words for it, matched to that list. Words that fit several foods, or none, come back as a tool error naming the foods to pick from, or saying it isn't on the list. With kcalPer100g, just its name.",
      +              "maxLength": 100,
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "kcalPer100g": {
      +          "anyOf": [
      +            {
      +              "description": "For a food not on the list: kcal per 100 g from the nutrition panel on the owner's own pack, as the owner reads it (a US label gives a serving: its calories ÷ its grams × 100). It's the label's figure, not an estimate by the assistant: without the owner's label, the ingredient can't be counted yet. Weighed only.",
      +              "maximum": 900,
      +              "minimum": 0,
      +              "type": "number"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "unit": {
      +          "description": "g, kg, oz or lb for any food. ml, l, floz, cup, tbsp or tsp (US measures) for liquids and fats only; each for foods counted by the piece.",
      +          "enum": [
      +            "g",
      +            "kg",
      +            "oz",
      +            "lb",
      +            "ml",
      +            "l",
      +            "floz",
      +            "cup",
      +            "tbsp",
      +            "tsp",
      +            "each"
      +          ],
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "unit"
      +      ],
      +      "type": "object"
      +    },
      +    "maxItems": 30,
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  2. Changed27 schema fields changed
    • removedInput schema / properties / cookedWeight / additionalProperties
      Removed value: -false
    • addedInput schema / properties / cookedWeight / anyOf
      Added value: +[
      +  {
      +    "additionalProperties": false,
      +    "description": "With weight: the whole batch, weighed after cooking. Needed then; if missing, the reply asks for it.",
      +    "properties": {
      +      "amount": {
      +        "maximum": 1000000000,
      +        "minimum": 0.001,
      +        "type": "number"
      +      },
      +      "unit": {
      +        "enum": [
      +          "g",
      +          "kg",
      +          "oz",
      +          "lb"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "amount",
      +      "unit"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / cookedWeight / description
      Removed value: -"With weight: the whole batch, weighed after cooking. Needed then; if missing, the reply asks for it."
    • removedInput schema / properties / cookedWeight / properties
      Removed value: -{
      -  "amount": {
      -    "maximum": 1000000000,
      -    "minimum": 0.001,
      -    "type": "number"
      -  },
      -  "unit": {
      -    "enum": [
      -      "g",
      -      "kg",
      -      "oz",
      -      "lb"
      -    ],
      -    "type": "string"
      -  }
      -}
    • removedInput schema / properties / cookedWeight / required
      Removed value: -[
      -  "amount",
      -  "unit"
      -]
    • removedInput schema / properties / cookedWeight / type
      Removed value: -"object"
    • addedInput schema / properties / dish / anyOf
      Added value: +[
      +  {
      +    "description": "Optional: the dish's name, for the record.",
      +    "maxLength": 100,
      +    "minLength": 0,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / dish / description
      Removed value: -"Optional: the dish's name, for the record."
    • removedInput schema / properties / dish / maxLength
      Removed value: -100
    • removedInput schema / properties / dish / minLength
      Removed value: -0
    • removedInput schema / properties / dish / type
      Removed value: -"string"
    • addedInput schema / properties / ingredients / anyOf
      Added value: +[
      +  {
      +    "description": "What goes into the dish or batch, one entry each. Needed for a result; if missing, the reply asks for it.",
      +    "items": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "amount": {
      +          "anyOf": [
      +            {
      +              "description": "How much goes in, after trimming, in unit. Weighed if possible. Needed for a result; if missing, the reply asks for it.",
      +              "maximum": 1000000000,
      +              "minimum": 0,
      +              "type": "number"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "food": {
      +          "anyOf": [
      +            {
      +              "description": "The food: its name on the counter's list of USDA foods, as an earlier answer gave it, or the owner's words for it, matched to that list. Words that fit several foods, or none, come back as a tool error naming the foods to pick from, or saying it isn't on the list. With kcalPer100g, just its name.",
      +              "maxLength": 100,
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "kcalPer100g": {
      +          "anyOf": [
      +            {
      +              "description": "For a food not on the list: kcal per 100 g from the nutrition panel on the owner's own pack, as the owner reads it (a US label gives a serving: its calories ÷ its grams × 100). Never an estimate by the assistant: if the owner has no label, the ingredient can't be counted yet. Weighed only.",
      +              "maximum": 900,
      +              "minimum": 0,
      +              "type": "number"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "unit": {
      +          "description": "g, kg, oz or lb for any food. ml, l, floz, cup, tbsp or tsp (US measures) for liquids and fats only; each for foods counted by the piece.",
      +          "enum": [
      +            "g",
      +            "kg",
      +            "oz",
      +            "lb",
      +            "ml",
      +            "l",
      +            "floz",
      +            "cup",
      +            "tbsp",
      +            "tsp",
      +            "each"
      +          ],
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "unit"
      +      ],
      +      "type": "object"
      +    },
      +    "maxItems": 30,
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / ingredients / description
      Removed value: -"What goes into the dish or batch, one entry each. Needed for a result; if missing, the reply asks for it."
    • removedInput schema / properties / ingredients / items
      Removed value: -{
      -  "additionalProperties": false,
      -  "properties": {
      -    "amount": {
      -      "description": "How much goes in, after trimming, in unit. Weighed if possible. Needed for a result; if missing, the reply asks for it.",
      -      "maximum": 1000000000,
      -      "minimum": 0,
      -      "type": "number"
      -    },
      -    "food": {
      -      "description": "The food: its name on the counter's list of USDA foods, as an earlier answer gave it, or the owner's words for it, matched to that list. Words that fit several foods, or none, come back as a tool error naming the foods to pick from, or saying it isn't on the list. With kcalPer100g, just its name.",
      -      "maxLength": 100,
      -      "minLength": 1,
      -      "type": "string"
      -    },
      -    "kcalPer100g": {
      -      "description": "For a food not on the list: kcal per 100 g from the nutrition panel on the owner's own pack, as the owner reads it (a US label gives a serving: its calories ÷ its grams × 100). Never an estimate by the assistant: if the owner has no label, the ingredient can't be counted yet. Weighed only.",
      -      "maximum": 900,
      -      "minimum": 0,
      -      "type": "number"
      -    },
      -    "unit": {
      -      "description": "g, kg, oz or lb for any food. ml, l, floz, cup, tbsp or tsp (US measures) for liquids and fats only; each for foods counted by the piece.",
      -      "enum": [
      -        "g",
      -        "kg",
      -        "oz",
      -        "lb",
      -        "ml",
      -        "l",
      -        "floz",
      -        "cup",
      -        "tbsp",
      -        "tsp",
      -        "each"
      -      ],
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "unit"
      -  ],
      -  "type": "object"
      -}
    • removedInput schema / properties / ingredients / maxItems
      Removed value: -30
    • removedInput schema / properties / ingredients / type
      Removed value: -"array"
    • addedInput schema / properties / plates / anyOf
      Added value: +[
      +  {
      +    "description": "With plates: how many plates it makes, 1 for a single plate. Needed then; if missing, the reply asks for it.",
      +    "maximum": 1000000000,
      +    "minimum": 0.001,
      +    "type": "number"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / plates / description
      Removed value: -"With plates: how many plates it makes, 1 for a single plate. Needed then; if missing, the reply asks for it."
    • removedInput schema / properties / plates / maximum
      Removed value: -1000000000
    • removedInput schema / properties / plates / minimum
      Removed value: -0.001
    • removedInput schema / properties / plates / type
      Removed value: -"number"
    • removedInput schema / properties / portionWeight / additionalProperties
      Removed value: -false
    • addedInput schema / properties / portionWeight / anyOf
      Added value: +[
      +  {
      +    "additionalProperties": false,
      +    "description": "With weight: one portion. Needed then; if missing, the reply asks for it.",
      +    "properties": {
      +      "amount": {
      +        "maximum": 1000000000,
      +        "minimum": 0.001,
      +        "type": "number"
      +      },
      +      "unit": {
      +        "enum": [
      +          "g",
      +          "kg",
      +          "oz",
      +          "lb"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "amount",
      +      "unit"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / portionWeight / description
      Removed value: -"With weight: one portion. Needed then; if missing, the reply asks for it."
    • removedInput schema / properties / portionWeight / properties
      Removed value: -{
      -  "amount": {
      -    "maximum": 1000000000,
      -    "minimum": 0.001,
      -    "type": "number"
      -  },
      -  "unit": {
      -    "enum": [
      -      "g",
      -      "kg",
      -      "oz",
      -      "lb"
      -    ],
      -    "type": "string"
      -  }
      -}
    • removedInput schema / properties / portionWeight / required
      Removed value: -[
      -  "amount",
      -  "unit"
      -]
    • removedInput schema / properties / portionWeight / type
      Removed value: -"object"
  3. Changed5 schema fields changed
    • changedInput schema / properties / cookedWeight / description
      Previous value: -"With weight: the whole batch, weighed after cooking. Required then."New value: +"With weight: the whole batch, weighed after cooking. Needed then; if missing, the reply asks for it."
    • changedInput schema / properties / ingredients / description
      Previous value: -"What goes into the dish or batch, one entry each. Required."New value: +"What goes into the dish or batch, one entry each. Needed for a result; if missing, the reply asks for it."
    • changedInput schema / properties / ingredients / items / properties / amount / description
      Previous value: -"How much goes in, after trimming, in unit. Weighed if possible. Required."New value: +"How much goes in, after trimming, in unit. Weighed if possible. Needed for a result; if missing, the reply asks for it."
    • changedInput schema / properties / plates / description
      Previous value: -"With plates: how many plates it makes, 1 for a single plate. Required then."New value: +"With plates: how many plates it makes, 1 for a single plate. Needed then; if missing, the reply asks for it."
    • changedInput schema / properties / portionWeight / description
      Previous value: -"With weight: one portion. Required then."New value: +"With weight: one portion. Needed then; if missing, the reply asks for it."
  4. Added

TDQS

A3.9/5.0
Behavior5/5

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

Goes well beyond the readOnly/idempotent annotations: it discloses that ingredients are matched, never guessed, that ambiguous or unknown foods return pickable/nearest options or 'not on the list', that pack-label kcal must come from the owner's label and otherwise cannot be counted, that nothing is stored beyond an anonymous daily run count, and that results are estimates not lab tests. This is unusually rich behavioral disclosure.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded, but the body is a dense sequence of run-on clauses separated by commas and colons that repeats the pack-label and matching rules already stated in the schema. Considerably longer than needed, though not padded with filler.

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?

An output schema exists, so return values need not be explained, yet the description still summarizes them (menu figure, exact figure, FDC IDs, checks, link). Combined with the rich IO and matching rules, an agent has enough to call it correctly; only the four weight/plate-shape params lack description-level detail.

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 only 29% schema description coverage, the description must compensate, and it does: it explains country's effect on energy factors and rounding, portioning's plates-vs-weight distinction, and the pack-label kcalPer100g derivation rule. It does not explicitly cover plates, dish, cookedWeight, or portionWeight, leaving some gaps.

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?

States a specific verb and resource: working out a dish's calories from its recipe, with the ingredient-calculation mechanism named. It distinguishes itself from cost-oriented siblings (cost_recipe, plate_cost) by being explicitly about calorie figures, though it never names an alternative tool.

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?

Usage is implied through the description of the calculation flow and its requirements (ingredients, plates or cooked/portion weight per the portioning mode), but there is no explicit when-to-use/when-not guidance or comparison to siblings like cost_recipe. An agent must infer the correct context.

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