Skip to main content
Glama
Tandoor Recipes MCP

Tandoor Recipes MCP

Consume inventory item

consume_inventory_item

Consume part or all of an inventory item by entry_id or food_id, setting quantity to zero when depleted and returning a warning if more is requested than on hand.

Instructions

Use up some or all of an inventory entry. Identify it by entry_id, or by food_id with optional location_id (errors listing the candidates when several entries match). Give exactly one of amount (> 0) or all: true. Optional unit_id must match the entry unit; there is no unit conversion. The amount never goes below 0: consuming more than is on hand sets it to 0 and returns a warning. Never deletes the entry; at 0 (including after all: true) it is hidden from list_inventory_entries unless include_empty is true. Not atomic: two concurrent consumes of one entry can lose an update.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "consume_inventory_item"
  }
}

Input Schema

NameRequiredDescriptionDefault
allNoUse up the whole entry instead of an amount.
amountNoAmount to use, in the entry unit.
formatNoslim (default) returns a compact shape. full returns the raw Tandoor object.
food_idNoFood ID, from list_foods. Give this or entry_id.
unit_idNoMust equal the entry unit. No conversion.
entry_idNoInventory entry ID, from list_inventory_entries. Give this or food_id.
location_idNoNarrows food_id to this location. Not with entry_id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv3.4.4
    • addedInput schema / properties / all / description
      Added value: +"Use up the whole entry instead of an amount."
    • addedInput schema / properties / amount / description
      Added value: +"Amount to use, in the entry unit."
    • addedInput schema / properties / entry_id / description
      Added value: +"Inventory entry ID, from list_inventory_entries. Give this or food_id."
    • addedInput schema / properties / food_id / description
      Added value: +"Food ID, from list_foods. Give this or entry_id."
    • addedInput schema / properties / location_id / description
      Added value: +"Narrows food_id to this location. Not with entry_id."
    • addedInput schema / properties / unit_id / description
      Added value: +"Must equal the entry unit. No conversion."
  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?

Discloses behavior well beyond the annotations: amount clamps at 0 with a warning rather than erroring, the entry is never deleted but hidden from list_inventory_entries unless include_empty is true, and the operation is explicitly non-atomic with a lost-update risk under concurrency. These are exactly the side effects an agent cannot infer from readOnlyHint=false/destructiveHint=false.

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, then identification, then constraints, then side effects — a sensible order with no filler. Slightly dense with stacked parentheticals, but each clause carries distinct information.

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 a 7-parameter, zero-required mutation with no output schema, the description covers identification, argument exclusivity, clamping, visibility, and concurrency risk. It does not describe what the response body contains (the format param's slim/full shapes are only in the schema), which is the main remaining gap.

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 baseline is 3, but the description adds real meaning: the mutual exclusivity of amount and all, the requirement that unit_id match the entry unit with no conversion, and that an ambiguous food_id lookup returns candidate entries in the error. The format parameter's slim/full semantics are left entirely to the schema.

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 — 'Use up some or all of an inventory entry' — and immediately contrasts with sibling mutations by clarifying it never deletes the entry. An agent can distinguish this from add_inventory_item and move_inventory_item without opening 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 Guidelines4/5

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

Gives concrete selection rules: identify by entry_id OR by food_id with optional location_id, and 'Give exactly one of amount (> 0) or all: true'. It does not explicitly name a sibling tool to use instead in any scenario, so it stops short of full when/when-not routing, but the operational conditions are clear.

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