Skip to main content
Glama
Tandoor Recipes MCP

Tandoor Recipes MCP

Create shopping entry

create_shopping_entry

Create a shopping list entry with an amount and food, and optionally assign units, meal plans, recipes, or exact shopping lists while validating list IDs.

Instructions

Create a shopping list entry. Required: amount, food_id. Optional: unit_id, checked, list_recipe, ingredient, order, delay_until, mealplan_id (links to existing/new ShoppingListRecipe for that mealplan), shopping_list_ids. shopping_list_ids (ids from list_shopping_lists) puts the entry on exactly those lists; the food's lists are not added. When shopping_list_ids is omitted, Tandoor copies the food's lists onto the new entry if the user preference shopping_update_food_lists is on. With [], the tool clears any lists Tandoor copied, so the entry is on no list. add_recipe_to_shopping_list always copies each food's lists; food_shopping_update never does. Changing a food's lists later does not change existing entries. Every list id is checked against list_shopping_lists first; unknown or repeated ids are rejected and nothing is written. If the lists after the write differ from the request, the tool errors and names the missing and the extra lists.

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": {
      "amount": "<amount>",
      "food_id": "<food_id>"
    },
    "name": "create_shopping_entry"
  }
}

Input Schema

NameRequiredDescriptionDefault
orderNoSort position.
amountYesAmount, in unit_id.
formatNoslim (default) returns a compact shape. full returns the raw Tandoor object.
checkedNoAlready bought. Default false.
food_idYesFood ID, from list_foods.
unit_idNoUnit ID, from list_units. Default none.
ingredientNoRecipe ingredient ID this entry comes from.
delay_untilNoISO 8601 datetime to postpone the entry until.
list_recipeNoShopping list recipe ID, from list_shopping_list_recipes.
mealplan_idNoMeal plan ID, from list_meal_plans.
shopping_list_idsNoShopping list IDs, from list_shopping_lists. [] puts it on no list.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changedv3.4.4
    • addedInput schema / properties / amount / description
      Added value: +"Amount, in unit_id."
    • addedInput schema / properties / checked / description
      Added value: +"Already bought. Default false."
    • addedInput schema / properties / delay_until / description
      Added value: +"ISO 8601 datetime to postpone the entry until."
    • addedInput schema / properties / food_id / description
      Added value: +"Food ID, from list_foods."
    • addedInput schema / properties / ingredient / description
      Added value: +"Recipe ingredient ID this entry comes from."
    • addedInput schema / properties / list_recipe / description
      Added value: +"Shopping list recipe ID, from list_shopping_list_recipes."
    • addedInput schema / properties / mealplan_id / description
      Added value: +"Meal plan ID, from list_meal_plans."
    • addedInput schema / properties / order / description
      Added value: +"Sort position."
    • addedInput schema / properties / shopping_list_ids / description
      Added value: +"Shopping list IDs, from list_shopping_lists. [] puts it on no list."
    • addedInput schema / properties / unit_id / description
      Added value: +"Unit ID, from list_units. Default none."
  2. Changed1 schema field changedv3.4.1
    • addedInput schema / properties / format / description
      Added value: +"slim (default) returns a compact shape. full returns the raw Tandoor object."
  3. First observedv3.4.0

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only declare it is a non-read-only, non-idempotent, non-destructive write. The description goes well beyond that: it discloses the server-side copy rule driven by the shopping_update_food_lists preference, that food list changes don't retroactively affect entries, that invalid or duplicate ids are rejected with nothing written, and that post-write list mismatch raises an error naming missing/extra lists.

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-loads required/optional field inventory, then layers the list-semantics and validation rules in short sentences. It is slightly repetitive — shopping_list_ids is named and its source (list_shopping_lists) restated several times, and the id-validation rule echoes the earlier sourcing clause — but nothing is off-topic.

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?

For an 11-parameter write tool with no output schema, the definition covers the risky behaviors (list assignment, atomicity, error on mismatch) thoroughly. What is missing is any description of the response body, which matters here because no output schema exists, though the 'format' parameter hints at slim vs raw returns.

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 earns above that by adding semantics the schema does not carry — the difference between omitting shopping_list_ids and passing [], the validation of ids against list_shopping_lists, and the mealplan_id link to a ShoppingListRecipe. It does not explain the format enum's slim/full return shapes beyond what the schema says.

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?

Opens with a specific verb+resource ('Create a shopping list entry') and immediately enumerates required vs optional fields, so an agent knows exactly what the tool produces. It is clearly distinguishable from update_shopping_entry, get_shopping_entry, and the bulk variants.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

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

Gives strong conditional guidance for the tricky case: when shopping_list_ids is supplied vs omitted vs empty, plus explicit contrasts with siblings add_recipe_to_shopping_list and food_shopping_update. It never states when an agent should prefer update_shopping_entry or bulk_update_shopping_entries over this tool, so no explicit exclusion set.

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