Skip to main content
Glama
Tandoor Recipes MCP

Tandoor Recipes MCP

Update shopping entry

update_shopping_entry
Idempotent

Update an existing shopping list entry by ID to change its amount, checked status, food, unit, order, delay, or list assignments without overwriting omitted fields.

Instructions

Update a shopping entry (PATCH). Required: id. Other fields optional. When checked is omitted, the tool reads the entry and sends its current checked value again, so a checked entry keeps its completed_at. A check made elsewhere between that read and the write is undone (last write wins). shopping_list_ids puts the entry on exactly those lists; [] clears them; omit it to keep them. 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": {
      "id": "<id>"
    },
    "name": "update_shopping_entry"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesShopping entry ID, from list_shopping_entries.
orderNoSort position.
amountNoAmount, in the entry unit.
formatNoslim (default) returns a compact shape. full returns the raw Tandoor object.
checkedNoBought or not. Omitted keeps the current value.
food_idNoFood ID, from list_foods.
unit_idNoUnit ID, from list_units. null clears it.
delay_untilNoISO 8601 datetime to postpone the entry until.
shopping_list_idsNoShopping list IDs, from list_shopping_lists. [] clears, omitted keeps.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changedv3.4.4
    • addedInput schema / properties / amount / description
      Added value: +"Amount, in the entry unit."
    • addedInput schema / properties / checked / description
      Added value: +"Bought or not. Omitted keeps the current value."
    • 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 / id / description
      Added value: +"Shopping entry ID, from list_shopping_entries."
    • 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. [] clears, omitted keeps."
    • addedInput schema / properties / unit_id / description
      Added value: +"Unit ID, from list_units. null clears it."
  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.1/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing the read-modify-write sequence for checked, the last-write-wins race with concurrent checks, the atomicity guarantee for invalid list ids ('nothing is written'), and the post-write list reconciliation error. This is exactly the non-obvious behavior an agent could not infer from readOnlyHint/idempotentHint/destructiveHint.

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 operation and required field, and every subsequent sentence carries substantive behavioral information rather than filler. It is dense and unsegmented, which slightly hurts scanability for six distinct rules.

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 9-parameter mutation with no output schema, the description covers the risky semantics (checked round-trip, list replacement, validation and reconciliation errors) and the schema covers the rest, including the format switch that controls the response shape. Nothing essential to a correct call is missing.

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, but the description adds real meaning: the completed_at rationale behind omitting checked, the exact replace-vs-clear-vs-keep semantics of shopping_list_ids, and the validation of each list id against list_shopping_lists. It does not add detail for order, amount, delay_until, or format beyond what the schema states.

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 ('Update a shopping entry (PATCH)') and notes the required id, so the agent knows it is a partial mutation on a single entry. It does not explicitly route away from bulk_update_shopping_entries or create/delete siblings, which keeps it just short of a 5.

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 conveyed indirectly through conditional rules ('When checked is omitted...', 'omit it to keep them'), which tells the agent how to call it but not when to prefer it over bulk_update_shopping_entries or other update tools. No explicit exclusions or alternatives are named.

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