Skip to main content
Glama
Tandoor Recipes MCP

Tandoor Recipes MCP

Create food

create_food
Idempotent

Create a new food in Tandoor with optional plural name, description, pantry status, USDA ID, category, and shopping lists, while detecting existing foods to prevent duplicates.

Instructions

Create food. Required: name. Optional: plural_name, description, food_onhand, fdc_id, supermarket_category_id, shopping_list_ids (ids from list_shopping_lists). If a food with this name exists, Tandoor returns it instead of creating one. With shopping_list_ids (including []), the tool looks up the name first and, if a food with that name exists (ignoring case and surrounding spaces), refuses and changes nothing; use update_food. Tandoor also returns an existing food whose plural name matches; the tool detects that from the create reply and refuses the same way, setting no lists. With non-empty shopping_list_ids, the tool creates the food first and then sets its lists, because Tandoor cannot set lists while creating a food. With any shopping_list_ids (including []), if a step after the create fails, the error gives the new food's id and says not to retry. Changing a food's lists does not change its existing shopping entries. add_recipe_to_shopping_list copies the food's lists onto new entries. create_shopping_entry without shopping_list_ids copies them when the user preference shopping_update_food_lists is on. bulk_create_shopping_list_recipe_entries without shopping_list_ids copies each food's lists whatever the user preference. 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": {
      "name": "<name>"
    },
    "name": "create_food"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesFood name, e.g. tomato.
fdc_idNoUSDA FoodData Central ID, used by food_fdc_lookup.
formatNoslim (default) returns a compact shape. full returns the raw Tandoor object.
descriptionNoFree-text description.
food_onhandNoTrue marks the food on hand for your household.
plural_nameNoPlural form, e.g. tomatoes.
shopping_list_idsNoShopping list IDs, from list_shopping_lists.
supermarket_category_idNoSupermarket category ID, from list_supermarket_categories.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv3.4.4
    • addedInput schema / properties / description / description
      Added value: +"Free-text description."
    • addedInput schema / properties / fdc_id / description
      Added value: +"USDA FoodData Central ID, used by food_fdc_lookup."
    • addedInput schema / properties / food_onhand / description
      Added value: +"True marks the food on hand for your household."
    • addedInput schema / properties / name / description
      Added value: +"Food name, e.g. tomato."
    • addedInput schema / properties / plural_name / description
      Added value: +"Plural form, e.g. tomatoes."
    • addedInput schema / properties / shopping_list_ids / description
      Added value: +"Shopping list IDs, from list_shopping_lists."
    • addedInput schema / properties / supermarket_category_id / description
      Added value: +"Supermarket category ID, from list_supermarket_categories."
  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

A3.8/5.0
Behavior3/5

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

Annotations already declare destructiveHint=false, idempotentHint=true and openWorldHint=false; the description's main addition is the create-then-set-lists two-phase sequence and the refusal/rollback error contract, which is real value beyond the annotations. However, the long tail about add_recipe_to_shopping_list, create_shopping_entry and bulk_create_shopping_list_recipe_entries documents other tools' copy semantics rather than this tool's behavior, diluting the transparency payload with material the agent cannot act on here. The disclosure that Tandoor returns an existing food instead of creating one is the kind of behavioral fact annotations could not convey and is correctly credited.

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?

Front-loading is correct: required/optional fields, then the collision rule, then list handling. But the middle and tail are dense run-on sentences, and three of them concern how sibling tools propagate food lists, which does not help an agent decide or execute this call. It is over-long for what it needs to convey even though nothing is misleading.

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?

With eight parameters, no output schema, and a non-trivial multi-step write, the description covers the failure modes, the partial-write warning (do not retry; error carries the new food's id), and the verification step. The gap is the happy-path return value — it never says what a successful create yields, which matters because format=slim/full changes the shape and no output schema exists.

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

Parameters3/5

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

Schema description coverage is 100%, so the baseline is 3 even without parameter text. The description does add genuine meaning for shopping_list_ids — the [] vs non-empty distinction, validation against list_shopping_lists, rejection of unknown/duplicate ids, and post-write verification — which is beyond the schema's bare "Shopping list IDs, from list_shopping_lists". The other seven parameters receive no elaboration beyond the schema.

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?

Opens with a specific verb+resource ("Create food") and immediately enumerates the required and optional fields, so the agent knows exactly what entity is produced. Differentiation from siblings is present but indirect: update_food is named only inside the name-collision refusal path, and delete/create_entry alternatives are not addressed.

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?

Explicitly states when NOT to use it ("if a food with that name exists ... refuses and changes nothing; use update_food") and names the alternative to switch to. It also spells out the divergent behavior between calling without shopping_list_ids vs with non-empty vs with [], which is precisely the decision an agent must make before invoking.

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