Skip to main content
Glama

Create Recipe

create_recipe
Idempotent

Create a recipe from catalog foods, as the user's own private food. Nutriely calculates its nutrition from the ingredients, the way the app does. Use when the user asks to make a recipe, and for any dish, sauce, cut or restaurant item the catalog doesn't have: build it from the closest catalog base foods, cooked versions first (see variant.group in a food search). A ribeye is grilled sirloin with beef tallow. A dish or sauce that search doesn't find isn't missing data: propose its ingredients and amounts and build it once the user agrees, or straight away when they asked to log or build the meal. A cooking method without its own version (roasted, grilled, pan-fried) is the base food, plus the added fat as its own ingredient when it matters. Each ingredient is a food_id from a food search and a food_measure_id from that food's measures: quantity counts that measure, so 3 of a "medium" measure is three medium potatoes. The recipe saves straight away, with no preview step, and the result has its id and measures for the diary.

For a drink, "oz" means fluid ounces: the fl oz measure, not ounces, which is weight. "A serving" is the serving measure: on a recipe, servings is one of the portions the whole recipe makes.

Send servings (how many portions the recipe makes) or total_weight_g (the finished recipe's weight in grams), never both. Use cooked ingredients for a cooked dish, rather than raw ones with a lower total_weight_g. The result shows the nutrition per serving, or per 100 g when total_weight_g was sent.

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": {
      "name": "<name>",
      "ingredients": "<ingredients>",
      "request_id": "<request_id>"
    },
    "name": "create_recipe"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesThe recipe name, in English.
servingsNoHow many servings the recipe makes, a whole number. Required unless total_weight_g is sent.
request_idYesA new unique string for this action. Reuse it only when retrying the same action.
ingredientsYesThe ingredients, up to 100.
total_weight_gNoThe finished recipe's weight in grams. Send this or servings, not both.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior3/5

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

Annotations already cover the safety profile (readOnlyHint=false, destructiveHint=false, idempotentHint=true), so the bar is lower. The description still adds genuine behavioral facts the annotations cannot: the recipe saves with no preview step, the result carries its id and measures for the diary, and nutrition is per serving or per 100 g depending on which sizing field was sent.

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?

Purpose is front-loaded in the first sentence and every paragraph carries domain rules an agent cannot infer elsewhere. It runs long, and the servings/total_weight_g exclusivity is stated in both the closing paragraph and the schema, plus the drink/measurement paragraph interrupts the ingredient-to-sizing flow.

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?

For a mutation tool with no output schema, it covers what an agent needs: immediate persistence, no preview, sizing-mode tradeoffs, ingredient resolution path, and the shape of the returned nutrition and ids. Nothing material is left to guesswork.

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

Parameters5/5

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

Schema coverage is 100%, yet the description meaningfully extends it: `fl oz` vs `ounces` for drinks, `serving` vs the recipe-level `servings`, quantity counting the chosen measure (3 "medium" = three medium potatoes), and cooked-vs-raw ingredient selection tied to total_weight_g. It also reinforces that servings and total_weight_g are mutually exclusive.

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?

"Create a recipe from catalog foods, as the user's own private food" names a specific verb, the resource, and the scope (user-private, composed from catalog foods). It distinguishes itself from create_food and log_food by framing the output as a recipe whose nutrition Nutriely computes from ingredients.

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?

Explicit when-to-use: the user asks to make a recipe, or the catalog lacks a dish/sauce/cut/restaurant item. It also resolves the hardest agent decision point — "a dish or sauce that search doesn't find isn't missing data" — and says to propose ingredients then build, or build immediately if the user asked to log the meal. Sibling tools (food search) are named as the source of food_id and variant.group.

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