Skip to main content
Glama

Create a private recipe

create_recipe

Save a private recipe from catalog products, so you can log it as one food.

Instructions

Save a private recipe in the user's own foods from catalog products, e.g. their usual smoothie, so it can be logged as one food. Only the user sees it; it never goes to the shared catalog. Each ingredient takes food_id, quantity and unit or measure_id as add_food does, is a PRODUCT, and is checked the same way before anything is written: when one is wrong, nothing is created and the error names it as ingredients[index]. Returns recipe_id and per_serving, its portion measure as get_food_measures lists it (weight_g, energy_kcal, protein_g, fat_g, carbohydrate_g of one serving; null when the recipe could not be read back). Log it with add_food: food_id recipe_id, food_type RECIPE, quantity the servings eaten. Each call creates another recipe: when one fails with anything but a validation, not_found or rate_limit error, look for it with get_my_foods before creating it again.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesThe recipe's name, e.g. 'Owsianka z bananem'.
servingsNoHow many servings the ingredients make.
descriptionNoHow to make it, as the app shows it.
ingredientsYesThe products in it, each as add_food takes it.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okYes
dataNo
errorNodescribe_error() of what went wrong; docs/AGENTS.md, Results and errors.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only tell the agent this is a non-read-only, non-destructive, non-idempotent call. The description adds real behavioral detail beyond that: privacy (user-only, no shared catalog), atomic validation semantics ('when one is wrong, nothing is created and the error names it as ingredients[index]'), the return payload, and the fact that each call creates another recipe with a specific retry path.

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 with the core action and privacy constraint, and nearly every clause carries information (atomicity, return shape, logging pattern, idempotent retry). It is a dense single block with some long compound sentences, which costs a little readability but no meaningful waste.

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?

With an output schema present the description needn't explain returns, yet it still names recipe_id and per_serving fields. Combined with full schema coverage, annotations, and explicit cross-tool workflow steps, an agent has everything needed to call this correctly on the first attempt.

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 already 100%, so the baseline is 3, but the description adds genuine meaning: ingredients take 'food_id, quantity and unit or measure_id as add_food does', must be a PRODUCT, and validation errors reference ingredients[index]. It clarifies the unit-vs-measure_id relationship in prose rather than just per-field text.

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 specific verb and resource ('Save a private recipe') plus the scope ('in the user's own foods from catalog products... never goes to the shared catalog'). This clearly separates it from create_food and update_recipe/delete_recipe without needing to open 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 usage context ('so it can be logged as one food'), tells the agent how to consume the result ('Log it with add_food: food_id recipe_id, food_type RECIPE, quantity the servings eaten'), and provides precise retry/exclusion guidance ('when one fails with anything but a validation, not_found or rate_limit error, look for it with get_my_foods before creating it again').

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.